最新 最热

LeetCode 0191 - Number of 1 Bits

Write a function that takes an unsigned integer and returns the number of ‘1’ bits it has (also known as the Hamming weight).

2021-08-11
1

LeetCode 0167 - Two Sum II - Input array is sorted

Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.

2021-08-11
1

LeetCode 0130 - Surrounded Regions

Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'.

2021-08-11
1

LeetCode 0230 - Kth Smallest Element in a BST

Given a binary search tree, write a function kthSmallest to find the kth smallest element in it.

2021-08-11
0

LeetCode 0227 - Basic Calculator II

Implement a basic calculator to evaluate a simple expression string.

2021-08-11
0

LeetCode 0299 - Bulls and Cows

You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. Each time your frie...

2021-08-11
1

LeetCode 0304 - Range Sum Query 2D - Immutable

Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).

2021-08-11
1

LeetCode 0283 - Move Zeroes

Given an array nums, write a function to move all 0‘s to the end of it while maintaining the relative order of the non-zero elements.

2021-08-11
1

LeetCode 0303 - Range Sum Query - Immutable

Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.

2021-08-11
1

LeetCode 0307 - Range Sum Query - Mutable

Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.

2021-08-11
1