最新 最热

ACMSGURU 180 - Inversions

There are N integers (1<=N<=65537) A1, A2,.. AN (0<=Ai<=10^9). You need to find amount of such pairs (i, j) that 1<=i<j<=N and A[i]>A[j].

2021-08-11
1

ACMSGURU 358 - Median of Medians

Vasya learned definition of median of three numbers. He says, “Median of three numbers is the number located in the middle when numbers are ordered in non-desce...

2021-08-11
1

ACMSGURU 130 - Circle

On a circle border there are 2k different points A1, A2, …, A2k, located contiguously. These points connect k chords so that each of points A1, A2, …, A2k is th...

2021-08-11
1

ACMSGURU 404 - Fortune-telling with camomile

Fortune-telling with camomileProblem DescriptionMasha loves Petya. The following question gives he

2021-08-11
1

ACMSGURU 184 - Patties

TsPetya is well-known with his famous cabbage patties. Petya’s birthday will come very soon, and he wants to invite as many guests as possible. But the boy want...

2021-08-11
1

AMBA AHB面试题连载(三)

BUSY传输只能在未定义长度的burst传输(INCR)结束时发生,不能在固定长度burst传输(SINGLE, INCR4, WRAP4, INCR8, WRAP8, INCR16, WRAP16)的末端发生。

2021-08-06
1

LeetCode 7.Reverse Integer

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

2021-07-23
1

LeetCode 13. Roman to Integer

Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

2021-07-23
1

LeetCode 279 Perfect Squares (Tags:DP)

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

2021-07-23
1

LeetCode 152. Maximum Product Subarray

Given an integer array nums, find the contiguous subarray within an array (containing at least one number) which has the largest product.

2021-07-23
1