Most Frequent Characters
Given a document file or a character array, identify the 'n' most frequently occurring characters and the number of times each a...
8개월 전
문제를 풀었습니다
Symmetric Pair
Given an (n, 2) matrix, remove any symmetric pairs from the matrix. Keep the first occurrence.
(2, 3) and (3, 2) are considere...
8개월 전
문제를 풀었습니다
Unique rows
A matrix is given as the input. Remove any duplicate rows from the matrix. keep the first occurrence.
8개월 전
문제를 풀었습니다
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...
8개월 전
문제를 풀었습니다
Last Duplicate
Given an array of integers, find the last duplicate element — that is, the element whose second occurrence appears latest in the...
8개월 전
문제를 풀었습니다
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...
8개월 전
문제를 풀었습니다
First Duplicate
Given an array of integers, return the first duplicate — i.e., the element that appears more than once and whose second appearan...
8개월 전
문제를 풀었습니다
'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...
8개월 전
문제를 풀었습니다
Greater than before
Given an array of integers, write a function that returns elements that are greater than the one before them.
For instance,
...
8개월 전
문제를 풀었습니다
Intersect three sequences
Most numbers have interesting properties, if you look hard enough and interpret “interesting” liberally. Let’s choose a number a...