Kaka777
Kaka777
全部文章
分类
个人题解笔记(1)
题解(12)
归档
标签
去牛客网
登录
/
注册
Kaka777的博客
全部文章
(共4篇)
题解 | #字符串变形#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param s string字符串 # @param n int整型 # @return string字符串 # class Solution: def trans(self , s: st...
Python3
字符串
2022-02-25
0
370
题解 | #最长的括号子串#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param s string字符串 # @return int整型 # class Solution: def longestValidParentheses(self , s: str) -...
Python3
字符串
动态规划
2022-02-25
1
288
题解 | #编辑距离(二)#
写个 二维数组方式实现的编辑距离。 对于一维数组的改进方式 来简化空间复杂度, 我不是很能理解。 所以我对这道题目的把握更多是理解掌握二维数组的动态规划过程。 需要的话 会回来更新 对一维数组的使用 class Solution: def minEditCost(self , str1: s...
Python3
动态规划
字符串
数组
2022-02-19
0
279
题解 | #大数加法#
class Solution: def solve(self , s , t ): # write code here # mimic the plus calculation. not allowed using inte converter ...
Python3
2022-02-06
0
287