public int foo(int x)
{
int i;
try
{
i=5;
return i;
}
finally
{
i=x;
}
}
What does foo() return?
Thursday, January 17, 2008
Sunday, December 02, 2007
Monday, July 30, 2007
Binary Tree Traversals
long time no post... Likely not an interview question, but it's a good exercise.
write a pre-order, in-order and post-order traversal of a binary tree.
write a pre-order, in-order and post-order traversal of a binary tree.
Friday, November 10, 2006
Tuesday, October 31, 2006
Thursday, May 04, 2006
Random What?
for those who know perl:
srand;explain what this does. explain why rand will give this task a uniform distribution.
rand($.) < line =" $_)">;
print $line;
Friday, March 17, 2006
Explain OO
Explain Object Oriented Programming to a non-technical person. Try and explain the basics as well as the more advanced topics. Include discussion on polymorphism, inheritence, design patterns, etc.
Most importantly explain the pros and cons of this programming model.
Most importantly explain the pros and cons of this programming model.
Subscribe to:
Posts (Atom)