iT邦幫忙

刷題相關文章
共有 162 則文章

技術 leetcode with python:292. Nim Game

題目: You are playing the following Nim Game with your friend: Initially, there...

技術 leetcode with python:6. Zigzag Conversion

題目: The string "PAYPALISHIRING" is written in a zigzag pattern on a g...

技術 leetcode with python:242. Valid Anagram

題目: Given two strings s and t, return true if t is an anagram of s, and false o...

技術 leetcode with python:374. Guess Number Higher or Lower

題目: We are playing the Guess Game. The game is as follows: I pick a number fr...

技術 leetcode with python:278. First Bad Version

題目: You are a product manager and currently leading a team to develop a new pro...

技術 leetcode with python:350. Intersection of Two Arrays II

題目: Given two integer arrays nums1 and nums2, return an array of their intersec...

技術 leetcode with python:459. Repeated Substring Pattern

題目: Given a string s, check if it can be constructed by taking a substring of i...

技術 leetcode with python:205. Isomorphic Strings

題目: Given two strings s and t, determine if they are isomorphic. Two strings...

技術 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:463. Island Perimeter

題目: You are given row x col grid representing a map where grid[i][j] = 1 repres...

技術 leetcode with python:108. Convert Sorted Array to Binary Search Tree

題目: Given an integer array nums where the elements are sorted in ascending orde...

技術 leetcode with python:345. Reverse Vowels of a String

題目: Given a string s, reverse only all the vowels in the string and return it....

鐵人賽 自我挑戰組 DAY 1

技術 Day00|從零開始的刷題生活

大家好我阿褚啦,這次是第二次參加鐵人賽,去年的我一直抱著"我明年肯定可以學到點什麼"的決心,不過過了一年還是沒有長進 (›´ω`‹ ) 好啦回歸正題。 雖然稱不...

技術 leetcode with python:392. Is Subsequence

題目: Given two strings s and t, return true if s is a subsequence of t, or false...

技術 leetcode with python:160. Intersection of Two Linked Lists

題目: Given the heads of two singly linked-lists headA and headB, return the node...

技術 leetcode with python:8. String to Integer (atoi)

題目: Implement the myAtoi(string s) function, which converts a string to a 32-bi...

技術 leetcode with python:15. 3Sum

題目: Given an integer array nums, return all the triplets [nums[i], nums[j], num...

技術 leetcode with python:125. Valid Palindrome

題目: A phrase is a palindrome if, after converting all uppercase letters into lo...

技術 leetcode with python:191. Number of 1 Bits

題目: Write a function that takes an unsigned integer and returns the number of '...

技術 leetcode with python:482. License Key Formatting

題目: You are given a license key represented as a string s that consists of only...

技術 leetcode with python:119. Pascal's Triangle II

題目: Given an integer rowIndex, return the rowIndexth (0-indexed) row of the Pas...

技術 leetcode with python:235. Lowest Common Ancestor of a Binary Search Tree

題目: Given a binary search tree (BST), find the lowest common ancestor (LCA) of...

技術 leetcode with python:225. Implement Stack using Queues

題目: Implement a last-in-first-out (LIFO) stack using only two queues. The imple...

技術 leetcode with python:485. Max Consecutive Ones

題目: Given a binary array nums, return the maximum number of consecutive 1's in...

技術 leetcode with python:36. Valid Sudoku

題目: Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to b...

技術 leetcode with python:22. Generate Parentheses

題目: Given n pairs of parentheses, write a function to generate all combinations...

技術 leetcode with Bash:193. Valid Phone Numbers

又一種綁特定語言的題目,幸好我之前筆電裝linux系統時有自己學過一下 題目: Given a text file file.txt that contain...

技術 leetcode with python:20. Valid Parentheses

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

技術 leetcode with python:476. Number Complement

題目: The complement of an integer is the integer you get when you flip all the 0...

技術 leetcode with python:29. Divide Two Integers

題目: Given two integers dividend and divisor, divide two integers without using...