Code Challenges

Get better at coding with practice problems.

Coding Challenges

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

Start with beginner challenges
Showing 19 of 33 problems

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

Learner

Implement the insertionSortArray method that returns the array after sorting it using insertion sort logic. Solved

Learner

Implement the bubbleSortArray method that returns the array after sorting it using bubble sort logic. Solved

Learner

Implement the selectionSortArray method that returns the array after sorting it using selection sort logic. Solved

Learner

Implement the isArraySortedAscending method that checks whether the array is sorted in ascending order. Solved

Implement the lastIndexOfTarget method that returns the last index where the target value appears. Solved

Implement the linearSearchIndex method that returns the first index of the target using linear search. Solved

Learner

Implement the rightRotateArrayByOne method that returns the array after rotating all elements one position to the right. Solved

Learner

Implement the leftRotateArrayByOne method that returns the array after rotating all elements one position to the left. Solved

Notifications

Updates are enabled for this browser.

Receive new tutorials, articles and learning resources. You can turn updates off anytime.

Test browser code

Use this code in admin to send a test notification to this browser.