## Introduction to Programming Languages

Are you aiming to become a software engineer one day? Do you also want to develop a mobile application that people all over the world… Read More »

## Sum of elements in range L-R where first half and second half is filled with odd and even numbers

Given a number N, create an array such the first half of the array is filled with odd numbers till N and second half of… Read More »

## String transformation using XOR and OR

Given two binary strings. The task is to check if string s1 can be converted to string s2 by performing the given operations any number… Read More »

## Check if any permutation of a large number is divisible by 8

Given a large number N and the task is to check if any permutation of a large number is divisible by 8. Examples: Input: N… Read More »

## Check if the large number formed is divisible by 41 or not

Given the first two digits of a large number digit1 and digit2. Also given a number c and the length of the actual large number.… Read More »

## Why is programming important for first year or school students?

Although computer programming was once seen as a skill reserved for geeks and computer nerds, it’s now regarded as an essential ability for 21st century… Read More »

## Check if concatenation of two strings is balanced or not

Given two bracket sequences S1 and S2 consisting of ‘(‘ and ‘)’. The task is to check if the string obtained by concatenating both the… Read More »

## Element which occurs consecutively in a given subarray more than or equal to K times

Given an array of size N and Q queries, each query consists of L, R, and K(consider 1 based-indexing for L and R). The task… Read More »

## Nth non-Square number

Given n, find the nth number which is not a perfect square among natural numbers (1, 2, 3, 4, 5, 6, … ) Examples: Input… Read More »

## Number of odd and even results for every value of x in range [min, max] after performing N steps

Given a number N and the min and max range. Given N values of a and b respectively. The task is to count the number… Read More »

## Permutation of a string with maximum number of characters greater than its adjacent characters

Given a string str, the task is to print the maximum count of characters which are greater than both its left and right character in… Read More »

## Sequence Alignment problem

Given as an input two strings, = , and = , output the alignment of the strings, character by character, so that the net penalty… Read More »

## Count inversions of size k in a given array

Given an array of n distinct integers and an integer k. Find out the number of sub-sequences of a such that , and . In… Read More »

## Number of Larger Elements on right side in a string

Given a string, find count of number of larger alphabets for every character of the string. Examples: Input : str = “abcd” Output : 3… Read More »

## Find (a^b)%m where ‘b’ is very large

Given three numbers a, b and m where 1<=a, m<=10^6. Given very large 'b' containing up to 10^6 digits and m is a prime number,… Read More »