Difficulty Levels

Choose your challenge. Start easy and work your way up.

215
Total Problems

Pattern Printing – Half Pyramid Using Asterisk

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

easy
45

Reversed Sum of Pairs

Print the sum of every two consecutive elements in an array starting from the end

easy
45

Function getOnesCount – CTS PATTERN

Fix the given function to correctly count the number of 1's in the binary representation of an integer.

easy
46

Second Largest Integer – Greater than X

Find the second largest integer from a list that is greater than a given threshold X

easy
45

Octal Equivalent Of N

Convert a decimal integer to its octal representation

easy
45

Outer to Inner Swap – Both Odd/Even

Swap elements from outer positions to inner positions if both elements are odd or both are even

easy
44

Morse Code – Words

Decode a message from Morse code represented by consecutive 1's where each group corresponds to a letter of the alphabet

easy
46

First and Last X Digits

Extract and print the first X digits and last X digits from a given number N

easy
44

Function findMinimum – CTS PATTERN

Fix the logical error in the given code to correctly find the minimum value in an integer array

easy
45

Sum of even numbers from M to N

Calculate the sum of all even numbers within a given range from M to N (inclusive).

easy
44

Function matrixSum – CTS PATTERN

Fix syntax errors in the matrixSum function to correctly calculate the sum of all elements in a 2D matrix stored as a 1D array

easy
45

Function isNotVowel – CTS PATTERN

Fix the logical error in the isNotVowel function to correctly identify non-vowel characters

easy
45
PrevPage 7 of 9Next