Ariba Interview Question
25 Interview Reviews |
Back to all Ariba Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Senior Software Engineer at Ariba:
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (3)
0 of 2 people found this helpful
Single iterator plus a hash table (insert each value into hash table after searching for it in there). You get O(n).
Helpful Answer?
Yes |
No
Inappropriate?
Actually, I'm pretty sure it's not O(n^2). If there is a loop, the worst case is that it loops back to the last element (this means the faster pointer will take the longest to reach the slow pointer). By the time the slow pointer reaches the point in the list where it loops back, the fast pointer will have caught up to it. So it's O(n).
Helpful Answer?
Yes |
No
Inappropriate?
Members can
answer or comment on this question
–
Join Now (It's Free) or
Sign In
0 of 0 people found this helpful
by Interview Candidate: