7 views
25 Jan 2026
Given n integers, print their sum....
4 views
25 Jan 2026
Print the maximum value in the array....
8 views
25 Jan 2026
Print the array in reverse order....
7 views
25 Jan 2026
Given n numbers and x, count how many times x appears....
6 views
25 Jan 2026
Given two arrays, print them concatenated....
6 views
25 Jan 2026
Remove duplicates but keep the first time each value appears....
4 views
25 Jan 2026
Rotate an array to the right by k positions....
5 views
25 Jan 2026
Answer q range-sum queries on an array....
4 views
25 Jan 2026
Find indices i and j such that a[i]+a[j]=target. Print first pair found, else -1 -1....
5 views
25 Jan 2026
Sort array values by frequency (desc), and by value (asc) when tie....
8 views
25 Jan 2026
Given two arrays, print unique common values in increasing order....
5 views
25 Jan 2026
You get n-1 numbers from 1..n. Find the missing number....
6 views
25 Jan 2026
Given n integers and k, find the longest subarray with sum exactly k....
5 views
25 Jan 2026
Print the maximum subarray sum (Kadane)....
6 views
25 Jan 2026
Count pairs i a[j]....
6 views
25 Jan 2026
Given array and window size k, print the maximum in each window....
6 views
25 Jan 2026
Given a permutation of 1..n, print minimum swaps to sort it....
5 views
25 Jan 2026
Find the k-th smallest value in the array (1-based k)....
6 views
25 Jan 2026
Check if the array can be split into three contiguous parts with equal sum. Print YES or NO....
5 views
25 Jan 2026
Given bar heights, find the largest rectangle area in the histogram....