王小牛123
王小牛123
全部文章
分类
题解(4)
归档
标签
去牛客网
登录
/
注册
王小牛123的博客
全部文章
(共16篇)
题解 | #36进制加法#
下次python就不会找不到答案了 # 36直接进1 ,10是a,35是 z n1, n2 = len(A)-1, len(B)-1 carry = 0 res = '' while n1 >= 0 or n2...
Python3
2022-09-17
1
449
题解 | #多数组中位数#
def findKthNum(self , arr1: List[int], arr2: List[int], target: int) -> int: &n...
Python3
2022-09-11
0
384
题解 | #多数组第 K 小数#
# 两个数组用双指针,多个数组用堆 c1, c2 = 0, 0 &nb...
Python3
2022-09-11
0
334
题解 | #最接近的三数之和#
增加一个python # 和计算三数之和思路一样,双指针 nums.sort() n&...
Python3
2022-09-09
1
414
题解 | #排序奇升偶降链表#
# class ListNode: # def __init__(self, x): # sel...
Python3
2022-07-23
0
316
题解 | #将二叉搜索树改为累加树#
# class TreeNode: # def __init__(self, x): # sel...
Python3
2022-07-23
0
351
题解 | #长度最小的连续子数组#
学习中…… n = len(nums) total = 0 min_l = n + 1 left = 0 for i in range(n): total += nums[i] while...
Python3
2022-07-22
1
318
题解 | #最大值#
简单记录 class Solution: def maxValue(self , s , k ): # 尽量大数在前 if len(s) <=k: return int(s) max_ans = 0 ...
Python3
2022-07-21
0
302
题解 | #长度为 K 的重复字符子串#
class Solution: def numKLenSubstrRepeats(self , s , k ): &nbs...
Python3
2022-07-21
3
376
题解 | #棋子翻转#
class Solution: def flipChess(self , A: List[List[int]], f: List[List[int]]) ->&nbs...
Python3
2022-07-20
0
452
首页
上一页
1
2
下一页
末页