【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'
}
相关推荐
uhakadotcom36 分钟前
JAX 框架:高性能数值计算的新时代
算法·面试·github
uhakadotcom42 分钟前
构建实时API智能代理:快速构建多代理语音应用
算法·面试·github
uhakadotcom43 分钟前
快速理解 tiktoken:OpenAI 的高效文本编码工具
算法·面试·github
做人求其滴1 小时前
蓝桥杯C/C++省赛/国赛注意事项及运行环境配置
算法·蓝桥杯·编译器·c/c++·算法竞赛·运行环境·第十六届
写个博客1 小时前
代码随想录算法训练营第十五天
算法
铃煦1 小时前
《算法笔记》3.3小节——入门模拟->图形输出
笔记·算法·图论
LuckyLay2 小时前
LeetCode算法题(Go语言实现)_39
算法·leetcode·golang
uhakadotcom2 小时前
NVIDIA Resiliency Extension(NVRx)简介:提高AI模型训练的容错能力
算法·面试
Tisfy2 小时前
LeetCode 2843.统计对称整数的数目:字符串数字转换
算法·leetcode·字符串·题解
Yyq130208696822 小时前
KTH5772 系列游戏手柄摇杆专用3D 霍尔位置传感器
算法·游戏·3d·小杨13020869682