Lead Software Engineer Interview Questions | Glassdoor.co.in

Find jobs for Lead Software Engineer

Lead Software Engineer Interview Questions

265

Lead software engineer interview questions shared by candidates

Top Interview Questions

Sort: RelevancePopular Date

Input is a string like "AAAAABBCCAA" and it should print "5A2B2C2A". 5 being the continuous number of occurance for character 'A'. Same is with other characters also.

3 Answers

let string:String = "AAAAABBBVVVCVCAA" let characters = Array(string) var counter:Int = 1 var newArray:[String] = [String]() let lastCount = characters.count - 1 for count in 0...(characters.count - 2) { if characters[count] == characters[count + 1] { counter = counter + 1; }else { newArray.append("\(counter)\(characters[count])") counter = 1 } if lastCount == count + 1 { newArray.append("\(counter)\(characters[count])") } } print(newArray)

public static void main(String[] args) { String s = "AAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBCC"; Set set = new HashSet(); char b = 0; int count = 1; String newString = ""; for (int i = 0; i 0) { b = s.charAt(i - 1); } char c = s.charAt(i); if (!set.add(c)) { count++; } else { if (b != 0) { newString = newString + b + count; count = 1; } } } newString = newString + b + count; System.out.println(newString); }

public static void main(String[] args) { String s = "AAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBCC"; Set set = new HashSet(); char b = 0; int count = 1; String newString = ""; for (int i = 0; i 0) { b = s.charAt(i - 1); } char c = s.charAt(i); if (!set.add(c)) { count++; } else { if (b != 0) { newString = newString + b + count; count = 1; } } } newString = newString + b + count; System.out.println(newString); }

Some basic array stuff and one other question on design

1 Answer

Given a chain of medical shops and a head office. Design a system for headoffice to find- 1- Sales Speed of each shop 2- Type to stock gets sold at various locations .. etc In 1 hour they expect you to design APIs, Write Stored Procs, Connect DB and fetch and insert data and handle all corner case scenarios and also write Unit test cases

1 Answer

coding test and stupid questions

1 Answer

Automation framework design for Web services

1 Answer

Question related to testing & programming

1 Answer

Interviewer asks very contextual questions of different scenarios where you can just give multiple options of workaround.

1 Answer

Some specific question on services they use for their system like AWS cloud, S3, EC2, GCP. You may or may not have used all of those by now.

1 Answer

Questions on your projects you have done. What challenges faced in those project.

1 Answer

Design Patterns to be implemented in a C#.Net Application

1 Answer
110 of 265 Interview Questions