Cisco Systems

  www.cisco.com
Work in HR? Unlock Free Profile

Cisco Systems Intern Interview Question (student candidate)

I interviewed in San Jose, CA and was asked:
"Please write code to compute x^x without using multiple"
Add Tags [?]
Answer

Part of a Intern Interview Review - one of 1,069 Cisco Systems Interview Reviews

Answers & Comments

0
of 0
votes

Use two for loops

- Interview Candidate on Feb 16, 2011
0
of 0
votes

int mul(int x,int y){
int z=0;
while(y!=0){
if((y&1)==1)
z=z+x;
y=y>>1;
x=x<<1;
}
return z;
}

- mvl on Aug 2, 2011
0
of 0
votes

We can do this by taking the logarithm also

- ynk on Apr 1, 2013

To comment on this question, Sign In with Facebook or Sign Up

Tags are like keywords that help categorize interview questions that have something in common.