Code Challenges

Get better at coding with practice problems.

Coding Challenges

Select a problem, write code, run test cases, and submit your solution.

Showing 19 of 159 problems

Implement the searchRotatedSortedArrayImportant method that searches for a target in a rotated sorted array using binary search. Solved

Implement the mergeOverlappingIntervalsCount method that returns how many intervals remain after merging all overlaps. Solved

Implement the productArrayExceptSelf method that returns an array where each value is the product of all other values. Solved

Implement the maximumProfitMultipleTransactions method that returns the maximum stock profit using multiple valid transactions. Solved

Implement the maximumProfitSingleTransaction method that returns the best stock profit using at most one buy and one sell. Solved