All Problems

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

215
Total Problems
215 results

Function decimalToBinary – CTS PATTERN

Fix the logical error in the decimalToBinary function so it correctly prints the binary representation of a given integer.

easy
42

Function samePositionBitCount – CTS PATTERN

Count the number of positions where two integers have equal bits

medium
42

Function toggleVowelCase – CTS PATTERN

Fix the logical error in the toggleVowelCase function to correctly toggle the case of vowels in a string

medium
42

Musical Bench

Simulate a musical bench game where players move between benches in a circle based on music duration and player speed, eliminating players when benches are removed.

medium
42

Non-overlapping Substring Count

Count the number of non-overlapping occurrences of a pattern string within a given text string.

medium
42

Reverse Number

Given a number N, reverse its digits and print the result

easy
42

Frequency Sort – Numbers

Sort integers by their frequency in descending order, with ties broken by ascending value

medium
42

Function printColor – CTS Pattern

Fix the logical errors in a switch-case function to correctly map numbers to color names and handle invalid inputs.

easy
42

Count of Inversions – Base 6 – TCS CodeVita

Count inversions in a derived sequence formed by sum of digits in base 6 representation

medium
42

Function printNPattern – CTS PATTERN

Print a descending staircase pattern of a given number N

easy
42

Right Arrow Pattern Program In Python

Print an arrow pattern using hyphens and asterisks based on an odd integer N

medium
42

Pattern – Integer to Alphabets

Convert a given integer to its corresponding alphabetic representation where 1=A, 2=B, ..., 26=Z, 27=AA, 28=AB, etc.

medium
42
PrevPage 10 of 18Next