Posts

Red Apple Puzzle

There are 200 apples in basket, out of which 99% apples are Red apple. How many red apples must be removed to make the percentage of Red apple 98% ? For Hint: Click Here To make Red apple 98%, you need to make other apples count as 2. Currently basket have 2 other apples.

Bus Ticket Puzzle

Two deaf and dumb guys Ramesh and Suresh went to bus station. They wanted to take ticket to Kalyan station from thane and ticket cost per person is 50rs. Ramesh gave him 100rs and Ticket master gave him two tickets without looking at him. How did ticket master get to know that he wants two tickets not one as ticket master did not even seen his face ? For Hint: Click Here He did not gave 100rs Note.

Prime Number Program in Java

Prime number is a number which is divisible by itself. We can write this program in multiple ways but it will reduce the performance for  larger numbers. Here we define one of faster and optimised way to check if number is prime or not. public boolean isPrime( int value) {           if(value == 2)                    return true;            if (value % 2 == 0)                    return false ;          for ( int j = 3; j <= Math.sqrt(value); j+=2) {                if (value % j == 0) {                        return false ;               }         }         return true ; } In this...

Cross River puzzle

Two boys want to cross a river. Only one boat is present on the riverside that can carry only one person at a time. However, they still manage to cross the river. How is it possible ?

Count mangoes puzzle

In a basket of Mangoes, when counted in twos, there was one extra when counted in threes, there were two extra when counted in fours, there were three extra when counted in fives, there were four extra when counted in sixes, there were five extra. However, if the mangoes were counted in sevens, no extra mango was left. Can you calculate the minimum number of mangoes that were present in the basket ?

Turn off Whatsapp tone in Windows phone

Image
To turn off whatsapp tone on Windows phones, Please go through following steps: 1. Go to Settings of Windows phone. 2. Go to Notifications and Actions 3. Click on whatsapp 4. Change/disable the tone.  Enable/disable vibrate option for whatsapp.

Place queen on Chessboard puzzle

Image
Can you place 8 queens on the board in a manner that none of the queens can attack each other? Note: Queen moves horizontal, vertical and diagonally. Please see below image for reference.