Category: algorithms
Teaching Kids Programming: Videos on Data Structures and Algorithms Reverse bits of a given 32 bits unsigned integer. Note: Note that in some languages such as Java, there is …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return any array containing n unique integers such that they add up to 0. Example 1: …
Given a list of integers nums, remove numbers that appear multiple times in the list, while maintaining order of the appearance in the original list. It should use O(k) …
Given a list of unique positive integers nums and a positive integer k, return the number of unique combinations that sum up to k. You may reuse numbers when …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a non-negative integer n, return the length of the longest consecutive run of 1s in its binary representation. Constraints …