- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode437.Path Sum III
You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. The path does not need to start or end at the root or a leaf, but it must go downwards (traveling only from parent nodes to child
2020-07-19 19:09:01
239
原创 LeetCode112.Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. Note: A leaf is a node with no children. Example: Given the below binary tree and sum = 22, 5 /
2020-07-19 19:07:58
262
原创 LeetCode113.Path Sum II Python实现(详细解析以及错误展示分析)
Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum. Note: A leaf is a node with no children. Example: Given the below binary tree and sum = 22, 5 / \ 4 8 / / \ 11 13 4 / \ /
2020-07-19 19:06:30
287
原创 LeetCode160. Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to intersect at node c1. Example 1: Input: intersectVal = 8, listA = [4,1,8,4,5], listB = [5,6,1,8,4,5], skip
2020-07-16 17:07:41
290
原创 LeetCode104.Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. Note: A leaf is a node with no children. Example: Given binary tree [3,9,20,null,null,15,7],
2020-07-16 16:59:19
253
原创 LeetCode234. Palindrome Linked List
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 Example 3: Input: 1->2->3->2->1 Output: true Follow up: Could you do it in O(n) time and
2020-07-16 16:58:22
251
1
原创 Python中的pip更新升级
常见的pip更新升级方法为 python -m pip install --upgrade pip python -m pip install -U --force-reinstall pip pip install --user --upgrade pip 但是以上三种方法有可能在网络不良情况下仍不行,或者有些时候出现的是‘d:\python3.6\python.exe -m pip install --user --upgrade pip’这种类似的提示,这时候仍有另外两种方法: 直接使用引号里面
2020-06-19 05:57:57
683
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人