Fragen im Bewerbungsgespräch: Entwickler | Glassdoor.de

Fragen im Vorstellungsgespräch: Entwickler

1,424

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

Top Vorstellungsgespräch-Fragen

Sortieren: RelevanzBeliebtheit Datum

Write a method which return how many palindromes are in a word. Eg: barbarabar has 7 (b,a,r,barab,a,r)

6 Antworten

import 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?

How to convert an Optional string to integer without throwing exception

4 Antworten

Finden Sie anhand eines Strings das kleinste Fenster mit vorgegebenen Anzahl an Zeichen.

4 Antworten

You are given a linked list with each node containing one extra pointer. Extra pointer points to any random node in the list.. Create a copy of this list..

3 Antworten

Soft Skill question: How did you manage to solve a specific problem in the past? With what means? Questions that you have to answer on e.g video format before the interview: 1) Why have you applied for this position? 2) What will you bring to this particular role? 3) What do you expect from this position? Then a set of technical questions sent to you by email (answer before the interview) 1.Explain when and why you would use multi-threading programming? 2. When you would use templates over inheritance? (C++) Please explain. 3. In your opinion What is the most important change in C++ in the last 10 years, explain why. 4. A process is having performance issues but you do not know where exactly the problem is. Which tools would you use to diagnose the problems and how? Please start with basic system tools expected on any system first and with the possibility to add more advanced tools second. 5. Give a code example of a ranged for statement in C++. 6. What is the difference between Abstract and Interface classes (C++)? 7. How you would implement the error handing for a function controlling a piece of hardware? You can write the pseudo code if needed. (C++) 8. What is difference between C++ shared_ptr and unique_ptr. When would you use each of them. 9. What is C++ uniform initialization, please give a couple of code examples. 10. What is a python decorator and when you would use it. 11. Explain what is a python lambda function and give a code example. 12. What would be your criteria to decide when to implement a tool in C++ or Python

3 Antworten

Basic Algo questions. 1 DP question and then design questions.

3 Antworten

Was hast du letzte Woche gelernt ?

2 Antworten

Given an integer, re-arrange the integer such that first and last digit will be at first and second, second and second last digit will be at third and fourth position from left of the re-arranges integer and so on. Example: Input -> 12345678, Output -> 18273645 Input -> 1234567, Output -> 1726354

2 Antworten

Beweisen Sie, dass die Ableitung aus x^2 2x ist

1 Antwort

Alles wie erwartet.

2 Antworten
110 von 1,424 Fragen im Vorstellungsgespräch