31 Star 205 Fork 55

CodeGeeX/CodeGeeX

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_prompt.txt 403 Bytes
一键复制 编辑 原始数据 按行查看 历史
code translation
Java:
public class Solution {
public static boolean hasCloseElements(int[] nums, int threshold) {
for (int i = 0; i < nums.length - 1; i++) {
for (int j = i + 1; j < nums.length; j++) {
if (Math.abs(nums[i] - nums[j]) < threshold) {
return true;
}
}
}
return false;
}
}
Python:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/codegeex/CodeGeeX.git
git@gitee.com:codegeex/CodeGeeX.git
codegeex
CodeGeeX
CodeGeeX
main

搜索帮助