首页
AI Coding
数据标注
NEW
沸点
课程
直播
活动
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
登录
注册
用户50699092305
掘友等级
获得徽章 0
动态
文章
专栏
沸点
收藏集
关注
作品
赞
0
文章 0
沸点 0
赞
0
返回
|
搜索文章
最新
热门
小U的加法魔法
def solution(n: int, a: list) -> int: # 计算初始总和 original_sum = sum(a) max_sum = original_sum # 遍历每对相邻
完美整数
public class Main { public static int solution(int x, int y) { // Edit your code here int temp = 0;
子数组和的最大问题
def solution(n, k, nums): if n == k : return sum(nums) nums = [0]+nums print(nums) pre_sum = [0]*(n+
小U的最大连续次数问题
public class Main { public static int[][] dir ={{0,1},{1,0},{-1,0},{0,-1}}; public static int dfs(in
环形数组的最大贡献值
def solution(n, a): prefix = [0] * n suffix = [0] * n for i in range(n): prefix[i] = sum(a[:i+1]) fo
卡牌翻面求和问题
def solution(n: int, a: list, b: list) -> int: MOD = 10**9 + 7 # 初始化动态规划数组 dp = [0, 0, 0] dp[0] = 1
小M的数组变化
from math import gcd from functools import reduce def solution(n: int, a: list) -> str: def prime_fa
小C的逆序对挑战
def solution(n: int, x: int, y: int, a: list) -> int: # 检查是否已经有逆序对 has_inversion = False for i in ra
奇妙货币交易问题
#include #include #include #include using namespace std; std::string solution(int V, int W) { if(V==
二进制反码转换问题
#include #include #include int solution(int N) { std::string binary_representation = std::bitset<32>
下一页
个人成就
文章被阅读
1,219
掘力值
212
关注了
0
关注者
0
收藏集
0
关注标签
0
加入于
2024-10-22