Given an integer array nums, find the sum of the elements between indices i and j (i ≤ ...
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ ...
An image is represented by a binary matrix with 0 as a white pixel and 1 as a black pix...
Given an array of numbers, verify whether it is the correct preorder traversal sequence...
Numbers can be regarded as product of its factors. For example, 8 = 2 x 2 x 2;= 2 x 4.W...
Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2...
Given an array of meeting time intervals where intervals[i] = [starti, endi], determine...
Design and implement an iterator to flatten a 2d vector. It should support the followin...
Given the root of a binary tree, return the number of uni-value subtrees. A uni-value s...
Given a string, we can "shift" each of its letter to its successive letter, for example...
A strobogrammatic number is a number that looks the same when rotated 180 degrees (look...
A strobogrammatic number is a number that looks the same when rotated 180 degrees (look...
A strobogrammatic number is a number that looks the same when rotated 180 degrees (look...
Given a list of words and two words word1 and word2, return the shortest distance betwe...
Design a class which receives a list of words in the constructor, and implements a meth...
Given a list of words and two words word1 and word2, return the shortest distance betwe...
Given two strings s and t , write a function to determine if t is an anagram of s. Exam...
Given a string of numbers and operators, return all possible results from computing all...
Write an efficient algorithm that searches for a target value in an m x n integer matri...
You are given an array of integers nums, there is a sliding window of size k which is m...
Given an array nums of n integers where n > 1, return an array output such that output...