Sort based on Weight
Sort N integers based on their computed weight, where weight is determined by perfect square, multiple of 4 and divisible by 6, and even number conditions
Choose your challenge. Start easy and work your way up.
Sort N integers based on their computed weight, where weight is determined by perfect square, multiple of 4 and divisible by 6, and even number conditions
Calculate the minimum time required for fire to spread from an initial tree to all trees in a forest, spreading to all 8 adjacent trees every minute
Design an ATM that dispenses maximum number of currency notes for student withdrawals with limited denominations and note counts.
Print numbers from 1 to N in alternating pattern: 1, N, 2, N-1, 3, N-2, ...
Given a matrix of R rows and C columns, print its transpose where rows become columns and vice versa.
Print a given string in a 7-shaped digital format where characters form a descending diagonal pattern
Count the number of pairs formed by selecting one integer from each of two lists where the integers have different numbers of digits.
Count the number of lowercase alphabets that appear in all given strings
Print a diamond pattern formed by asterisks and plus pattern, surrounded by hyphens as empty spaces
Calculate the number of ways to arrange N dogs in cages where aggressive dogs must be alone and passive dogs can share cages in pairs
Generate a calendar for February of a given year, starting from a specified day of the week.
Find the names of players defeated by the tournament winner, from final round back to first round