## Allocate minimum number of pages

Given number of pages in n different books and m students. The books are arranged in ascending order of number of pages. Every student is… Read More »

## Array Type Manipulation in C++

This article demonstrates some of the inbuilt functions that can be used to query and manipulate array types, even a multidimensional array. These functions can… Read More »

## Check if a string can be obtained by rotating another string 2 places

Given two strings, the task is to find if a string can be obtained by rotating another string two places. Examples: Input : string1 =… Read More »

## Maximum value in an array after m range increment operations

Consider an array of size n with all initial values as 0, we need to perform following m range increment operations. increment(a, b, k) :… Read More »

## Sorting Big Integers

Given a array of n positive integers where each integer can have digits upto 106, print the array elements in ascending order. Input: arr[] =… Read More »

## Decision Making in Java (if, if-else, switch, break, continue, jump)

Decision Making in programming is similar to decision making in real life. In programming also we face some situations where we want a certain block… Read More »

## Amazon Interview experience | Set 331 (1 Year Experienced for SE-1)

A big big thanks to geeks for geeks for constructing this platform where candidates find suitable question sets. 1. 1st Round (Coding round on hacker… Read More »

## Find maximum (or minimum) sum of a subarray of size k

Given an array of integers and a number k, find maximum sum of a subarray of size k. Examples : Input : arr[] = {100,… Read More »

## Make largest palindrome by changing at most K-digits

Given a string containing all digits, we need to convert this string to a palindrome by changing at most K digits. If many solutions are… Read More »

## Count of total anagram substrings

Given a string of lower alphabet characters, count total substring of this string which are anagram to each other. Examples: Input : str = “xyyx”… Read More »

## Palindrome pair in an array of words (or strings)

Given a list of words, find if any of the two words can be joined to form a palindrome. Examples: Input : list[] = {“geekf”,… Read More »

## Java.lang.Number Class in Java

Most of the time, while working with numbers in java, we use primitive data types. But, Java also provides various numeric wrapper sub classes under… Read More »

## Mid-Point Line Generation Algorithm

Given coordinate of two points A(x1, y1) and B(x2, y2) such that x1 < x2 and y1 < y2. The task to find all the… Read More »

## Adobe Interview Experience | Set 43 (For MTS Role)

Round 1st 1. Questions about my projects, past experience 2. Design an Elevator system Round 2nd 1. Given two nodes and root of the binary… Read More »