Operating System Interview Questions – Set 1

Operating System Questions and Answers – This set of Operating System MCQs will be useful for interview preparations for experienced people. #1: A system is in the safe state if a) the system can allocate resources to each process in some order and still avoid a deadlock b) there exist a safe sequence c) both Read More →

C Programming Quiz – Set 1

Proramming Questions & Answers – You should practice these quizzes to improve your C programming skills needed for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive exams. #1: Which is valid C expression? a) int my_num = 100,000; b) int my_num = 100000; c) int my num = 1000; Read More →

Computer Networks Quiz – Set 2

Computer Networks Questions & Answers – #1: Physical or logical arrangement of network is a) Topology b) Routing c) Networking d) None of the mentioned Show Answer Answer: a Explanation: None #2: This topology requires multipoint connection a) Star b) Mesh c) Ring d) Bus Show Answer Answer: d Explanation: None #3: Expand WAN a) Read More →

Computer Networks Quiz – Set 1

Computer Networks Questions & Answers – #1: Transport layer aggregates data from different applications into a single stream before passing it to a) network layer b) data link layer c) application layer d) physical layer Show Answer Answer: a Explanation: None #2: Which one of the following is a transport layer protocol used in internet? Read More →

Bharti SoftBank (HIKE) Interview Questions – Set 2

Written Test 1. The test consisted of 10 MCQ’s on Aptitude and 10 MCQ’s on C programming. 2. It also consisted of 2 programming questions which were easy. Technical Interview: Q1. Find the mirror image of a binary tree. Q2. Maximum length path between any two nodes in a tree. Q3. A question on Btrees? Read More →

Merging 2 Arrays without using Extra Space

Given two sorted arrays, A and B. Write a method merging the elements of B into A in sorted order. Assume A has a large enough buffer at the end to hold all of B’s elements. Solution: Suppose we want to merge two arrays a1 and a2. a1 has n elements and has space for Read More →

Largest Difference in an Array

You have an array of integers: int[] A = { 10, 3, 6, 8, 9, 4, 3 }; My goal is to find the largest difference between A[Q] and A[P] such that Q > P. If P = 1 and Q = 4 diff = A[Q] – A[P] diff = 9 – 3 diff = Read More →

Minimum Distance Between Array Elements

Given a non-negative integer array, Find the minimum distance between 2 distinct elements of A. Minimum Distance is defined as if P != Q then |(A[P] – A[Q])| Solution: Time Complexity: O(N)

Passing Car East or West Codility

A non-empty zero-indexed array A consisting of N integers is given. The consecutive elements of array A represent consecutive cars on a road. Array A contains only 0s and/or 1s: 0 represents a car traveling east, 1 represents a car traveling west. The goal is to count passing cars. We say that a pair of Read More →

Samsung Interview Questions – Set 3

Samsung Bangalore placement process consists of three sections: 1.Written test 2.Technical interview 3.HR interview Aptitude: The questions are easy to crack provided you understand the questions well. Technical Questions: Questions from Algorithms,Computer Networks,Data Structures,Database Management,Operating Systems(IMP). Q1. You are given a string and a number.Count the no of ‘-’ characters in the string and return Read More →

Flipkart Interview Questions – Set 3

Company : Flipkart I was interviewed for Flipkart SDE 2 role few days back. I want to share interview experience with other geeks. Written Test: It was online coding round on interview street. (1Hr) Technical Rounds: Q1. Check whether given Binary Tree is a Binary Search Tree. Discuss various approaches? Q2. Given a large list Read More →

Nagarro Interview Questions – Set 1

Company: Nagarro Coding Round: It consists 4 questions. Q1. Input an array and then print the repeating characters?? Example: Input:1,3,23,11,44,3,23,2,3. Output:3,23 Q2. Input an array and prints the second minimum in an array?? Example Input:34,45,21,12,54,67,15 Output:15 Q3. Find the longest palendrom in a string? Example Input: abfgerccdedccfgfer Output: ccdedcc Q4. Input a number and then Read More →