Financial Software Developer Interview Questions | Glassdoor.co.uk

Financial Software Developer Interview Questions

73

Financial software developer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Design an algorithm to find the first unique element in an array.

8 Answers

One possibility that comes in mind: * Walk the array, create a hashmap (key is the value in array, value is the count of such values). * Walk the array again and check the count in the hash map, once you hit 1, you have the first unique value. This is O(n) both space and time.

Are you sure that this is O(n), it is definitely O(n^2), you go over all items twice.

dear utk O(2n) = O(n) != O(n^2)...

A rabbit wants to climb some stairs and it can do steps of 1 or 2. How many possible paths are there to follow ( e.g 1-1-1... or 2-2-2 ... or 2-1-2-1... etc)

6 Answers

write a function that returns the first unique element in an array

5 Answers

int i=14; if (i=15) i++; How much is i?

4 Answers

You have a large data file, consisting of ten-digit numbers separated by new-line characters. Write a program in C to sort it, using at most 20MB of memory. Make it efficient.

4 Answers

Most efficient way to find the most frequent number (0-255) in a string of numbers

4 Answers

2 pieces of string of different length and non-uniform width, each take one hour to burn. the remaining length of a burning string doesn't tell you how much longer it burns for. with a lighter measure 45 mins.

3 Answers

There are one hundred closed lockers in a hallway. A man begins by opening all one hundred lockers. Next, he closes every second locker. Then he goes to every third locker and closes it if it is open or opens it if it is closed (e.g., he toggles every third locker). After his one hundredth pass in the hallway, in which he toggles only locker number one hundred, how many lockers are open?

2 Answers

template<class T1; class T2; class T3> int Product (T1 a, T2 b, T3 c) { return a * b * c; } What is the error in the sample code above?

4 Answers

how can I count the bit set to 1 in an integer? What if I want to optimize the process to work with several integers?

2 Answers
110 of 73 Interview Questions