Difficulty Levels

Choose your challenge. Start easy and work your way up.

215
Total Problems

Toggle Bit to Check Multiple of 5 in Binary Representation

Check if a binary number can become a multiple of 5 by toggling exactly one bit

mediumBit Manipulation
42

Print Largest Even Number – Digits

Find the largest possible even number that can be formed using all the digits from a given number.

medium
42

Longest Non-Overlapping Prefix Suffix

Find the longest prefix of a string that is also a suffix, ensuring they do not overlap.

medium
43

Expand Alphabets

Given a string containing alternating alphabets and their counts, expand each alphabet by repeating it according to its count.

medium
42

Longest Increasing Subset – From Last

Find the longest strictly increasing subsequence starting from the end of the array, with ties broken by first occurrence

medium
41

Asterisks – X Inner Layers

Replace characters in the X inner layers of an NxN matrix with asterisks

medium
43

Parking Charges

Calculate the number of vehicles parked beyond a specific time and those charged above a certain amount based on complex parking fee rules.

medium
41

String Compression

Compress a string by encoding consecutive character sequences into character-count pairs

medium
42

Increment & Decrement Triangle Pattern

Print a triangle pattern where each line contains hyphens and integers in an incrementing and decrementing sequence, with 0 at the center.

medium
42

Minimum Cost – Land Acquisition

Find the minimum cost for the government to acquire lands for road construction by selecting at most one building per row

medium
41

Immediate Previous Larger Number

Find the nearest previous number that is larger than each number in a sequence.

medium
43

Four Players Score Combination

Count the number of combinations of exactly 4 players whose total runs scored is greater than or equal to 100.

medium
42
PrevPage 8 of 9Next