最新 最热

LeetCode 0313 - Super Ugly Number

Write a program to find the nth super ugly number.

2021-08-11
1

ACMSGURU 499 - Greatest Greatest Common Divisor

Andrew has just made a breakthrough in sociology: he realized how to predict whether two persons will be good friends or not. It turns out that each person has ...

2021-08-11
0

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 123 - The sum

The Fibonacci sequence of numbers is known: F1 = 1; F2 = 1; Fn+1 = Fn + Fn-1, for n>1. You have to find S - the sum of the first K Fibonacci numbers.

2021-08-11
1

ACMSGURU 112 - a^b-b^a

You are given natural numbers a and b. Find a^b-b^a.

2021-08-11
1

LeetCode 0386 - Lexicographical Numbers

Given an integer n, return 1 - n in lexicographical order.

2021-08-11
0

LeetCode 0377 - Combination Sum IV

Given an integer array with all positive numbers and no duplicates, find the number of possible combinations that add up to a positive integer target.

2021-08-11
1

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
1

LeetCode 1116 - Print Zero Even Odd

Suppose you are given the following code:

2021-08-11
1

LeetCode 1195 - Fizz Buzz Multithreaded

Write a program that outputs the string representation of numbers from 1 to n, however:

2021-08-11
1