Featured Article

Reverse an array in groups of given sizeAugust 18, 2016

Given an array, reverse every sub-array formed by consecutive k elements. Examples: Input: arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] k = 3 Output: [3, 2, 1, 6, 5, 4, 9, 8, 7] Input: arr = [1, 2, 3, 4, 5, 6, 7, 8] k = 5 Output: [5, 4, 3,… Read More »

Featured Article

A Step by Step Guide for Placement Preparation | Set 1August 3, 2016

Campus placements season is beginning at almost all the colleges and each one of us wants to prepare to do the best. A lot of students have been asking on different forums “How to use GeeksforGeeks for placement preparation”? In this article, a step by step guide for placement preparation is discussed. Steps Aptitude Test… Read More »

HP R&D Interview Experience | Set 4 (R&D Lab Bangalore)August 24, 2016

First round: 20 Aptitude Questions 22 Technical Questions and 8 OOPS Questions(CPP or Java). NO CODING QUESTIONS. Level of both Aptitude and Technical was tough. Second Round:TECHNICAL( Lasted about 45 mins-1 hour) Storage classes; SET bits in a number; puzzles on tanks;pointers; OSI MODEL; Linked list coding; fork(); vfork() ; semaphore; mutex; Talk about project and resume’… Read More »

Topological Sort of a graph using departure time of vertex

Given a Directed Acyclic Graph (DAG), find Topological Sort of the graph. Topological sorting for Directed Acyclic Graph (DAG) is a linear ordering of vertices such that for every directed edge uv, vertex u comes before v in the ordering. Topological Sorting for a graph is not possible if the graph is not a DAG.… Read More »

Directi Interview | Set 13

There was coding round on CodeChef for 3 hours duration. You cannot use custom test cases within their IDE or edit your code after running. Coding Problem 1 Amanada, a school kid, is learning English alphabets. Her teacher devised a small game to make the task fun. A grid of ‘m’ rows and ‘n’ columns… Read More »

Opera Interview Experience | Set 3 (IOG division)

First round was a test that had 35 questions having negative marks. The test consisted of aptitude, technical questions in dbms, os,  programming questions, and there were 5 questions based on a case study which was about a language that was unlike sql and had different queries and operator styles, also different arguments. They had to… Read More »

Iterator Functions in Python | Set 1

Perquisite: Iterators in Python Python in its definition also allows some interesting and useful iterator functions for efficient looping and making execution of the code faster. There are many build-in iterators in the module “itertools“. This module implements a number of iterator building blocks. Some useful Iterators : 1. accumulate(iter, func) :- This iterator takes… Read More »

Reverse an array in groups of given size | Set 2 (Variations of Set 1 )August 23, 2016

Given an array, reverse every sub-array that satisfies the given constraints. We have discussed a solution where we reverse every sub-array formed by consecutive k elements in Set 1. In this set, we will discuss various interesting variations of this problem.   Variation 1 (Reverse Alternate Groups): Reverse every alternate sub-array formed by consecutive k… Read More »

Amazon Interview Experience | Set 301(On-Campus for Internship+ FTE)

Round 0: (Written): 20 MCQs + 2 Coding Questions: MCQs – Topics: OS – Page fault, Waiting time (RR Scheduling), Paging, Semaphores, etc. DS – Hashing (simple chaining based numerical) Aptitude – 1 Probability question, Puzzle – 1 question, C– 2 questions, etc. Coding Questions: Given a list of n strings group all anagrams together Example:… Read More »

Statistical Functions in Python | Set 2 ( Measure of Spread)

Statistical Functions in Python | Set 1(Averages and Measure of Central Location) Measure of spread functions of statistics are discussed in this article. 1. variance() :- This function calculates the variance i.e measure of deviation of data, more the value of variance, more the data values are spread. Sample variance is computed in this function,… Read More »

Morgan Stanley Interview | Set 22 (For PPO)August 22, 2016

I had done an 8-week summer internship at Morgan Stanley, Bengaluru. Unlike other companies which give Pre-Placement Offers to the interns on the basis of the work done and manager’s feedback, Morgan Stanley conducts interviews for the same. There were 3 rounds of interviews for everyone. The interviews were held in the penultimate week of… Read More »

Factset Interview Experience | Set 7 (On-Campus)

Recently, Factset came in our college for campus drive. The complete process took 2 days. 1st Round It was a pen & paper round where we were asked to write 3 codes: Concatenate the given n strings to make a single string such that on combining two strings the last character of first string should… Read More »

Statistical Functions in Python | Set 1 (Averages and Measure of Central Location)

Python has the ability to manipulate some statistical data and calculate results of various statistical operations using the file “statistics“, useful in domain of mathematics. Important Average and measure of central location functions : 1. mean() :- This function returns the mean or average of the data passed in its arguments. If passed argument is… Read More »

Oracle Interview Experience | Set 35 (On-campus)

Firstly, an online test was conducted on the Oracle platform, consisting of 4 sections – Communication Skills, Logical Aptitude, Programming Skills, and Computer Science Knowledge. I found it challenging as the questions were of moderate level, time was limited for each section and some of the questions were related to the next ones in queue… Read More »

Geek on the Top – Harshil Shah | Solving lots of easy problems are not as beneficial as practicing some hard problems

Geek on the top is all about success stories of Geeks who are working hard to chase their goals and are inspiration for other geeks. Harshil Shah might not need introduction to many geeks reading this article. He is a super talented programming nerd with so many contest positions in his profile , Adobe Hackathon, SnackDown,… Read More »

HSBC interview Experience | Set 2 (On-Campus)August 21, 2016

Interview experience: 2 profiles , one for legacy technologies one for new age technologies(big data, cloud computing,data analytics) Round 1: Written round consisting of 5 sections verbal(passage / article consisting of 20 blanks),analytical/aptitude(very basic questions),attention(very easy),C&Data Structures(easy includes sorting, graph, output questions),Java(involved a bit concepts interface ,threading , collections ). It had sectional cut-off and… Read More »

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

1. Written Round 20 MCQ from simple data structures, Networking, DBMS and some maths. 2 coding questions. A) Interval merging problem. ( http://www.geeksforgeeks.org/merging-intervals/ ) B) Finding the diameter and printing the path of a binary tree from one end to other. If there are more than one diameter then print the one which is lexicographical… Read More »

Cvent Interview Experience | Set 1 (On-Campus for SDE)

Cvent visited our campus. The whole process took 1 day. There are 5 levels to be cleared for getting into cvent. First Level Its a shorlisting of candidates on CGPA basis. For us this criteria is 7 out of 10. Second Level Its a Online MCQ based round. There are 30 questions to be solved… Read More »

Fidelity Investments Interview Experience | Set 1 (On-Campus)

Firstly, an online round was conducted. It consisted of verbal and aptitude questions only. No technical or coding questions. Shortlisted 48 out of around 100 students for the interviews. There were 2 rounds of interviews. 1. Technical Interview The interviewer covered almost all the topics that are generally asked in the technical interviews. The asked… Read More »

Arista Networks Interview | Set 5 (On-Campus)

Arista Networks came to our campus. Initially, all the branches were allowed and the percentage criterion was 60%. But in the subsequent round, students from only COE, IT were shortlisted. For the next round we were asked to give our resumes and percentages. Students were then shortlisted based on these two. It was apparent that… Read More »

Oracle Interview Experience | Set 34 (On-campus for Application Developer)

Firstly, an online test was conducted on Oracle platform, consisting of 4 sections – Verbal, Aptitude, Programming Skills, Computer Science Concepts. There was separate time for each section, and each section contained subsections as well. Shortlisted 40 out of 65 students for the interviews. There were 4 rounds of interviews. 1. Technical Interview *Check whether… Read More »

Morgan Stanley Interview | Set 21 (On-Campus for Internship)

Morgan Stanley visited our college to hire summer interns(3rd year students). Firstly, an online test was conducted(90 minutes duration) on HackerRank, consisting of 19 MCQs(Data Structures, C concepts, programming concepts, data interpretation, verbal skills) and 2 coding questions(One based on string manipulation and other based on All-Pair Shortest Path Graph). 12 out of around 100… Read More »