Tag: python
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a list of integers nums, pack consecutive elements of the same value into sublists. Note: If there’s only one …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a binary tree root, return whether all values in the tree are the same. Constraints n ≤ 100,000 where …
You are given a string s containing lowercase and uppercase alphabet characters as well as digits from “0” to “9”. Return whether s is a palindrome if we only …
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: …