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 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