Minimum value to be assigned to the elements so that sum becomes greater than initial sum
Given an array arr[] of N elements, the task is to update all the elements of the given array to some value X such that… Read More »
Given an array arr[] of N elements, the task is to update all the elements of the given array to some value X such that… Read More »
Given the last rank ‘L’ and number of candidates at the last rank ‘T’, the task is to find the total number of candidates in… Read More »
Given a string, the task is to encrypt this string using ! and @ symbols, alternatively. While encrypting the message the encrypted format must repeat… Read More »
Given the month number M, the task is to print the season name of the year based on the month number. Examples: Input: M =… Read More »
Given a string “str”, the task is to duplicate vowels in this string. Examples: Input: str = “geeks” Output: geeeeks Input: str = “java” Output:… Read More »
Given a number N, the task is to check if its first and last digit is a prime number and their sum is less than… Read More »
Given a chemical formula as a string, the task is to get the count of atoms in this chemical formula. Examples: Input: str = “Fe2H3OH”… Read More »
Expression: An expression is a combination of operators, constants and variables. An expression may consist of one or more operands, and zero or more operators… Read More »
The task is to print a pattern as shown in the example for a given integer value. The goal is not to print just this… Read More »
Given a string, the given string is an encrypted word, the task is to decrypt the given string to get the original word. Examples: Input:… Read More »
Prerequisite: Switch Case in C/C++ Problem Statement: Write a program to build a simple Bank Management System using C++ which can perform following operations: Open… Read More »
for loop: for loop provides a concise way of writing the loop structure. Unlike a while loop, a for statement consumes the initialization, condition and… Read More »
for loop: for loop provides a concise way of writing the loop structure. Unlike a while loop, a for statement consumes the initialization, condition and… Read More »
Given an array of integers arr[], the task is to find the sum of all the Mersenne numbers from the array. A number is a… Read More »
Given an array arr[] containing N positive integer. The task is to find the sum of all the perfect numbers from the array. A number… Read More »