【Edabit 算法 ★☆☆☆☆☆】【修改BUG1】 Buggy Code (Part 1)

【Edabit 算法 ★☆☆☆☆☆】【修改BUG1】 Buggy Code (Part 1)

bugs language_fundamentals

Instructions

Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below to get an idea of what the function should do.

Examples
javascript 复制代码
cubes(3) // 27
cubes(5) // 125
cubes(10) // 1000
Notes
  • READ EVERY WORD CAREFULLY, CHARACTER BY CHARACTER!
  • Don't overthink this challenge; it's not supposed to be hard.
Solutions
javascript 复制代码
function cubes(a) {
	return a ** 3 // `retunr` 改为 'return'
}
相关推荐
飞Link2 小时前
什么是 AirSim?一文读懂无人机仿真平台
python·算法·无人机
一去不复返的通信er4 小时前
贪心算法-合并区间(LeetCode 56)
算法·leetcode·贪心算法
Shaoshing5 小时前
LeetCode100 49. 字母异位词分组
java·算法
YFJ_mily5 小时前
第二届区块链技术与基础模型国际学术会议(BTFM2027)
算法·区块链·能源·智能系统·rdlink研发家·机器人自动化
汤姆宝库6 小时前
收官深拆:第一性原理、产业电网与未来推演
大数据·人工智能·算法
moshuying8 小时前
块扩散 + GDN 改造:Clover 把「并行生成」塞进了 Agent 的长上下文里
前端·算法
没落之王8 小时前
历史系统建模:宋初太祖太宗「再立天庭」秩序重构推演
人工智能·算法·重构
INGNIGHT8 小时前
91 · 最小调整代价(序列dp)
数据结构·算法·leetcode
moshuying8 小时前
扩散模型开始写代码、开网页了:350 亿参数,速度比 Jev 快一倍
前端·算法