摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
找一下规律就发现,4的倍数都必败,其它都必胜。 阅读全文
摘要:
Invert a binary tree. to Trivia:This problem was inspired by this original tweet by Max Howell: 题解:很简单的递归。 阅读全文