【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'
}
相关推荐
子豪-中国机器人3 分钟前
枚举算法和排序算法能力测试
开发语言·c++·算法
qiuyunoqy3 分钟前
基础算法之二分算法 --- 2
算法
爱干饭的boy31 分钟前
手写Spring底层机制的实现【初始化IOC容器+依赖注入+BeanPostProcesson机制+AOP】
java·数据结构·后端·算法·spring
二哈不在线41 分钟前
代码随想录二刷之“动态规划”~GO
算法·golang·动态规划
cellurw1 小时前
俄罗斯方块终端游戏实现 —— C语言系统编程与终端控制
c语言·算法
诸葛务农2 小时前
光电对抗:多模/复合制导中算法和软件平台
算法
Swift社区2 小时前
LeetCode 378 - 有序矩阵中第 K 小的元素
算法·leetcode·矩阵
墨染点香2 小时前
LeetCode 刷题【73. 矩阵置零】
算法·leetcode·矩阵
tqs_123453 小时前
redis zset score的计算
java·算法