最新 最热

LeetCode 0258 - Add Digits

Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.

2021-08-11
0

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
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
0

LeetCode 0282 - Expression Add Operators

Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the digits so t...

2021-08-11
0

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
0

ACMSGURU 127 - Telephone directory

CIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory contain the name of the directory and instructions fo...

2021-08-11
0

LeetCode 0066 - Plus One

Given a non-negative integer represented as a non-empty array of digits, plus one to the integer.

2021-08-11
0

LeetCode 0043 - Multiply Strings

Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.

2021-08-11
0

LeetCode 7.Reverse Integer

Given a 32-bit signed integer, reverse digits of an integer.

2021-07-23
0

Leetcode 556. Next Greater Element III

**解析:**Version 1,先将数字n变为字符数组,要找最小的大于n的数,则应该从右往左开始,依次寻找第i位字符右边的大于当前字符的最小数字,然后互换二者位置,由于新数字的第i位字符大于n中的第i位字符,因此新数字i位之后的字符应...

2021-07-15
0