首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
leetcode
我是王大你是谁
创建于2021-05-12
订阅专栏
python 解答 leetcode
等 30 人订阅
共750篇文章
创建于2021-05-12
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
leetcode 463. Island Perimeter(python)
You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are co…
leetcode 1160. Find Words That Can Be Formed by Characters(python)
You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character c…
leetcode 463. Island Perimeter(python)
You are given row x col grid representing a map where grid[i][j] = 1 represents land and grid[i][j] = 0 represents water. Grid cells are co…
leetcode 1160. Find Words That Can Be Formed by Characters(python)
You are given an array of strings words and a string chars. A string is good if it can be formed by characters from chars (each character c…
leetcode 1207. Unique Number of Occurrences (python)
Given an array of integers arr, write a function that returns true if and only if the number of occurrences of each value in the array is u…
leetcode 961. N-Repeated Element in Size 2N Array(python)
In a array A of size 2N, there are N+1 unique elements, and exactly one of these elements is repeated N times. Return the element repeated …
leetcode 1512. Number of Good Pairs(python)
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. 根据题意,只需…
leetcode 1365. How Many Numbers Are Smaller Than the Current Number (python)
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to co…
leetcode 771. Jewels and Stones(python)
You're given strings jewels representing the types of stones that are jewels, and stones representing the stones you have. Each character i…
leetcode 1365. How Many Numbers Are Smaller Than the Current Number (python)
Given the array nums, for each nums[i] find out how many numbers in the array are smaller than it. That is, for each nums[i] you have to co…
leetcode 1512. Number of Good Pairs(python)
Given an array of integers nums. A pair (i,j) is called good if nums[i] == nums[j] and i < j. Return the number of good pairs. 根据题意,只需…
leetcode 1441. Build an Array With Stack Operations(python)
Given an array target and an integer n. In each iteration, you will read a number from list = {1,2,3..., n}. Push: Read a new element from …
leetcode 1047. Remove All Adjacent Duplicates In String (python)
Given a string S of lowercase letters, a duplicate removal consists of choosing two adjacent and equal letters, and removing them. We repea…
leetcode 1329. Sort the Matrix Diagonally(python)
Given a m * n matrix mat of integers, sort it diagonally in ascending order from the top-left to the bottom-right then return the sorted ar…
leetcode 1502. Can Make Arithmetic Progression From Sequence(python)
Given an array of numbers arr. A sequence of numbers is called an arithmetic progression if the difference between any two consecutive elem…
leetcode 976. Largest Perimeter Triangle (python)
Given an array A of positive lengths, return the largest perimeter of a triangle with non-zero area, formed from 3 of these lengths. If it …
leetcode 242. Valid Anagram(python)
Given two strings s and t , write a function to determine if t is an anagram of s. 根据题意,因为包含的都是小写字母,所以遍历 26 个英文字母,只要长度相同,且 s 和 t 中包含的每个字母数量…
leetcode 1636. Sort Array by Increasing Frequency (python)
Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple values have the same …
leetcode 1122. Relative Sort Array(python)
Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 suc…
leetcode 1356. Sort Integers by The Number of 1 Bits(python)
Given an integer array arr. You have to sort the integers in the array in ascending order by the number of 1's in their binary representati…
下一页