Give a fast way to multiply a number by 7
Answer Posted / anu
Both answers have slight mistakes in them.
x *7 = ( x<<3 ) - x , which is equivalent to (x* 8 ) -x
Is This Answer Correct ? | 65 Yes | 6 No |
Post New Answer View All Answers
What do you mean by scope of a variable in c?
Not all reserved words are written in lowercase. TRUE or FALSE?
You have given 2 array. You need to find whether they will
create the same BST or not.
For example:
Array1:10 5 20 15 30
Array2:10 20 15 30 5
Result: True
Array1:10 5 20 15 30
Array2:10 15 20 30 5
Result: False
One Approach is Pretty Clear by creating BST O(nlogn) then
checking two tree for identical O(N) overall O(nlogn) ..we
need there exist O(N) Time & O(1) Space also without extra
space .Algorithm ??
DevoCoder
guest
Posted 3 months ago #
#define true 1
#define false 0
int check(int a1[],int a2[],int n1,int n2)
{
int i;
//n1 size of array a1[] and n2 size of a2[]
if(n1!=n2) return false;
//n1 and n2 must be same
for(i=0;i
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
What is a structure in c language. how to initialise a structure in c?
What are the 4 types of organizational structures?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the use of a ‘ ’ character?
Is c is a low level language?
What is the use of typedef in structure in c?
Explain what is the concatenation operator?
What type of function is main ()?
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is a floating point in c?
will u please send me the placement papers to my mail???????????????????