truekool2
BAN USER
Questions (7)
Reputation 20
- 0of 0 votes
Answersgiven power(x,y)implementation, find number of multiplications in power(5,12)( written test)
- truekool2
int pow(int x, int n)
{
if(n==0)return(1);
else if(n%2==0)
{
return(pow(x,n/2)*pow(x,(n/2)));
}
else
{
return(x*pow(x,n/2)*pow(x,(n/2)));
}
}| Report Duplicate | Flag | PURGE
Adobe Computer Scientist C - 0of 0 votes
AnswersMultiple Choice,Amazon online test:
- truekool2
1)Given two sorted arrays of size m and n each, what is the minimum time taken to find the kth smallest element in the combined array
2)what is Minimum number of edges in a connected graph N nodes
3)What is the minimum number of using the next pointer required to find median of a sorted singly linked list of size n
4)| Report Duplicate | Flag | PURGE
Amazon Software Engineer / Developer Algorithm
Page:
1
Page:
1
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.