Design an iterator over a binary search tree with the following rules:El...
Given a binary tree, return all root-to-leaf paths.ExampleGiven the foll...
Given two binary strings, return their sum (also a binary string).Exampl...
Say you have an array for which the ith element is the price of a given ...
Say you have an array for which the ith element is the price of a given ...
Suppose a sorted array is rotated at some pivot unknown to you beforehan...
Given a non-negative number represented as an array of digits, plus one ...
Given two sorted integer arrays A and B, merge B into A as one sorted ar...
Given an array of integers, find a contiguous subarray which has the lar...