LeetCode 1372. Longest ZigZag Path in a Binary Tree二叉树中的最长交错路径【Medium】【Python】【DFS】 Problem "LeetCode" Given a binary tree , a ZigZag path for a binar ...
分类:
编程语言 时间:
2020-03-08 15:55:09
阅读次数:
79
LeetCode 1374. Generate a String With Characters That Have Odd Counts生成每种字符都是奇数个的字符串【Easy】【Python】【字符串】 Problem "LeetCode" Given an integer , return a ...
分类:
编程语言 时间:
2020-03-08 15:46:37
阅读次数:
82
Problem A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and returni ...
分类:
其他好文 时间:
2020-03-08 13:45:34
阅读次数:
47
原题链接在这里:https://leetcode.com/problems/shortest-path-in-a-grid-with-obstacles-elimination/ 题目: Given a m * n grid, where each cell is either 0 (empty) ...
分类:
其他好文 时间:
2020-03-08 09:49:10
阅读次数:
72
Given the string s, return the size of the longest substring containing each vowel an even number of times. That is, 'a', 'e', 'i', 'o', and 'u' must ...
分类:
其他好文 时间:
2020-03-08 09:32:42
阅读次数:
81
1 """ 2 Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must ...
分类:
其他好文 时间:
2020-03-07 09:40:06
阅读次数:
81
//杨辉三角(数组) /* * @Description: Given a non-negative integer numRows, generate the first numRows of Pascal's triangle. * Input: 5 * Output: * [ * [1], * ...
分类:
编程语言 时间:
2020-03-06 15:00:14
阅读次数:
78
1 """ 2 Given a non-empty array of digits representing a non-negative integer, plus one to the integer. 3 The digits are stored such that the most sig ...
分类:
其他好文 时间:
2020-03-06 13:09:03
阅读次数:
61
[剑指Offer]41 和为S的两个数字 VS 和为S的连续正数序列 Leetcode T1 Two Sum Given an array of integers, return indices of the two numbers such that they add up to a specif ...
分类:
其他好文 时间:
2020-03-06 12:41:24
阅读次数:
59
Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th ...
分类:
其他好文 时间:
2020-03-05 20:59:24
阅读次数:
115