Pairs with Given Sum
Given an array of integers and a target sum, return all unique pairs whose sum is equal to the target. The output should be a ma...
10 Monate vor
Gelöst
Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...
10 Monate vor
Gelöst
Dominant Matrix - 02
It is a follow-up of the problem 55995. There, you found out whether a matrix is diagonally dominant or not.
In this problem, y...
10 Monate vor
Gelöst
First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...
11 Monate vor
Gelöst
'X'avier
Given a square matrix A of size n, write a function to create a new matrix B where only the elements on the main diagonal and th...
11 Monate vor
Gelöst
Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them.
For instance,
...
11 Monate vor
Gelöst
Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...