Question : There are one thousand bottles of wine. Only one of these bottles is contaminated with a deadly poison. The poison is so potent that even a single drop of contaminated wine can cause death. A scientist wants toContinue reading… Thousand poison bottles
Category: Placements
Finding defective coin using old weighing machine …
Question : One of twelve pool balls is a bit lighter or heavier (you do not know) than the others. At least how many times do you have to use an old pair of scales to identify this ball? (aContinue reading… Finding defective coin using old weighing machine …
Twelve Ancestors [clues:trails] — Solution
From general knowledge we know that every person has a male father and a female mother, and is not his or her own ancestor. The twelve include five women and their husbands (1) and two other men (2). None ofContinue reading… Twelve Ancestors [clues:trails] — Solution
Twelve Ancestors [clues:trails]
Try it! (Warning — it will require good intuition about kinship charts and, even with that, seems to be fairly difficult. However it is a pure logic puzzle: besides the explicit Clues, you’ll need only the definitions and most obviousContinue reading… Twelve Ancestors [clues:trails]
Sockets for interprocess communication
This is a simple tutorial on using sockets for interprocess communication. The client server model Most interprocess communication uses the client server model. These terms refer to the two processes which will be communicating with each other. One of theContinue reading… Sockets for interprocess communication
Bubble Sort
The source code for bubble sort. #include #define NUM 6 void swap(int arr[], int i, int j) { int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; } main() { int arr[NUM],i,j; // start reading nums for(i=0;i
Shell Sort
Source code for shell sort is provided below. #include #define NUM 6 main() { int arr[NUM],i,j, incr=2; // start reading nums for(i=0;i
Insertion Sort
Source code for Insertion sort in C language. #include #define NUM 6 main() { int arr[NUM],i,j; // start reading nums for(i=0;i
Selection Sort
The code for the selection sort in C lang is provided below. #include #define NUM 6 void swap(int arr[], int i, int j) { int tmp = arr[i]; arr[i] = arr[j]; arr[j] = tmp; } main() { int arr[NUM],i,j; //Continue reading… Selection Sort
Interviewing Skills for Candidates
Before Be sure to make whatever arrangements are necessary so you can be on time – or early – for your interview. Your punctuality indicates your commitment, dependability, and professionalism. What’s more, you’ll be in a better frame of mindContinue reading… Interviewing Skills for Candidates