摘要: Given a linked list, swap every two adjacent nodes and return its head. For example,Given 1->2->3->4, you should return the list as 2->1->4->3. Your a 阅读全文
posted @ 2016-04-30 14:14 周洋 阅读(256) 评论(0) 推荐(0) 编辑
摘要: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a 阅读全文
posted @ 2016-04-30 03:47 周洋 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 找一下规律就发现,4的倍数都必败,其它都必胜。 阅读全文
posted @ 2016-04-30 03:42 周洋 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 题解:很简单的递归。 阅读全文
posted @ 2016-04-30 02:42 周洋 阅读(338) 评论(0) 推荐(0) 编辑