Softwareentwickler Interview Questions | Glassdoor.com.hk

# Softwareentwickler Interview Questions

320

softwareentwickler interview questions shared by candidates

## Top Interview Questions

Sort: RelevancePopular Date

14 May 2014
 The problems are not hard.3 AnswersBut you may need well preparation.o(nlogn) solution based on binary search below. An o(n) solution based on hashtable is also possible but consume o(n) memory. public static void main (String[] args) throws java.lang.Exception { Pair p = findPairBySum(15, new int[] {1,2,3,4,5,6,7,8,9,10}); System.out.println(p.x); System.out.println(p.y); } public static Pair findPairBySum(int sum, int[] sortedArr) { for (int i=0; i= 0) return new Pair(first, expected); } return null; } public static int getIndex(int num, int[] sortedArr, int startIndex, int endIndex) { if (startIndex > endIndex) return -1; int pos = startIndex + (endIndex - startIndex) / 2; int valAtMiddle = sortedArr[pos]; if (valAtMiddle == num) return pos; if (num < valAtMiddle) return getIndex(num, sortedArr, startIndex, pos-1); return getIndex(num, sortedArr, pos+1, endIndex); } public static class Pair { public int x; public int y; public Pair(int x, int y) { this.x = x; this.y = y; } }Note that the array is sorted already. O(n) time with O(1) space is feasible.

### Software Developer at Barclays was asked...

29 May 2010
 Write down code to calculate Fibonacci in 2 ways - then asked to explain complexity.2 AnswersVery embarrassing experience - recommend to have a good review on Year One computer sceience topics.it can be written in recursion and iteration fashion. Both are O(n).

### HSBC Co-op Programmer - Technology and Services at HSBC Holdings was asked...

22 Jun 2013
 have I got any experience in writing computer language?2 AnswersNope, unfortunately don't have experience in that areaMay I ask how was the result?

### Software Engineer at Jane Street was asked...

8 Mar 2015
 Second round: Implement an expression evaluator for arithmetic expressions. Followed up by, how would I add operator precedence and variables.2 Answersdata Expr = Const Int | Add Expr Expr | Sub Expr Expr | Mul Expr Expr eval :: Expr -> Int eval[Const x) = x eval[Add x y) = eval x + eval y eval[Sub x y) = eval x - eval y eval[Mul x y) = eval x * eval y -- variables would involve adding some sort of "let" definition... -- "precedence" is explicit in this definition, because even if you do something like -- eval \$ (Const 6) `Add` (Const 5) `Mul` (Const 3) -- haskell will use its default (left) fixity, and so some sort of inherent Mul precedence would be negated by its straight up definition: -- eval \$ Mul (Const 3) \$ Add (Const 6) (Const 5)this text field is broken newlines don't render properly

14 Mar 2019

### Software Engineer(Internship) at Bloomberg L.P. was asked...

18 Dec 2018
 String manipulation questions2 AnswersUsing dynamic Programming to reduce time complexityDid you get to receive an email saying that they won't give you an offer?

### React Native Software Engineer at Hire Live Support was asked...

7 Aug 2018
 React code test (home) - create a countdown timer animation 2 days is given1 AnswerJavascript code test - fill in the missing part of the code < please create a function call removeDuplicate, and the function would able to remove all duplicate characters from a string, such as turn “aaaabbbccc” to “abc”. 10min is given

27 Oct 2018
 What are threads, deadlocks, and how to deal with those?1 AnswerI answered on half-ish of the questions. But not because I didn't know. I simply forgot implementation of those techniques, despite having good understanding of the topic.

24 Mar 2020