摘要: Given an n-ary tree, return the level order traversal of its nodes' values. Nary-Tree input serialization is represented in their level order traversa 阅读全文
posted @ 2020-11-09 10:14 Sheanne 阅读(51) 评论(0) 推荐(0)
摘要: Given a string s, return the maximum number of ocurrences of any substring under the following rules: The number of unique characters in the substring 阅读全文
posted @ 2020-11-09 09:58 Sheanne 阅读(140) 评论(0) 推荐(0)
摘要: Given a singly linked list, determine if it is a palindrome. Example 1: Input: 1->2 Output: false Example 2: Input: 1->2->2->1 Output: true方法:先把linked 阅读全文
posted @ 2020-11-09 09:23 Sheanne 阅读(63) 评论(0) 推荐(0)
摘要: Given the root of a binary tree, return the sum of every tree node's tilt. The tilt of a tree node is the absolute difference between the sum of all l 阅读全文
posted @ 2020-11-09 01:46 Sheanne 阅读(128) 评论(0) 推荐(0)