比卡姆贝特
比卡姆贝特
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
比卡姆贝特的博客
全部文章
(共2篇)
题解 | #验证回文字符串(二)#
最朴素的想法,直接写就好,不用什么dp之类的 class Solution: def palindrome(self , str: str) -> bool: lens=len(str) i,j=0,lens-1 while i<...
Python3
2024-03-24
0
174
题解 | #两个队列实现栈#
没啥逻辑,补充下pytho3版本 from os import XATTR_SIZE_MAX # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param order string字符串一维数组 # @return string字符串一维数组 # i...
Python3
2024-03-23
0
201