Easy 2 point
Medium 4 points
Hard 6 points
Ninja 10 points
| Question | Type | Level | Solve |
|---|---|---|---|
| Write a function that takes an array and returns the maximum product of any two elements? | Array | Medium | Solve |
| Write a function that takes an integer array and returns the smallest missing positive number? | Array | Medium | Solve |
| Write a function that takes an array of integers and returns the length of the longest subarray with sum equal to zero? | Array | Hard | Solve |
| Write a function that takes an array and an integer k, and returns the maximum sum of any subarray of size k with all distinct elements? | Array | Hard | Solve |
| Write a function that takes an array and returns the maximum sum of non-adjacent elements? | Array | Hard | Solve |
| Write a function that takes an array and returns the count of reverse pairs (i, j) where i < j and arr[i] > 2 * arr[j]? | Array | Hard | Solve |
| Write a function that takes an array and returns true if it can be partitioned into two subsets such that the absolute difference of their sums is minimized? | Array | Hard | Solve |
| Write a function that returns the next number in a geometric sequence? | Puzzle | Hard | Solve |
| Write a JavaScript function that takes two parameters: an array and an integer n. The function should return the element at the nth index of the array? | Array | Hard | Solve |
| Write a function to find the minimum of two numbers without using >, <, ==, !=, or any arithmetic operator send me code ? | Challenge | Medium | Solve |