(i.e. we have 2n+2 numbers and n numbers are occurring twice and remaining two have occurred once).
Find those two numbers in the
Interview Questions asked in Google, Microsoft, Amazon
by Dhaval Dave
by Dhaval Dave
by Dhaval Dave
by Dhaval Dave
by Dhaval Dave
Given a sorted array and a number x, find a pair in array whose sum is closest to x.
Examples:
Input: arr[] = {10, 22, 28, 29, 32, 40}, x = 54
Output: 22 and
by Dhaval Dave
by Dhaval Dave
example
by Dhaval Dave
A class is made abstract by declaring at least one of its functions
by Dhaval Dave
Polymorphism occurs when there is a hierarchy of classes and they are related by inheritance.
C++ polymorphism means that a call to a member function will cause a different function to
by Dhaval Dave
Data abstraction refers to, providing only essential information to the outside world and hiding their background details
Any C++ program where you implement a class with public