hejuzs
hejuzs
全部文章
分类
归档
标签
去牛客网
登录
/
注册
hejuzs的博客
全部文章
(共2篇)
题解 | 判断是否为回文字符串
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param str string字符串 待判断的字符串 # @return bool布尔型 # class Solution: def judge(self , str: str) -> ...
2025-04-24
0
16
题解 | 图的遍历
BFS搜索解法: import sys from typing import List, Dict from collections import deque # 添加导入 sys.setrecursionlimit(1 << 25) class State: def __...
2025-04-14
1
23