Given a number having only one ‘1’ and all other ’0’s in its binary representation, find position of the only set bit.
Last Asked at @Microsoft
Say number is : 5 so its binary … Read More
Interview Questions asked in Google, Microsoft, Amazon
by Dhaval Dave
by Dhaval Dave
(Below is the table of price rule) Come up with data structure you can store these price rules
by Dhaval Dave
Apriori Algorithm is an algorithm for data mining of frequent data set and association rule learning over transactional databases. It identifies the frequent individual items in the database for example, collections of items bought by … Read More
by Dhaval Dave
Today we are going to show you to write simple C level Client – Server Networking & Communication program. This Program and methods are base to create any communication software like whatsapp, fb chat or … Read More
by Dhaval Dave
Write a code to Convert number to words . example ip 15 op : fifteen
ip : 1234 op : one thousand and thirty four
Algorithm : When we detect a number at any place … Read More
by Dhaval Dave
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples … Read More
by Dhaval Dave
If a binary tree is given, how to find Maximum path sum between two leaves of binary tree.
All should be numbers The maximum sum path may or may not go through root. For example, |
by Dhaval Dave
Set of Numbers are given to you.
convert them to Roman numbers.
Solution is in Hacker Earth style… Read More
by Dhaval Dave
With First look you think practical way of solving this question, and that is randomly taking a bolt and finding (by Looking at all nuts) perfect fit nut for it.
but does such logic to … Read More
by Dhaval Dave
Here We have implemented a Generic Stack Example with Templates in C++ where we can Push any element into stack.
#include <iostream>
#include <vector>
#include <cstdlib>
#include <string>
#include <stdexcept>
using namespace std;… Read More