[Hacker Earth] Avoiding trapsRead more
[Hacker Earth] Summation programRead more
[Codeforces] Round 770 (Div. 2) D. Finding ZeroRead more
[Codeforces] Round 771 (Div. 2) D. Big BrushRead more
[Codeforces] Round 773 (Div. 1) B. Repetitions DecodingRead more
[Codeforces] Round 774 (Div. 2) D. Weight the TreeRead more
[Codeforces] Educational Round 125 (Rated for Div. 2) D. For Gamers. By Gamers.Read more
[LeetCode] Number of Good Pairs

1512. Number of Good Pairs

Given an array of integers nums, return the number of good pairs.

A pair (i, j) is called good if nums[i] == nums[j] and i < j.

Read more
[Hacker Earth] Minimum additionRead more
[Hacker Earth] AND choiceRead more