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
Choose your challenge. Start easy and work your way up.
Check if a binary number can become a multiple of 5 by toggling exactly one bit
Find the largest possible even number that can be formed using all the digits from a given number.
Find the longest prefix of a string that is also a suffix, ensuring they do not overlap.
Given a string containing alternating alphabets and their counts, expand each alphabet by repeating it according to its count.
Find the longest strictly increasing subsequence starting from the end of the array, with ties broken by first occurrence
Replace characters in the X inner layers of an NxN matrix with asterisks
Calculate the number of vehicles parked beyond a specific time and those charged above a certain amount based on complex parking fee rules.
Compress a string by encoding consecutive character sequences into character-count pairs
Print a triangle pattern where each line contains hyphens and integers in an incrementing and decrementing sequence, with 0 at the center.
Find the minimum cost for the government to acquire lands for road construction by selecting at most one building per row
Find the nearest previous number that is larger than each number in a sequence.
Count the number of combinations of exactly 4 players whose total runs scored is greater than or equal to 100.