Tag: math
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. Follow up: Could you …
Teaching Kids Programming: Videos on Data Structures and Algorithms The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the number of 1 bits in n. Constraints 0 ≤ n < 2 ** 31 …
You are given an integer array nums. The unique elements of an array are the elements that appear exactly once in the array. Return the sum of all the …
Given an integer n, you can swap any two digits at most once. Return the maximum value of the resulting number. Constraints 0 ≤ n < 2 ** 31 …