Code Challenges

Get better at coding with practice problems.

Coding Challenges

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

Showing 4 of 23 problems

Implement the binarySearchPosition method that returns the index of the target using binary search. Solved

Implement the countTargetInSortedArray method that counts how many times the target appears in a sorted array. Solved

Intermediate

Implement the method searchRotatedArray that finds a target in a rotated sorted array. Solved

Implement the method firstOccurrence that returns the first index of a target value in a sorted array. Solved