Google 面题# JobHunting - 待字闺中
m*m
1 楼
Interview Questions:
1.Given a node in a binary tree find the next greatest value in the entire
node.
2.Given a string with only ')' and '(' find if the string is complete or
not. If the string is complete means that each open paranthesis should have
a corresponding closed one.
Eg: String s= "((()))()"- Complete String
String s1=")()()()())))(()()()((" - Incomplete String
1.Given a node in a binary tree find the next greatest value in the entire
node.
2.Given a string with only ')' and '(' find if the string is complete or
not. If the string is complete means that each open paranthesis should have
a corresponding closed one.
Eg: String s= "((()))()"- Complete String
String s1=")()()()())))(()()()((" - Incomplete String