Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.
1 year ago
Solved
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...
1 year ago
Solved
Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...
1 year ago
Solved
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...
1 year ago
Solved
First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...
1 year ago
Solved
'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...
1 year ago
Solved
Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them.
For instance,
...
1 year ago
Solved
Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...