Fork me on GitHub
摘要: Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell,where "adjacen 阅读全文
posted @ 2017-04-23 11:22 hellowOOOrld 阅读(227) 评论(0) 推荐(0)
摘要: Given a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the sum of all left subtr 阅读全文
posted @ 2017-04-23 11:16 hellowOOOrld 阅读(317) 评论(0) 推荐(0)
摘要: Given an array of 2n integers, your task is to group these integers into n pairs of integer,say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of m 阅读全文
posted @ 2017-04-23 11:14 hellowOOOrld 阅读(466) 评论(0) 推荐(0)