1offer1
1offer1
全部文章
分类
归档
标签
去牛客网
登录
/
注册
1offer1的博客
全部文章
(共3篇)
题解 | 有重复项数字的全排列
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param num int整型一维数组 # @return int整型二维数组 # class Solution: def permuteUnique(self, num: List[int]...
2025-04-11
0
45
题解 | 没有重复项数字的全排列
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param num int整型一维数组 # @return int整型二维数组 # class Solution: def permute(self , num: List[int]) -&g...
2025-04-11
0
28
题解 | #字符串排序#
#include <algorithm> #include <cstring> #include <iostream> using namespace std; bool cmp(char a, char b) { if (a > b) { ...
2023-09-12
0
268