All Expert Articles
Which of the following is true about inheritance in Java. 1) In Java all classes inherit from the Object class directly or indirectly. The Object… Read More
Hi All, I got the following question for the On-Campus placement process. Hopefully it’ll help you too. Screening Test Q1. Left View of a tree… Read More
Consider an instruction pipeline with five stages without any branch prediction: Fetch Instruction (FI), Decode Instruction (DI), Fetch Operand (FO), Execute Instruction (EI) and Write… Read More
Consider the following languages.     Which one of the following statements is FALSE? (A) L2 is context-free. (B) L1 intersection L2 is context-free. (C) Complement… Read More
What is the time complexity of Bellman-Ford single-source shortest path algorithm on a complete graph of n vertices? (A) A (B) B (C) C (D)… Read More
I recently attended the walk-in process for Amazon Off campus recruitment drive. This was for SDE position at Chennai. I would like to share my… Read More
Can destructors be private in C++? (A) Yes (B) No Answer: (A) Explanation: Destructors can be private. See Private Destructor for examples and uses of… Read More
Hi, This is Pandu. About 1 month back I had attended Amazon Interview In Hyderabad, it was total of 8 rounds which includes 2 telephonic… Read More
I had GS Labs Pune interview on 6th Apr 2013. They called me in the morning 9am. It was good Saturday morning. Reached on time.… Read More
An implementation of a queue Q, using two stacks S1 and S2, is given below:  C void insert(Q, x) {    push (S1, x); }   … Read More
Which of the following is true about Binary Trees? (A) Every binary tree is either complete or full. (B) Every complete binary tree is also… Read More
We have discussed Backtracking and Knight’s tour problem in Set 1. Let us discuss Rat in a Maze as another example problem that can be… Read More
Following questions have been asked in GATE CS 2008 exam. 1. The subset-sum problem is defined as follows. Given a set of n positive integers,… Read More