Category: python
An array contains all the integers from 0 to n, except for one number which is missing. Write code to find the missing integer. Can you do it in O(n) …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return true if it is a power of three. Otherwise, return false. An integer n is …
A number is called stepping number if all adjacent digits have an absolute difference of 1. For example, 321 is a stepping number while 421 is not. Given an …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a non-empty array of decimal digits representing a non-negative integer, increment one to the integer. The digits are stored such that …
Given a binary search tree root, an integer lo, and another an integer hi, remove all nodes that are not between inclusive. Constraints n ≤ 100,000 where n is …