Category: algorithms
There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x is equal to 0. You are given an integer …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given the root node of a binary search tree (BST) and a value to be inserted into the tree, insert …
The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, return the Hamming distance between …
Teaching Kids Programming: Videos on Data Structures and Algorithms You are given a list of non-negative integers nums. If there are exactly k numbers in nums that are greater …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given two strings s0 and s1, return whether you can obtain s1 by removing 1 letter from s0. Constraints 0 …