iT邦幫忙

leetcode相關文章
共有 1089 則文章

技術 leetcode with python:283. Move Zeroes

題目: Given an integer array nums, move all 0's to the end of it while maintainin...

技術 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:7. Reverse Integer

題目: Given a signed 32-bit integer x, return x with its digits reversed. If reve...

技術 leetcode with python:268. Missing Number

題目: Given an array nums containing n distinct numbers in the range [0, n], retu...

技術 leetcode with python:263. Ugly Number

題目: An ugly number is a positive integer whose prime factors are limited to 2,...

技術 leetcode with python:258. Add Digits

題目: Given an integer num, repeatedly add all its digits until the result has on...

技術 leetcode with python:257. Binary Tree Paths

題目: Given the root of a binary tree, return all root-to-leaf paths in any order...

技術 leetcode with python:6. Zigzag Conversion

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

技術 leetcode with python:5. Longest Palindromic Substring

題目: Given a string s, return the longest palindromic substring in s. 給定一個字串,找出...

技術 leetcode with python:237. Delete Node in a Linked List

題目: Write a function to delete a node in a singly-linked list. You will not be...

技術 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:234. Palindrome Linked List

題目: Given the head of a singly linked list, return true if it is a palindrome....

技術 leetcode with python:232. Implement Queue using Stacks

題目: Implement a first in first out (FIFO) queue using only two stacks. The impl...

技術 leetcode with python:231. Power of Two

題目: Given an integer n, return true if it is a power of two. Otherwise, return...

技術 leetcode with python:228. Summary Ranges

題目: You are given a sorted unique integer array nums. A range [a,b] is the se...

技術 leetcode with python:226. Invert Binary Tree

題目: Given the root of a binary tree, invert the tree, and return its root. 給定一...

技術 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:219. Contains Duplicate II

題目: Given an integer array nums and an integer k, return true if there are two...

技術 leetcode with python:217. Contains Duplicate

題目: Given an integer array nums, return true if any value appears at least twic...

技術 leetcode with python:206. Reverse Linked List

題目: Given the head of a singly linked list, reverse the list, and return the re...

技術 leetcode with python:205. Isomorphic Strings

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

技術 leetcode with python:203. Remove Linked List Elements

題目: Given the head of a linked list and an integer val, remove all the nodes of...

技術 leetcode with python:202. Happy Number

題目: Write an algorithm to determine if a number n is happy. A happy number is...

技術 leetcode with MySQL:197. Rising Temperature

題目: Table: Weather +---------------+---------+| Column Name | Type |+---...

技術 leetcode with MySQL:196. Delete Duplicate Emails

題目: Table: Person +-------------+---------+| Column Name | Type |+--------...

技術 leetcode with Bash:195. Tenth Line

題目: Given a text file file.txt, print just the 10th line of the file. 給定一個txt檔...

技術 leetcode with Bash:193. Valid Phone Numbers

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

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

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

技術 leetcode with python:190. Reverse Bits

題目: Reverse bits of a given 32 bits unsigned integer. 給定32位的unsigned integer,回...

技術 leetcode with MySQL:183. Customers Who Never Order

題目: Table: Customers +-------------+---------+| Column Name | Type |+-----...