摘要: Problem statement: Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. 阅读全文
posted @ 2017-05-08 10:16 蓝色地中海 阅读(360) 评论(0) 推荐(0)
摘要: Problem statement: There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal 阅读全文
posted @ 2017-05-08 10:10 蓝色地中海 阅读(291) 评论(0) 推荐(0)
摘要: Problem statement: There is an m by n grid with a ball. Given the start coordinate (i,j) of the ball, you can move the ball to adjacent cell or cross 阅读全文
posted @ 2017-05-08 08:44 蓝色地中海 阅读(656) 评论(0) 推荐(0)