最新 最热

LeetCode 0139 - Word Break

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of on...

2021-08-11
1

LeetCode 0128 - Longest Consecutive Sequence

Given an unsorted array of integers, find the length of the longest consecutive elements sequence.

2021-08-11
2

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
3

ACMSGURU 113 - Nearly prime numbers

Nearly prime number is an integer positive number for which it is possible to find such primes P1 and P2 that given number is equal to P1*P2. There is given a s...

2021-08-11
1

ACMSGURU 105 - Div 3

There is sequence 1, 12, 123, 1234, …, 12345678910, … . Given first N elements of that sequence. You must determine amount of numbers in it that are divisible b...

2021-08-11
1

LeetCode 0400 - Nth Digit

Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, …

2021-08-11
1

ACMSGURU 275 - To xor or not to xor

The sequence of non-negative integers A1, A2, …, AN is given. You are to find some subsequence Ai1, Ai2, …, Aik (1 <= i1 < i2 < … < ik <= N) such, that Ai1 XOR ...

2021-08-11
2

ACMSGURU 117 - Counting

Find amount of numbers for given sequence of integer numbers such that after raising them to the M-th power they will be divided by K.

2021-08-11
1

LeetCode 0060 - Permutation Sequence

The set [1,2,3,…,n] contains a total of n! unique permutations.

2021-08-11
3

LeetCode 0038 - Count and Say

The count-and-say sequence is the sequence of integers with the first five terms as following:

2021-08-11
2