## Longest Common Extension / LCE | Set 1 (Introduction and Naive Method)

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 »

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[l] – arr[k] + arr[j] – arr[i], such that i < j < k < l. Find the maximum value of arr[l] – arr[k]… 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 »

A one-time password (OTP) is a password that is valid for only one login session or transaction, on a computer system or other digital device.… Read More »

Written Test MCQs on Coding (predict the output, identify the error, …), Operating System Technical round -1 If a linked list has a cycle OOP… Read More »

Some of the merge operation classes are provided in C++ STL under the header file “algorithm”, which facilitates several merge operations in a easy manner.… Read More »

The longest Increasing Subsequence (LIS) problem is to find the length of the longest subsequence of a given sequence such that all elements of the… Read More »