Fragen im Bewerbungsgespräch: Programmer | Glassdoor.de

# Fragen im Vorstellungsgespräch: Programmer

2,373

Fragen aus Vorstellungsgesprächen für programmer, von Bewerbern geteilt

## Top Vorstellungsgespräch-Fragen

Sortieren: RelevanzBeliebtheit Datum

### Ein Bewerber für eine Stelle als Software Engineer bei Zalando wurde gefragt...

23. Dez. 2015
 Write a method which return how many palindromes are in a word. Eg: barbarabar has 7 (b,a,r,barab,a,r)6 Antwortenimport java.util.HashSet; import java.util.Set; public class One { public static void main(String[] args) { System.out.println(palindromeTest("barbarabar")); } public static int palindromeTest(String string) { Set palindromes = new HashSet(); boolean canBePalindrome; for (int i = 0; i = 0 && i + offset < string.length() && canBePalindrome) { if (string.charAt(i - offset) == string.charAt(i + offset)) { palindromes.add(string.substring(i - offset, i + offset + 1)); offset++; } else { canBePalindrome = false; } } } return palindromes.size(); } } How much time was given for this task?int solution(String X) { int palCount = 0; int singlePal = X.length(); for (int i = 0; i < X.length(); i++) { String sub = "" + X.charAt(i); boolean isPal = true; for (int j = i + 1; j < X.length(); j++) { sub += X.charAt(j); if (X.charAt(i) == X.charAt(j)) { // check if a palindrome for (int k = 0, l = sub.length() - 1; k < sub.length() / 2; k++, l--) { if (sub.charAt(k) != sub.charAt(l)) { isPal = false; break; } } if (isPal) { palCount++; singlePal -= sub.length(); i = j; } break; } } } return palCount + singlePal; }Did anyone get asked to do this in JavaScript?Mehr Antworten anzeigen(function() { 'use strict' var string = "barbarabar", _pandulumsFound = []; for(var idx = 0, leni = string.length; idx < leni; idx++) { var str = string[idx]; if(_pandulumsFound.indexOf(string[idx]) < 0) { _pandulumsFound.push(string[idx]); } for(var j = idx + 1; j < leni; j++) { str += string[j]; var _isValidPalindrome = true; for(var k = 0, lenk = str.length, lenkitr = Math.ceil(lenk / 2); k < lenkitr; k++) { if(str[k] != str[lenk - k - 1]) { _isValidPalindrome = false; break; } } _isValidPalindrome && _pandulumsFound.push(str); } } console.log("Pandolums found: " + _pandulumsFound); })();def isPalindrome[A](xs: List[A]): Boolean = xs match { case (head :: tail) :+ last => if (head == last) isPalindrome(tail) else false case Nil | _ :: Nil => true } def howManyPalindrome(str: String): Int = { def aux(x\$1: String, end: Int, cnt: Int): Int = { if (x\$1.isEmpty) return cnt val head = x\$1.head val lastInd = x\$1.lastIndexOf(head, end) val x\$2 = x\$1.slice(0, lastInd + 1) if (isPalindrome(x\$2.toList)) { val x\$3 = x\$1.replaceFirst(x\$2, "") aux(x\$3, x\$3.length, cnt + 1) } else aux(x\$1, lastInd - 1, cnt) } aux(str, str.length, 0) }function palindrome(str){ const arr = []; for(let i = 0; i < str.length; i++){ for(let j = i + 1; j <= str.length; j++){ const word = str.slice(i, j); const isPalindrome = word === word.split('').reverse().join(''); if(isPalindrome) arr.push(word); } } return Array.from(new Set(arr)); }

### Ein Bewerber für eine Stelle als Senior Software Engineer bei Zalando wurde gefragt...

19. Jan. 2018
 How to convert an Optional string to integer without throwing exception4 Antwortenuse filter and mapWell its pretty basic. 1. Convert String into character array. 2. Check if Array's length = 48 && intValue <= 57) { int numValue = values[intValue - 48]; finalNumber += (numValue * Math.pow(10, power)); power--; } else { System.out.println("Not a number"); return; } } finalNumber *= multiplier; System.out.println(finalNumber); }Program ___________________________________________ int[] values = {0,1,2,3,4,5,6,7,8,9}; String test = "-123"; char[] arr = test.toCharArray(); if(arr.length = 48 && intValue <= 57) { int numValue = values[intValue - 48]; finalNumber += (numValue * Math.pow(10, power)); power--; } else { System.out.println("Not a number"); return; } } finalNumber *= multiplier; System.out.println(finalNumber); }Mehr Antworten anzeigenglassdoor not allowing to post full code.

### Ein Bewerber für eine Stelle als Softwareentwickler bei Google wurde gefragt...

20. Jan. 2012
 Finden Sie anhand eines Strings das kleinste Fenster mit vorgegebenen Anzahl an Zeichen.4 Antwortenpublic int minWindow(char[] str, char[] chars, int startIndx, int i, int j) { if (j == chars.length) { // found the solution // check the minimum if ((i - startIndx) 0) { return minWin; } return -1; }static int minWin = Integer.MAX_VALUE; public static int minWindow(char[] str, char[] chars, int startIndx, int i, int j) { if (j == chars.length) { // found the solution // check the minimum if ((i - startIndx) 0) { return minWin; } return -1; }MohdMehr Antworten anzeigenIraq

21. Nov. 2015

### Ein Bewerber für eine Stelle als Android Developer bei FREE NOW wurde gefragt...

7. Nov. 2017
 Create an app fetching car details from a server and showing them in a list. Then localize hem in a google map. Also showing all the cars in the map as pins4 AntwortenProject createdHow you created the app? What sort of ui and code organisation you adopted that satisfied mytaxi team ? I did created the app with was functional as per their requirements but certainly that was not what they are looking for please let us knowDid you use unit tests in your code?Mehr Antworten anzeigenHow much salary did you asked?

### Ein Bewerber für eine Stelle als Java Developer bei Wirecard wurde gefragt...

8. Sept. 2017
 Fibonacci series with recursion.4 AntwortenDid you get offer ? How was second round ?They did not come back with anything yet, not even an email. But I guess there is no offer.Ok ,could you tell me more about your second round ,I mean what kind of technical questions they asked ?Mehr Antworten anzeigenCould you provide info on above query if possible ?

1. März 2020

### Ein Bewerber für eine Stelle als Senior Java Developer bei FREE NOW wurde gefragt...

17. Okt. 2017
 technologies, not algorithms nor data structures4 AntwortenHow long it took to receive their process termination email. Was it right away or they took some time to respond?2-3 daysWhat kind of questions they ask on the technical review of your solution? Best RegardsMehr Antworten anzeigenWhat kind of questions they ask on the technical review of your solution?

### Ein Bewerber für eine Stelle als Senior Backend Developer bei HelloFresh wurde gefragt...

26. Feb. 2018
 Make recipe APIs for HelloFresh4 AntwortenYou can get the full application in Dhiraj Patra github repo.Not gonna lie, your code is pretty bad, no separations of concerns, no contextual logging. The position was for a senior engineer, your stuff is junior level at best. Don't lash people out for your inadequacy of the role.Sorry but I have to be honest, your code is pretty bad. To me the true is, you are not good enough and that's it. You also were very anti ethical exposing the whole code challenging to your GithubMehr Antworten anzeigenSorry but your code is not for HelloFresh. It's for GoneRotten.

### Ein Bewerber für eine Stelle als Front-End Developer bei Zalando wurde gefragt...

2. Okt. 2015
 Convert all the words with 3 alphabets to upper case in a sentence.(JS)3 Antwortenfunction convert(string){ return string.split(' ').map(function(value){ if(value.length == 3) return value.toUpperCase(); return value; }).join(' '); }better way is: function convertStr(str, limit){ if(limit === 0){return new Error("required limit is minimum 1")}; var temp = str.split(''); for(var i=0; isentences = "ben seni severim cocuk" sentences.split(" ").map(word => convert(word)) function convert(word){ if(word.length === 3) { word = word.toUpperCase(); return word } return word }
110 von 2,373 Fragen im Vorstellungsgespräch

Mehr