摘要:
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n... 阅读全文
摘要:
Behavior Questions:whom is your favorite programer? why?why you use Python? why not others?could you describe your project now? why you don't use some... 阅读全文
摘要:
前一篇文章是我做的题 这是剩余的三道,都很基础。1. Write a method to generate the nth number of the Fibonacci sequence.Defined as f(0)=0f(1)=1f(n)=f(n-1)+ f(n-2) where n>1Seq... 阅读全文
摘要:
题目:2) Write code to find the 2nd smallest element in a binary search tree (BST) .Javaclass Node {public Node left;public Node right;public Node parent... 阅读全文