草帽小子
草帽小子
全部文章
分类
题解(6)
归档
标签
去牛客网
登录
/
注册
草帽小子的博客
全部文章
(共6篇)
题解 | #二维数组中的查找# 类似二分查找
public class Solution { public boolean Find(int target, int [][] array) { int row = array.length; int col = array[0].length; ...
java
2021-08-22
0
477
题解 | #在两个长度相等的排序数组中找到上中位数#
class Solution: def findMedianinTwoSortedAray(self , arr1 , arr2 ):  ...
python3
2021-08-16
1
482
题解 | #最长递增子序列# python3
import bisect class Solution: def LIS(self , arr ): # write code here arrLen = len(arr) if arrLen < 2: ret...
python3
2021-08-16
5
885
Leetcode 037 解数独 思路清晰 python
class Solution: def isValue(self, board, x, y): # 检查已经填入的坐标是否和列中有的元素相等 for i in range(9): if i != x and board[i][y] ...
2020-04-24
53
4392
全部保存起来,去重,OK
def solution(): # A = input() # B = input() A = '00010001' B = '??' lenA = len(A) lenB = len(B) res = [] for i in rang...
2020-04-22
1
647
python
def solution(): count = 2 for i in range(count): strs = list( input() ) if len(strs) == 0: print() continue ...
2020-04-22
0
462