Interview Question
Software Engineer Student Interview
-Haifa
Elbit SystemsImplement x^y function in an imaginary proccessor who doesnt have +, /, * operators.
AnswerAdd Tags
Interview Answers
3 Answers
▲
0
▼
without i+=1... the main idea is to iterate and do the sum mul with && // probably have some mistakes in what i wrote..
g on
▲
1
▼
without i+=1... the main idea is to iterate and do the sum mul with && // probably have some mistakes in what i wrote..
g on
▲
1
▼
change numbers to binary call a func - f(x , x , 1) f (int a , int b , int i) { while i <= y { b = calc a*b with && || of binary nums; i+= 2; iterate with a ,b , i+1 } return answer } not organized but thats the idea...
g on
Add Answers or Comments
To comment on this, Sign In or Sign Up.