Given a binary tree root, return the leftmost node’s value on each level of the tree. Constraints n ≤ 100,000 where n is the number of nodes in root …
Teaching Kids Programming: Videos on Data Structures and Algorithms Anagrams are strings/words that contain the same set of letters and each letter should appear the same number of times. …
Given a list of integers nums, return whether the number of occurrences of every value in the array is unique. Note: Numbers can be negative. Constraint n ≤ 100,000 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a positive integer num, return the sum of its digits. Bonus: Can you do it without using strings? Constraints …
Teaching Kids Programming: Videos on Data Structures and Algorithms The factorial of a number n is defined as n! = n * (n – 1) * (n – 2) …
You are given a lowercase alphabet string s, and an offset integer k. Replace every letter in s with a letter k positions further along the alphabet. Note: If …