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 …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given an n x n 2D matrix representing an image, rotate the image by 90 degrees (Anti-clockwise). You …
Given an array arr of integers, check if there exists two integers N and M such that N is the double of M ( i.e. N = 2 * …