原创 LeetCode | 0098. Validate Binary Search Tree驗證二叉搜索樹【Python】

LeetCode 0098. Validate Binary Search Tree驗證二叉搜索樹【Medium】【Python】【二叉樹】 Problem LeetCode Given a binary tree, dete

原创 LeetCode | 0450. Delete Node in a BST 刪除二叉搜索樹中的節點【Python】

LeetCode 0450. Delete Node in a BST 刪除二叉搜索樹中的節點【Medium】【Python】【二叉樹】 Problem LeetCode Given a root node reference

原创 LeetCode | 0700. Search in a Binary Search Tree二叉搜索樹中的搜索【Python】

LeetCode 0700. Search in a Binary Search Tree二叉搜索樹中的搜索【Easy】【Python】【二叉樹】 Problem LeetCode Given the root node of

原创 LeetCode | 0701. Insert into a Binary Search Tree 二叉搜索樹中的插入操作【Python】

LeetCode 0701. Insert into a Binary Search Tree 二叉搜索樹中的插入操作【Medium】【Python】【二叉樹】 Problem LeetCode Given the root

原创 LeetCode | 0100. Same Tree 相同的樹【Python】

LeetCode 0100. Same Tree 相同的樹【Easy】【Python】【二叉樹】 Problem LeetCode Given two binary trees, write a function to che

原创 LeetCode | 1408. String Matching in an Array數組中的字符串匹配【Python】

LeetCode 1408. String Matching in an Array數組中的字符串匹配【Easy】【Python】【字符串】 Problem LeetCode Given an array of string

原创 在 Anaconda Python3.7 環境下使用 Pycharm 安裝 Python3.6 版本的 PyTorch

在 Anaconda Python3.7 環境下使用 Pycharm 安裝 Python3.6 版本的 PyTorch 一、Anaconda 安裝 可以參考一下我寫的教程:Anaconda——最省心的 Python 版本 二、

原创 LeetCode | 0102. Binary Tree Level Order Traversal二叉樹的層次遍歷【Python】

LeetCode 0102. Binary Tree Level Order Traversal二叉樹的層次遍歷【Medium】【Python】【BFS】 Problem LeetCode Given a binary tre

原创 LeetCode | 0365. Water and Jug Problem水壺問題【Python】

LeetCode 0365. Water and Jug Problem水壺問題【Medium】【Python】【BFS】【數學】 Problem LeetCode You are given two jugs with ca

原创 LeetCode | 0876. Middle of the Linked List鏈表的中間結點【Python】

LeetCode 0876. Middle of the Linked List鏈表的中間結點【Easy】【Python】【雙指針】 Problem LeetCode Given a non-empty, singly lin

原创 LeetCode | 0226. Invert Binary Tree翻轉二叉樹【Python】

LeetCode 0226. Invert Binary Tree翻轉二叉樹【Easy】【Python】【二叉樹】【遞歸】 Problem LeetCode Invert a binary tree. Example: Inp

原创 LeetCode | 0113. Path Sum II路徑總和 II【Python】

LeetCode 0113. Path Sum II路徑總和 II【Medium】【Python】【回溯】 Problem LeetCode Given a binary tree and a sum, find all ro

原创 LeetCode | 面試題34. 二叉樹中和爲某一值的路徑【劍指Offer】【Python】

LeetCode 面試題34. 二叉樹中和爲某一值的路徑【劍指Offer】【Medium】【Python】【回溯】 問題 力扣 輸入一棵二叉樹和一個整數,打印出二叉樹中節點值的和爲輸入整數的所有路徑。從樹的根節點開始往下一直到

原创 LeetCode | 1386. Cinema Seat Allocation安排電影院座位【Python】

LeetCode 1386. Cinema Seat Allocation安排電影院座位【Medium】【Python】【哈希表】 Problem LeetCode A cinema has n rows of seats,

原创 LeetCode | 面試題27. 二叉樹的鏡像【劍指Offer】【Python】

LeetCode 面試題27. 二叉樹的鏡像【劍指Offer】【Easy】【Python】【二叉樹】【遞歸】 問題 力扣 請完成一個函數,輸入一個二叉樹,該函數輸出它的鏡像。 例如輸入: 4 / \ 2