# All Medium Articles Basic Easy Medium Hard Expert All Categories Arrays Misc Program Output Strings Linked Lists Bit Magic Articles Trees MCQ GFacts Interview Experiences GBlog Stack Queue Algorithm Analysis Dynamic Programming Greedy Backtracking Pattern Searching Divide and Conquer Searching Sorting Mathematical Geometric Heap Hash Randomized Combinatorial Matrix Binary Search Tree Advanced Data Structure Project Technical Scripter Python Competitive Programming Internship Experienced TechTips Geek on the Top Branch and Bound Game Theory Computer Networks Operating Systems DBMS GATE CS SQL Java Compiler Design Recursion Puzzles C C++ Data Structures Graph School Programming Design Pattern Articles Placements QA – Placements Reasoning – Placements English – Placements DI – Placements Aptitude Web technologies Python-Quizzes QA – Placement Quizzes C Quiz C++ Quiz Java Quiz GATE Operating Systems DBMS Quiz Computer Networks Quiz Data Structures Algorithms Compiler Design Computer Organization and Architecture Digital Electronics & Logic Design Theory of Computation & Automata Computer Organization & Architecture Engineering Mathematics Difference Between Advanced Computer Subject C Programs C++ Programs Java Programs Python Programs Web Technologies JavaScript Linux-Unix

## Find smallest subarray that contains all elements in same order November 24, 2017 3

Given two arrays of integers of size m and n. The task is to find the minimum length subarray in the first array that contains… Read More »

## Microsoft Interview Experience | Set 151 (SDE-2 3.5 years experience) 3

Round 1: Place all numeric characters in string before alphabet characters . Using min swaps and O(1) space and Maintain the order of characters. Round… Read More »

## Generate original array from an array that store the counts of greater elements on right 3

Given an array of integers greater[] in which every value of array represent how many elements are greater to it’s on right side in an… Read More »

## REVE Systems Interview Experience | Set 1 (On Campus) November 23, 2017 3

The process consisted of three rounds: Round-1 : Written Test (90 minues) Round-2 : Technical Interview Round-3 : HR Interview Round-1 : Written Test (90… Read More »

## Fail Fast and Fail Safe Iterators in Java 3

In this article, I am going to explain how those collections behave which doesn’t iterate as fail-fast. First of all, there is no term as… Read More »

## Puzzle | Haunted House Escape 3

Two friends Ram and Shyam were travelling through a forest. They were hungry and it was late at night. They were looking for shelter and… Read More »

## Find closest number in array 3

Given an array of sorted integers. We need to find the closest value to the given number. Array may contain duplicate values and negative numbers.… Read More »

## HTML | Lists November 22, 2017 3

What is a list? A list is a record of short pieces of information, such as people’s names, usually written or printed with a single… Read More »

## Number of pairs with maximum sum 3

Given an array arr[], count number of pairs arr[i], arr[j] such that arr[i] + arr[j] is maximum and i < j. Example: Input : arr[]… Read More »

## Maximizing array sum with given operation 3

There is an array consisting of (2 * n – 1) integers. We can change sign of exactly n elements in the array. In other… Read More »

## Minimizing array sum by subtracting larger elements from smaller ones 3

Given an array of n elements perform, we need to minimize array sum. We are allowed to perform below operation any number of times. Choose… Read More »

## Program to swap upper diagonal elements with lower diagonal elements of matrix. 3

Given a square matrix, swap upper diagonal elements of matrix with lower diagonal elements of matrix. Examples: Input: 2 3 5 6 4 5 7… Read More »

## Closest greater element for every array element from another array 3

Given two arrays a[] and b[], we need to build an array c[] such that every element c[i] of c[] contains a value from a[]… Read More »

## Microsoft IDC Interview Experience | Set 150 (Off-Campus for Full Time) 3.5

I applied Off campus through Microsoft referral program. Initially the shortlisting was done on the basis of CV. Round 1: First round was Online coding… Read More »

## Different substrings in a string that start and end with given strings 3.3

Given a string s and two other strings begin and end, find the number of different substrings in the string which begin and end with… Read More »

## Count of operations to make a binary string”ab” free 3

Given a string containing characters ‘a’ and ‘b’ only. Convert the given string into a string in which there is no ‘ab’ substring. To make… Read More »

## Maximum array sum with prefix and suffix multiplications with -1 allowed November 21, 2017 3

Given N elements (both positive and negative). Find the maximum sum, provided that the first operation is to take some prefix of the sequence and… Read More »

## Python Faker Library 3

Faker is a Python package that generates fake data for you. Installation: Help Link Open Anaconda prompt command to install: conda install -c conda-forge faker… Read More »

## Self Destructing Code in C 3.5

Using remove() function in C, we can write a program which can destroy itself after it is compiled and executed. Explanation: This can be done… Read More »

## Puzzle | Random Seating 3.7

People are waiting in line to board a 100-seat airplane. Ajay is the first person in the line. Ajay gets on the plane but he… Read More »