Gblog GeeksforGeeks True Geek Tournament – 7 Days Marathon to Earn the ‘True Geek’ Title!
Do you remember the childhood days, when cricket was the major reason for living to you and how excited you used to be for that… Read More
Prerequisites : Suffix Array | Set 2 kasai’s algorithm The Longest Common Extension (LCE) problem considers a string s and computes, for each pair (L… Read More
Predict the output below program #include<iostream> using namespace std; int main() {     int x = 1 , y = 1, z = 1;        cout… Read More
numeric header in C++ STL | Set 1 adjacent_difference This functions assigns the difference between the corresponding elements of an array to another array. It… Read More
A palindromic prime (sometimes called a palprime) is a prime number that is also a palindromic number. Given a number n, print all palindromic primes smaller… Read More
The Longest Common Extension (LCE) problem considers a string s and computes, for each pair (L , R), the longest sub string of s that… Read More
Today we are going to discuss formatting files in the user’s workspace by their extension. For this we are going to make use of Clang’s… Read More
Heap data structure can be implemented in a range using STL which allows faster input into heap and retrieval of a number always results in… Read More
Solution to removing spaces from a string is already posted here. In this article another solution using stringstream is discussed.  Algorithm:  1. Enter the whole… Read More
Given an array of integers, replace every element with the least greater element on its right side in the array. If there are no greater… Read More
You are given n days and for each day (di) you could either perform a high effort tasks (hi) or a low effort tasks (li)… Read More
Hi, Recently I got a chance to attend the off campus interview with Amazon (SDE-1).Every code they asked to write on paper and full production… Read More
Maximize arr[j] – arr[i] + arr[l] – arr[k], such that i < j < k < l. Find the maximum value of arr[j] – arr[i]… Read More
Teradata has visited our campus on 18 July 2016. They hired for two profiles: Developer and Test. I was shortlisted for the developer profile. The… Read More
Given a N x N binary matrix (elements in matrix can be either 1 or 0) where each row and column of the matrix is… Read More
Given an array of positive and negative numbers, arrange them such that all negative integers appear before all the positive integers in the array without… Read More