Tag: python
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. Follow up: Could you …
Given a binary tree root, find the sum of the deepest node values. Constraints n ≤ 100,000 where n is the number of nodes in root Hint: You need …
Given a list of non-negative integers nums, return the total number of 3 unique numbers that can create a triangle. Constraints n ≤ 1,000 where n is the length …
Teaching Kids Programming: Videos on Data Structures and Algorithms The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the number of 1 bits in n. Constraints 0 ≤ n < 2 ** 31 …