【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'
}
相关推荐
2301_818419012 分钟前
C++中的协程编程
开发语言·c++·算法
add45a4 分钟前
C++中的工厂方法模式
开发语言·c++·算法
無限進步D12 分钟前
二分算法 cpp
算法
xushichao198913 分钟前
C++中的工厂模式高级应用
开发语言·c++·算法
2501_9249526920 分钟前
C++模块化编程指南
开发语言·c++·算法
qzhqbb21 分钟前
差分隐私与大模型+差分隐私在相关领域应用的论文总结
人工智能·算法
2401_8319207424 分钟前
基于C++的爬虫框架
开发语言·c++·算法
MSTcheng.31 分钟前
【优选算法必修篇——位运算】『面试题 01.01. 判定字符是否唯一&面试题 17.19. 消失的两个数字』
java·算法·面试
weixin_4219226931 分钟前
模板元编程性能分析
开发语言·c++·算法
2401_8512729933 分钟前
C++中的类型擦除技术
开发语言·c++·算法