題目: Given the root of a binary tree, return its maximum depth. A binary tree'...
題目: Given the root of a binary tree, check whether it is a mirror of itself (i....
題目: Given the roots of two binary trees p and q, write a function to check if t...
題目: Given the root of a binary tree, return the inorder traversal of its nodes'...
題目: You are given two integer arrays nums1 and nums2, sorted in non-decreasing...
題目: Given the head of a sorted linked list, delete all duplicates such that eac...
題目: You are climbing a staircase. It takes n steps to reach the top. Each tim...
題目: Given a non-negative integer x, compute and return the square root of x....
題目: Given two binary strings a and b, return their sum as a binary string. 給定兩...
題目: You are given a large integer represented as an integer array digits, where...
題目: Given a string s consisting of words and spaces, return the length of the l...
題目: Given an integer array nums, find the contiguous subarray (containing at le...
題目: Given a string s, find the length of the longest substring without repeatin...
題目: Given a sorted array of distinct integers and a target value, return the in...
題目: Given two strings needle and haystack, return the index of the first occurr...
題目: Given an integer array nums and an integer val, remove all occurrences of v...
由於前面幾題easy覺得難度還可以負荷,因此開始嘗試medium的題目 題目: You are given two non-empty linked list...
題目: Given an integer array nums sorted in non-decreasing order, remove the dupl...
題目: You are given the heads of two sorted linked lists list1 and list2. Merge...
題目: Given a string s containing just the characters '(', ')', '{', '}', '[' and...
題目: Write a function to find the longest common prefix string amongst an array...
題目: Roman numerals are represented by seven different symbols: I, V, X, L, C, D...
題目: Given an integer x, return true if x is palindrome integer.An integer is a...
從今天起在此紀錄用python寫leetcode的心路歷程希望能以一天兩三題的速率下去更新讓自己的程式更加精進 題目: Given an array of i...
主題: 變量類型 & 進位制 在Python語言中,我們可以使用變量來保存數據,變量有不同的類型,變量可以做運算,變量還可進行類型轉換 #使用type檢...
#背景: 有理工宅的身形但目前尚無無程式內涵的python初心者,本科系跟理工完全無關的非理工科系畢業半路出家者,期待跟大家一起成長~#學習時間: 2022/0...
這裡用來紀錄最近的發現 在終端(window+R -> cmd)執行jupyter notebook的ipynb轉py檔時出現了錯誤 "exec...
請參考之前的文章:第二篇 5. 修改pynput if event_type == Quartz.NSSystemDefined: sys_event...
請參考之前的文章:第一篇 4. 研究 pynput 首先,在Visual Studio Code界面中,將滑鼠移動到from pynput.keyboard i...
1. 前言: 之前想要實現在幾公尺外遙控 mac book,於是就在蝦皮上找到了這個藍牙搖桿,雖然懷疑產品能不能正常使用,不過看在價格99元的份上,還是買來嘗試...