Google interview question

Check for balanced parentheses in an expression, Given an expression string exp, write a program to examine whether the pairs and the orders of “{“,”}”,”(“,”)”,”[“,”]” are correct in exp. For example, the program should print true for exp = “[()]{}{[()()]()}” and false for exp = “[(])”

Interview Answer

Anonymous

31 Oct 2016

Given a string s, find a letter in a string that most repeated in string. Given string is consisted both upper case and lower case letters. For example string s = "aAbbAcc", answer is 'a'