Featured Article

Minimax Algorithm in Game Theory | Set 4 (Alpha-Beta Pruning)

Prerequisites: Minimax Algorithm in Game Theory, Evaluation Function in Game Theory Alpha-Beta pruning is not actually a new algorithm, rather an optimization technique for minimax algorithm. It reduces the computation time by a huge factor. This allows us to search much faster and even go into deeper levels in the game tree. It cuts off… Read More »

Amazon Interview Experience | Set 277 (On-Campus for Internship)

Recently Amazon visited our campus for interns and placements. For interns it consisted of 1 online + 2 technical rounds. Online:(90 mins) 20 MCQ’S based mainly on sorting, OS,Networks 2 coding questions: 1. Given a number find the next greatest number formed with same digits http://www.geeksforgeeks.org/find-next-greater-number-set-digits/ 2. Find the largest increasing sequence in an array… Read More »

Default Methods In Java

Before Java 8, interfaces could have only abstract methods. The implementation of these methods has to be provided in a separate class. So, if a new method is to be added in an interface then its implementation code has to be provided in the class implementing the same interface. To overcome this issue, Java 8… Read More »

Add elements of given arrays with given constraints

Given two integer arrays, add their elements into third array by satisfying following constraints – 1. Addition should be done starting from 0th index of both arrays. 2. Split the sum if it is a not a single digit number and store the digits in adjacent locations in output array. 3. Output array should accommodate… Read More »

Amazon Interview Experience | Set 276 ( On-Campus SDE-I)

Round 1(Online test : MCQ+Coding) 18 basic MCQ from OS, C, Shell, DBMS(SQL, NoSQL), puzzle(25 horses, find fastest three) :attempted 12/13 2 Coding questions: Given a string and a pattern state whether it follows the pattern. For eg: s = “redblueredgreen” matches pattern “abac” but not “aaab” as ‘red’ means ‘a’, ‘blue’ means ‘b’ and… Read More »

Directi Interview | Set 11 (On-Campus)

Directi came to my college for Operations Engineer (DevOps ) profile. There was a presentation and PPT(pre-placement talk) through which we got a chance to interact with them and got know more about Directi initiatives. Interview Process: MCQ (DOT Test) Coding Round (Offline with Documentation) Face to Face (Technical Interview) Face to Face (Technical Interview)… Read More »