2016年6月18日

349. Intersection of Two Arrays

摘要: 1. 问题描述 Given two arrays, write a function to compute their intersection. Example: Note: Each element in the result must be unique.The result can be i 阅读全文

posted @ 2016-06-18 19:27 whl-hl 阅读(158) 评论(0) 推荐(0) 编辑

104. Maximum Depth of Binary Tree

摘要: 1. 问题描述 Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the far 阅读全文

posted @ 2016-06-18 19:06 whl-hl 阅读(122) 评论(0) 推荐(0) 编辑

258. Add Digits

摘要: 1. 问题描述 Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example: Given num = 38, the process i 阅读全文

posted @ 2016-06-18 18:49 whl-hl 阅读(109) 评论(0) 推荐(0) 编辑

292. Nim Game

摘要: 1. 问题描述 You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 t 阅读全文

posted @ 2016-06-18 17:53 whl-hl 阅读(112) 评论(0) 推荐(0) 编辑

导航