iT邦幫忙

python3相關文章
共有 818 則文章

技術 leetcode with python:104. Maximum Depth of Binary Tree

題目: Given the root of a binary tree, return its maximum depth. A binary tree'...

技術 leetcode with python:101. Symmetric Tree

題目: Given the root of a binary tree, check whether it is a mirror of itself (i....

技術 leetcode with python:100. Same Tree

題目: Given the roots of two binary trees p and q, write a function to check if t...

技術 leetcode with python:94. Binary Tree Inorder Traversal

題目: Given the root of a binary tree, return the inorder traversal of its nodes'...

技術 leetcode with python:88. Merge Sorted Array

題目: You are given two integer arrays nums1 and nums2, sorted in non-decreasing...

技術 leetcode with python:83. Remove Duplicates from Sorted List

題目: Given the head of a sorted linked list, delete all duplicates such that eac...

技術 leetcode with python:70. Climbing Stairs

題目: You are climbing a staircase. It takes n steps to reach the top. Each tim...

技術 leetcode with python:69. Sqrt(x)

題目: Given a non-negative integer x, compute and return the square root of x....

技術 leetcode with python:67. Add Binary

題目: Given two binary strings a and b, return their sum as a binary string. 給定兩...

技術 leetcode with python:66. Plus One

題目: You are given a large integer represented as an integer array digits, where...

技術 leetcode with python:58. Length of Last Word

題目: Given a string s consisting of words and spaces, return the length of the l...

技術 leetcode with python:53. Maximum Subarray

題目: Given an integer array nums, find the contiguous subarray (containing at le...

技術 leetcode with python:3. Longest Substring Without Repeating Characters

題目: Given a string s, find the length of the longest substring without repeatin...

技術 leetcode with python:35. Search Insert Position

題目: Given a sorted array of distinct integers and a target value, return the in...

技術 leetcode with python:28. Implement strStr()

題目: Given two strings needle and haystack, return the index of the first occurr...

技術 leetcode with python:27. Remove Element

題目: Given an integer array nums and an integer val, remove all occurrences of v...

技術 leetcode with python:2. Add Two Numbers

由於前面幾題easy覺得難度還可以負荷,因此開始嘗試medium的題目 題目: You are given two non-empty linked list...

技術 leetcode with python:26. Remove Duplicates from Sorted Array

題目: Given an integer array nums sorted in non-decreasing order, remove the dupl...

技術 leetcode with python:21. Merge Two Sorted Lists

題目: You are given the heads of two sorted linked lists list1 and list2. Merge...

技術 leetcode with python:20. Valid Parentheses

題目: Given a string s containing just the characters '(', ')', '{', '}', '[' and...

技術 leetcode with python:14. Longest Common Prefix

題目: Write a function to find the longest common prefix string amongst an array...

技術 leetcode with python:13. Roman to Integer

題目: Roman numerals are represented by seven different symbols: I, V, X, L, C, D...

技術 leetcode with python:9. Palindrome Number

題目: Given an integer x, return true if x is palindrome integer.An integer is a...

技術 leetcode with python:1. Two Sum

從今天起在此紀錄用python寫leetcode的心路歷程希望能以一天兩三題的速率下去更新讓自己的程式更加精進 題目: Given an array of i...

技術 python入門學習day 4

主題: 變量類型 & 進位制 在Python語言中,我們可以使用變量來保存數據,變量有不同的類型,變量可以做運算,變量還可進行類型轉換 #使用type檢...

技術 小白簽到: 紀錄python學習day 1

#背景: 有理工宅的身形但目前尚無無程式內涵的python初心者,本科系跟理工完全無關的非理工科系畢業半路出家者,期待跟大家一起成長~#學習時間: 2022/0...

技術 終端執行py.ipynb檔

這裡用來紀錄最近的發現 在終端(window+R -> cmd)執行jupyter notebook的ipynb轉py檔時出現了錯誤 "exec...

技術 MacOS讀取藍牙搖桿訊號,利用python修改pynput程式碼實現 - 3.修改pynput

請參考之前的文章:第二篇 5. 修改pynput if event_type == Quartz.NSSystemDefined: sys_event...

技術 MacOS讀取藍牙搖桿訊號,利用python修改pynput程式碼實現 - 2.研究 pynput

請參考之前的文章:第一篇 4. 研究 pynput 首先,在Visual Studio Code界面中,將滑鼠移動到from pynput.keyboard i...

技術 MacOS讀取藍牙搖桿訊號,利用python修改pynput程式碼實現 - 1.起始

1. 前言: 之前想要實現在幾公尺外遙控 mac book,於是就在蝦皮上找到了這個藍牙搖桿,雖然懷疑產品能不能正常使用,不過看在價格99元的份上,還是買來嘗試...