Given an array of integers where each element points to the index of the next element how would you detect if there is a cycle in this array?
Software Interview Questions
549,961 software interview questions shared by candidates
My experience and availability to relocate
non disclosure agreement
Given a number find it is one less than the power of two.
What was one of your best achievements on a project in the past?
DS, Algorithms.
Discussed online assessment.
Suppose that you earn 100% annual interest (APY) on $1 initial deposit. How long before you'll be as rich as Bill Gates ($63 billion)? Given a number, e.g., 314159, as an array [3,1,4,1,5,9], increment it: change it to [3,1,4,1,6,0].
you have a sequence where each number is a multiple of 2 or 5 (so: 2^i * 5^j). he gave the beginning of the sequence as 1,2,3,4,5,8,10,16... and asked me to find an algorithm to calculate the next number in the sequence.
Implement a function rotateArray(vector<int> arr, int r) which rotates the array by r places. Eg 1 2 3 4 5 on being rotated by 2 gives 4 5 1 2 3.
Viewing 61 - 70 interview questions