首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
leetcode
我是王大你是谁
创建于2021-05-12
订阅专栏
python 解答 leetcode
等 30 人订阅
共750篇文章
创建于2021-05-12
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
leetcode 1491. Average Salary Excluding the Minimum and Maximum Salary(python)
Given an array of unique integers salary where salary[i] is the salary of the employee i. Return the average salary of employees excluding …
leetcode 657. Robot Return to Origin(python)
There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, …
leetcode 1374. Generate a String With Characters That Have Odd Counts(python)
Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times. The returned s…
leetcode 1221. Split a String in Balanced Strings(python)
Balanced strings are those who have equal quantity of 'L' and 'R' characters. Given a balanced string s split it in the maximum amount of b…
leetcode 1309. Decrypt String from Alphabet to Integer Mapping(python)
Given a string s formed by digits ('0' - '9') and '#' . We want to map s to English lowercase characters as follows: Characters ('a' to 'i'…
leetcode 804. Unique Morse Code Words(python)
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".…
leetcode 709. To Lower Case(python)
Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. 根据题意,遍历每个字符,如果 ascii 大于等于 65 小于…
leetcode 1614. Maximum Nesting Depth of the Parentheses(python)
It can be written as (A), where A is a VPS. depth(C) = 0, where C is a string with a single character not equal to "(" or ")". depth(A + B)…
leetcode 1662. Check If Two String Arrays are Equivalent(python)
Given two string arrays word1 and word2, return true if the two arrays represent the same string, and false otherwise. A string is represen…
leetcode 1678. Goal Parser Interpretation(python)
You own a Goal Parser that can interpret a string command. The command consists of an alphabet of "G", "()" and/or "(al)" in some order. Th…
leetcode 1640. Check Array Formation Through Concatenation (python)
You are given an array of distinct integers arr and an array of integer arrays pieces, where the integers in pieces are distinct. Your goal…
leetcode 1540. Can Convert String in K Moves (python)
Given a string s and an integer array indices of the same length. The string s will be shuffled such that the character at the ith position…
1540. Can Convert String in K Moves
Given two strings s and t, your goal is to convert s into t in k moves or less. Choose any index j (1-indexed) from s, such that 1 <= …
678. Valid Parenthesis String
Given a string containing only three types of characters: '(', ')' and '*', write a function to check whether this string is valid. We defi…
1413. Minimum Value to Get Positive Step by Step Sum
Given an array of integers nums, you start with an initial positive value startValue. In each iteration, you calculate the step by step sum…
1347. Minimum Number of Steps to Make Two Strings Anagram
Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minim…
leetcode 1221. Split a String in Balanced Strings ( Python )
Balanced strings are those who have equal quantity of 'L' and 'R' characters. Given a balanced string s split it in the maximum amount of b…
leetcode 453. Minimum Moves to Equal Array Elements ( Python )
Given a non-empty integer array of size n, find the minimum number of moves required to make all array elements equal, where a move is incr…
leetcode 171. Excel Sheet Column Number ( Python )
Given a column title as appear in an Excel sheet, return its corresponding column number. 根据题意,在将字母的二十六进制,转换为十进制,比较简单,时间复杂度为 O(N),空间复杂度为 O(…
leetcode 13. Roman to Integer( Python )
Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just…
下一页