## Difference between the summation of numbers whose frequency of all digits are same and different

Given an array of N integers, find the difference between the summation of numbers whose frequency of all digits are same and different. For e.g.… Read More »

## Longest string in non-decreasing order of ASCII code and in arithmetic progression

Given a non-empty string S of uppercase alphabets of length L and the task is to find the longest string from the given string with… Read More »

## Check whether an array can be fit into another array rearranging the elements in the array

Given two arrays A and B of same size N. Check whether array A can be fit into array B. An array is said to… Read More »

## Find k pairs with smallest sums in two arrays | Set 2

Given two arrays arr1[] and arr2[] sorted in ascending order and an integer K. The task is to find k pairs with smallest sums such… Read More »

## Find a non empty subset in an array of N integers such that sum of elements of subset is divisible by N

Given an array of N integers, the task is to find a non-empty subset such that the sum of elements of the subset is divisible… Read More »

## Maximum number by concatenating every element in a rotation of an array

Given an array of N elements. The task is to print the maximum number by concatenating every element in each rotation. In every rotation, the… Read More »

## Maximize the number of segments of length p, q and r

Given a rod of length L, the task is to cut the rod in such a way that the total number of segments of length… Read More »

## Minimum steps to reach end from start by performing multiplication and mod operations with array elements

Given start, end and an array of N numbers. At each step, start is multiplied with any number in the array and then mod operation… Read More »

## Number of positions with Same address in row major and column major order

Given a 2D array of size M x N. Calculate count of positions in 2D array where address as per row major order equals to… Read More »

## Longest Palindromic Substring using Palindromic Tree | Set 3

Given a string, find the longest substring which is palindrome. For example, if the given string is “forgeeksskeegfor”, the output should be “geeksskeeg”. Prerequisite :… Read More »

## C | Arrays | Question 14

filter_none edit close play_arrow link brightness_4 code #include <stdio.h> int main() {     char p;     char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8};… Read More »

## C | Arrays | Question 13

filter_none edit close play_arrow link brightness_4 code #include<stdio.h> int main() {     int a[10][20][30] = {0};     a[5][2][1] = 2;     return 0; } chevron_right filter_none Which of… Read More »

## Java | Arrays | Question 8

filter_none edit close play_arrow link brightness_4 code class Test {     public static void main (String[] args)      {         int arr1[] = {1, 2, 3};         int arr2[]… Read More »

## Java | Arrays | Question 7

Output of following Java program? filter_none edit close play_arrow link brightness_4 code import java.util.Arrays; class Test {     public static void main (String[] args)      {         int… Read More »

## Java | Arrays | Question 6

Output of following Java program? filter_none edit close play_arrow link brightness_4 code class Test {     public static void main (String[] args)      {         int arr1[] =… Read More »