All Problems

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

215
Total Problems
215 results

Split String & Sort

Split an even-length string into two equal parts and sort them in ascending order.

easy
48

New ATM Design – TCS CodeVita

Design an ATM that dispenses maximum number of currency notes for student withdrawals with limited denominations and note counts.

medium
46

1 to N – Mixed Pattern Printing

Print numbers from 1 to N in alternating pattern: 1, N, 2, N-1, 3, N-2, ...

medium
45

Petrol Pump – TCS CodeVita

Minimize the time required to fill petrol in all vehicles using two vending machines

hard
47

Matrix Transpose

Given a matrix of R rows and C columns, print its transpose where rows become columns and vice versa.

medium
46

Digital 7-Shaped String

Print a given string in a 7-shaped digital format where characters form a descending diagonal pattern

medium
47

Distinct Length Pairs

Count the number of pairs formed by selecting one integer from each of two lists where the integers have different numbers of digits.

medium
46

Common Alphabets N Strings

Count the number of lowercase alphabets that appear in all given strings

medium
46

Diamond with Plus Pattern

Print a diamond pattern formed by asterisks and plus pattern, surrounded by hyphens as empty spaces

medium
47

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
49

Print February Calendar

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

medium
48

Tennis Contest

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

medium
48
PrevPage 2 of 18Next