iT邦幫忙

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

技術 leetcode with python:18. 4Sum

題目: Given an array nums of n integers, return an array of all the unique quadru...

鐵人賽 自我挑戰組 DAY 3

技術 Day02|Codewars 刷題日 (1)

仔細看了看昨天信件剩餘的題目,hmm.. 我們還是換題好了 σ`∀´)σ 5kyu. Number of trailing zeros of N! Write...

鐵人賽 自我挑戰組 DAY 1

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

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

技術 leetcode with python:190. Reverse Bits

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

技術 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:121. Best Time to Buy and Sell Stock

題目: You are given an array prices where prices[i] is the price of a given stock...

技術 leetcode with python:2. Add Two Numbers

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

技術 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:268. Missing Number

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

技術 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:108. Convert Sorted Array to Binary Search Tree

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

技術 leetcode with python:110. Balanced Binary Tree

題目: Given a binary tree, determine if it is height-balanced. 給定一個binary tree,判...

技術 leetcode with python:202. Happy Number

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

技術 leetcode with python:67. Add Binary

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

技術 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:292. Nim Game

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

技術 leetcode with python:39. Combination Sum

題目: Given an array of distinct integers candidates and a target integer target,...

技術 leetcode with python:31. Next Permutation

題目: A permutation of an array of integers is an arrangement of its members into...

技術 leetcode with python:29. Divide Two Integers

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

技術 leetcode with MySQL:197. Rising Temperature

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

技術 leetcode with python:118. Pascal's Triangle

題目: Given an integer numRows, return the first numRows of Pascal's triangle....

技術 leetcode with python:226. Invert Binary Tree

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

技術 leetcode with MySQL:181. Employees Earning More Than Their Managers

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

技術 leetcode with MySQL:175. Combine Two Tables

刷leetcode遇到SQL的題目,那也只能換個語言了 題目: Table: Person +-------------+---------+| Colu...

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

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

技術 leetcode with python:205. Isomorphic Strings

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

技術 leetcode with python:20. Valid Parentheses

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

技術 leetcode with python:278. First Bad Version

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

技術 leetcode with MySQL:196. Delete Duplicate Emails

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

技術 leetcode with python:100. Same Tree

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