Lead engineer Interview Questions | Glassdoor.co.in

Find jobs for lead engineer

Lead engineer Interview Questions

931

lead 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); }

Are you ready joing in chennai location

4 Answers

They asked about azure VMs , current project high level architectural diagram , disaster recovery, design patterns & SOLID principle, Oops etc

3 Answers

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

Core Java J2EE questions

2 Answers

- How do you test a data pipeline for performance and accuracy - Code a treemap and write testcases to test the same What I liked is even though I did not do the coding question well, interviewer helped me explain my strength and guided me for interviews with other companies.

2 Answers

Most difficult question is of Salary expectations.

1 Answer

Since the requirement was for C developer, questions were more in C. Covered almost all the basic topics of C in telephonic interview. Face to face interviews were with programming questions like efficient method to count number of bits set to 1 in a 32-bit register without using shift operators, efficient method to toggle a bit, like that.

2 Answers

Find the units of snow can be trapped in the given array of building of various heights. It is like 'Trapping Rain Water' problem in Leetcode

2 Answers

How to do face the customers

1 Answer

Tell about your self

1 Answer
110 of 931 Interview Questions