Code Challenges

Get better at coding with practice problems.

Coding Challenges

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

Showing 18 of 18 problems

Implement the detectCircularRouteSimple method that checks whether the given movement sequence returns to the starting point. Solved

Implement the validateBookingCapacity method that checks whether a booking request fits within the available capacity. Solved

Implement the findWinnerTicTacToeRow method that returns the winner found in any complete row of a tic-tac-toe board. Solved

Implement the simulateSimpleBrowserBack method that simulates browser back navigation and returns the final page. Solved

Implement the checkBalancedScoreBrackets method that checks whether scored bracket text remains balanced. Solved

Implement the validateStackPushPopSequence method that checks whether a pop sequence is valid for the given push sequence. Solved

Implement the canAttendAllMeetings method that checks whether a person can attend all given meetings. Solved

Implement the rateLimiterAllowRequest method that checks whether a request is allowed under a simple rate limit. Solved

Implement the validateIpSegmentSimple method that checks whether a text segment is valid for an IP address part. Solved

Implement the sortOnlyEvenNumbers method that sorts only the even numbers while keeping odd numbers in their positions. Solved

Implement the isValidBracketPairString method that checks whether a bracket string has properly matched and ordered brackets. Solved

Intermediate

Implement the findSecondLargestDistinct method that returns the second largest distinct value from the array. Solved

Implement the isArrayStrictlyIncreasing method that checks whether every array element is greater than the element before it. Solved

Implement the method isEven that takes an integer as input and returns true if the number is even, and false if it is odd. Solved