刷题
manubu1012
窥镜而自视,又弗如远甚
展开
-
329. Longest Increasing Path in a Matrix
Given an integers , return the length of the longest increasing path in .From each cell, you can either move in four directions: left, right, up, or down. You may not move diagonally or move outside the boundary (i.e., wrap-around is not allowed). !https:原创 2023-07-22 12:06:23 · 32 阅读 · 0 评论 -
最小的交换次数
给定一个只含有‘G’,‘B’的字符串,只能交换左右相邻的字符,使得G和B分别在两侧所最小的交换次数为?原创 2023-07-22 10:11:45 · 32 阅读 · 0 评论 -
非循环实现near2power
不用循环实现找到≥x最小的2的次方数。原创 2023-07-22 09:53:33 · 32 阅读 · 0 评论 -
go细枝末节
主要记录下用go刷题时,遇到的问题,主要是语法方面。原创 2023-07-22 09:36:39 · 27 阅读 · 0 评论 -
绳子覆盖的最长距离
给定一个排好序的整数数组,每个元素代表在数轴上的坐标。给定一个长度为L(L>0)绳子,问绳子最大覆盖的点数。原创 2023-07-22 09:29:41 · 25 阅读 · 0 评论