Senior Software Development Engineer Interview Questions | Glassdoor

Senior Software Development Engineer Interview Questions

235

Senior software development engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Write a function/method with this signature: bool MyFunc(string term, string input) {} The method should return true if the search term is found in the input string, even when there are other characters in between. Examples: "aba", "bbbbabbxxxxxxbb" returns false "aba", "bbbbabbxxxxxxab" returns true Basically, do I see an 'a', then 'b', then another 'a' before I run off the end of the input string?

3 Answers

static boolean MyFunc(String term, String input) { int j=0; for(int i=0;i

static boolean MyFunc(String term, String input) { int j=0; for(int i=0;i

complexity: computational=O(n) (actually, Theta(n)); disk=O(1). public class MyClass { public static void main(String args[]) { System.out.println("Found = " + myFunc("aba","bbbbbbabbbbbxxxxxab")); System.out.println("Found = " + myFunc("aba","bbbbbbababbbbxxxxxab")); System.out.println("Found = " + myFunc("aba","bbbbbbbbbbabbbbbbbbbbbbbbbaba")); // add @Tests } public static boolean myFunc(String term, String input) { boolean found=false; int j=0,i=0; // Edge cases if(term.length()>input.length()) return false; if(term.length()==0) return true; // O(n): scanning the input while(i

One of the question was on Designing & Code a TTL Cache with some modifications

8 Answers

Pretend that an end user is providing you with input. In this case, it's a math equation, such as (3+2)*4-1. Parse the input and display the answer.

2 Answers

1. Find duplicate files in a folder 2. Display time on the screen as a digital clock

2 Answers

finad all plaindromes ina string.

2 Answers

Write a program to remove vowels from a given string

2 Answers

How will you implement word ladder puzzle

2 Answers

Given a trie and a prefix, find the word (in the trie) that starts with some subsequence of the prefix and also has the longest such subsequence.

2 Answers

1. Giving an array of integers from 1 to n-1 in random order where n is the size of the array. Find duplicates in the array and identify its runtime.

2 Answers

Can you just program or is design and architecture good? They said did agile.

2 Answers