## Find the number of ways to divide number into four parts such that a = c and b = d

Given a number N. Find the number of ways to divide a number into four parts(a, b, c, d) such that a = c and… Read More »

## Count how many times the given digital clock shows identical digits

Given a generic digital clock, having h number of hours and m number of minutes, the task is to find how many times the clock… Read More »

## Last digit of Product of two Large or Small numbers (a * b)

Given two large or small numbers, the task is to find the last digit of the product of these two numbers. Examples: Input: a =… Read More »

## Program to check if an Array is Palindrome or not

Given an array, the task is to determine whether an array is a palindrome or not. Examples: Input: arr[] = {3, 6, 0, 6, 3}… Read More »

## How to concatenate two Integer values into one?

Given two integers n1 and n2, the task is to concatenate these two integers into one integer. Example: Input: n1 = 12, n2 = 34… Read More »

## Check if the given array is mirror-inverse

Given an array arr[], the task is to find whether the array is mirror inverse. Inverse of an array means if the array elements are… Read More »

## Kth odd number in an array

Given an array arr[] and an integer K, the task is to find the Kth odd element from the given array. Examples: Input: arr[] =… Read More »

## Minimum number of letters needed to make a total of n

Given an integer n and let a = 1, b = 2, c= 3, ….., z = 26. The task is to find the minimum… Read More »

## Count of a, b & c after n seconds for given reproduction rate

Given three different alphabets ‘a’, ‘b’ and ‘c’ with a certain rule that after every 2 seconds every ‘a’ changes to a ‘b’, after every… Read More »

## Menu Driven C++ Program for a Simple Calculator

Problem Statement: Write a menu-driven program using the Switch case to calculate the following: Addition of two numbers Difference between two numbers Product of two… Read More »

## Find kth smallest number in range [1, n] when all the odd numbers are deleted

Given two integers n and k, the task is to find the kth smallest element from the range [1, n] after deleting all the odd… Read More »

## Time until distance gets equal to X between two objects moving in opposite direction

Consider two people moving in opposite direction with speeds U meters/second and V meters/second respectively. The task is to find how long will take to… Read More »

## Given number of matches played, find number of teams in tournament

Given an integer M which is the number of matches played in a tournament and each participating team has played a match with all the… Read More »

## Pick maximum sum M elements such that contiguous repetitions do not exceed K

Given an array arr[] of distinct elements and two integers M and K, the task is to generate an array from the given array elements… Read More »