All Problems

Master data structures and algorithms with our curated collection of coding challenges.

194
Total Problems
194 results

Pet Store Dogs

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

medium
40

Print February Calendar

Generate a calendar for February of a given year, starting from a specified day of the week.

medium
40

Tennis Contest

Find the names of players defeated by the tournament winner, from final round back to first round

medium
40

Find the Sum of All Elements in a Matrix

Calculate the sum of all integer elements in a given R×C matrix.

easy
40

Find the Maximum Element in a Matrix

Find the largest integer present in a given R×C matrix by examining all elements

easy
40

Dice Game – TCS CodeVita

Calculate the number of ways to achieve a target sum S using dice with m faces.

medium
40

Pattern Printing-Half Pyramid

Print a half pyramid pattern using asterisks (*) with N rows, where each row contains increasing number of asterisks separated by spaces.

easy
40

Append Alphabet – Surrounding Integers

Given a matrix containing integers and alphabets, append each alphabet to all surrounding integers in the 3x3 neighborhood.

medium
40

Two Matrix Spiral Print

Print values from two square matrices in a clockwise spiral pattern, alternating between matrices for each row/column.

medium
40

Print 2N and 4N

Given an integer N, print the values of 2N and 4N.

easy
40

SQL – Top Revenue Grossed By Year In Movies

SQL query to find the highest revenue movie for each year, sorted by year in descending order

medium
40

Find Largest Difference Between Two Adjacent Digits

Find the maximum absolute difference between any two adjacent digits in a given number.

easy
40
Page 1 of 17Next