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
427

Print Largest Even Number – Digits

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

medium
46

Longest Non-Overlapping Prefix Suffix

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

medium
46

Expand Alphabets

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

medium
48

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
44

Asterisks – X Inner Layers

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

medium
47

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
45

String Compression

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

medium
47

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
45

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
46

Immediate Previous Larger Number

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

medium
48

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
45
PrevPage 8 of 9Next