Given an array of integers nums, find the maximum difference between any two elements in the array. You must write an algorithm that runs in linear time and uses linear extra space. For example, given the array [1, 3, 2, 9, 5, 6], the maximum difference is 8 (between 1 and 9). This question tests the candidate's ability to apply concepts such as sorting and searching to solve algorithmic problems in an efficient manner.
Graduate Analyst Interview Questions
3,817 graduate analyst interview questions shared by candidates
Are you aware of Barclays values? Give examples from your life.
Q) Tell us why you want to work for Barclays
Why should we hire you?
You have one bag with red marbles in, one with blue marbles in and the other with a mixture.You cannot see through the bags and they are labelled incorrectly. How do you re-label them using the minimum amount of marbles to pick from the bag?
Work out how many primary schools there are in the UK.
1) Estimate the number of primary schools in the UK 2) Marbles
Suppose you have a jug which holds 5 litres and a jug that holds 3 litres. How do you accurately measure 4 litres?
How many marbles in the bag qu.
If you roll two dice, what are the odds of getting at least one 5? What if you roll 3 dice?
Viewing 51 - 60 interview questions