Category: algorithms
A pangram is a sentence where every letter of the English alphabet appears at least once. Given a string sentence containing only lowercase English letters, return true if sentence …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the maximum number you can make by inserting 5 anywhere in the number. Example 1 …
Given a binary tree, each node has value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit. For example, if the path …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given two integers r and c. Given that knight is placed initially at the coordinate (0, 0) in …
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 …