Академический Документы
Профессиональный Документы
Культура Документы
Verbal test:
a) What's the difference between StringBuffer and StringBuilder
b) What's the diff between a linkedList and arrayList? When would you use each?
2. Language Quiz -Strings
a="hello"; b="hello"; c=new String("hello"); d=c; e=new String("hello");
Tell me the result
a) a==b
b)a.equals(b)
c)a==c
d)c==d
e)c.equals d
f) c==e
g)c.equals e
3. Code time!!!
program a method that returns an inOrder Arraylist of the nodes in a tree
public ArrayList<Integer> inOrder(Node root)
From various interviewers on-site, I was asked:
e
-
h function type question. (ex: given a number 1234, how do you reverse the numbe
r in 4321 format without using string.reverse). Next round is programming design
.( ex: UML). Last round is with the manger. The discussion includes everything a
bove plus oracle DB problems ( ex: indexes, how to do update to the live db tabl
es etc.) The whole interviewing process is long but not terribly hard.
Prepare puzzles well.
1) Odd Ball problem
2) Hourglass problem
Reverse a linked list if you can call it difficult
Algos, data structures, db-sql related
Implement function that revert link list recursive Answer Question
Implement function that inverts all the words whithin a string, each word separa
te with space, notice do not revert the statment just the words. Answer Questio
n
Implement function that Revert the bits within unsigned int, using bit opperatio
n View Answer
You are given a glass bottle which will be broken if thrown from a particular fl
at of 100 story building. What's the efficient way to find that flat. View Ans
wers (3)
Why the manhole is round in shape V
I was asked about time complexity, BST deletion and DFS. Pretty straightforward
stuff.
Questions
How to build a tree using linked list? Answer Question
Design a FSA - Finite State Automaton to perform search Answer Question
Find longest palindrome in a string. Answer Question
What is C++ inheritance, polymophism, overloading/overriding, constructor/destru
ctors, connections to database? A