最新 最热

LeetCode 0321 - Create Maximum Number

Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative...

2021-08-11
1

LeetCode 0315 - Count of Smaller Numbers After Self

You are given an integer array nums and you have to return a new counts array. The counts array has the property where counts[i] is the number of smaller elemen...

2021-08-11
0

LeetCode 0263 - Ugly Number

Write a program to check whether a given number is an ugly number.

2021-08-11
0

LeetCode 0264 - Ugly Number II

Write a program to find the n-th ugly number.

2021-08-11
0

LeetCode 0268 - Missing Number

Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.

2021-08-11
0

LeetCode 0279 - Perfect Squares

Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, …) which sum to n.

2021-08-11
1

LeetCode 0384 - Shuffle an Array

Shuffle a set of numbers without duplicates.

2021-08-11
0

LeetCode 0376 - Wiggle Subsequence

A sequence of numbers is called a wiggle sequence if the differences between successive numbers strictly alternate between positive and negative. The first diff...

2021-08-11
1

LeetCode 0357 - Count Numbers with Unique Digits

Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.

2021-08-11
1

LeetCode 0335 - Self Crossing

You are given an array x of n positive numbers. You start at point (0,0) and moves x[0] metres to the north, then x[1] metres to the west, x[2] metres to the so...

2021-08-11
1