Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For ...
分类:
其他好文 时间:
2020-01-05 10:02:41
阅读次数:
87
Given a binary tree, find the leftmost value in the last row of the tree. Example 1: Input: 2 / \ 1 3 Output: 1 Example 2: Input: 1 / \ 2 3 / / \ 4 5 ...
分类:
其他好文 时间:
2020-01-05 09:54:14
阅读次数:
60
Given two non-empty binary trees s and t, check whether tree t has exactly the same structure and node values with a subtree of s. A subtree of s is a ...
分类:
其他好文 时间:
2020-01-04 14:40:32
阅读次数:
74
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 ...
分类:
其他好文 时间:
2020-01-04 14:37:44
阅读次数:
69
Find the sum of all left leaves in a given binary tree. Example: 3 / \ 9 20 / \ 15 7 There are two left leaves in the binary tree, with values 9 and 1 ...
分类:
其他好文 时间:
2020-01-04 14:37:15
阅读次数:
81
Write a function that takes a string as input and reverse only the vowels of a string. Example 1: Input: "hello" Output: "holle" Example 2: Input: "le ...
分类:
其他好文 时间:
2020-01-03 12:30:56
阅读次数:
74
Given a word, you need to judge whether the usage of capitals in it is right or not. We define the usage of capitals in a word to be right when one of ...
///2020年了,祝能观看到此文章的兄dei们新的一年,心想事成,追逐自己的目标 ///话不多说,开始 环境 centos7 配置 双网卡 一个10网段,nat通信用 一个192网段 和宿主机通信使用 2c 这个测试部署的话,不是强要求,我部署后CPU也就占20% 5.4G内存 我的宿主机也就8G ...
分类:
其他好文 时间:
2020-01-02 15:57:19
阅读次数:
251
You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take tu ...
分类:
其他好文 时间:
2020-01-01 13:29:36
阅读次数:
62
Given a linked list, rotate the list to the right by k places, where k is non-negative. Example 1: Input: 1->2->3->4->5->NULL, k = 2 Output: 4->5->1-> ...
分类:
其他好文 时间:
2020-01-01 11:55:07
阅读次数:
52