摘要:
Number of 1 Bits (E) 题目 Write a function that takes an unsigned integer and return the number of '1' bits it has (also known as the Hamming weight). E 阅读全文
摘要:
Minimize Deviation in Array (H) 题目 You are given an array nums of n positive integers. You can perform two types of operations on any element of the a 阅读全文
摘要:
Smallest String With A Given Numeric Value (M) 题目 The numeric value of a lowercase character is defined as its position (1-indexed) in the alphabet, s 阅读全文
摘要:
Concatenation of Consecutive Binary Numbers (M) 题目 Given an integer n, return the decimal value of the binary string formed by concatenating the binar 阅读全文
摘要:
Path With Minimum Effort (M) 题目 You are a hiker preparing for an upcoming hike. You are given heights, a 2D array of size rows x columns, where height 阅读全文
摘要:
Check If All 1's Are at Least Length K Places Away (E) 题目 Given an array nums of 0s and 1s and an integer k, return True if all 1's are at least k pla 阅读全文
摘要:
Sort the Matrix Diagonally (M) 题目 A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column a 阅读全文
摘要:
Determine if Two Strings Are Close (M) 题目 Two strings are considered close if you can attain one from the other using the following operations: Operat 阅读全文
摘要:
Find the Most Competitive Subsequence (M) 题目 Given an integer array nums and a positive integer k, return the most competitive subsequence of nums of 阅读全文
摘要:
Count Sorted Vowel Strings (M) 题目 Given an integer n, return the number of strings of length n that consist only of vowels (a, e, i, o, u) and are lex 阅读全文