coderwars
文章平均质量分 57
naruto227
你的假装努力,欺骗的只有你自己
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SortAndStar
codewars SortAndStar public static String twoSort(String[] s) { java.util.Arrays.sort(s); return String.join("***", s[0].split("")); // return String.join("***", Arrays.stream(s).sorted().findFirst().orElse("").split("")); /原创 2021-03-25 09:37:42 · 122 阅读 · 0 评论 -
Is my friend cheating?
coderwars Is my friend cheating? A friend of mine takes the sequence of all numbers from 1 to n (where n > 0). Within that sequence, he chooses two numbers, a and b He says that the product of a and b should be equal to the sum of all numbers in the s原创 2021-03-24 19:01:31 · 284 阅读 · 0 评论 -
Josephus Permutation(约瑟夫环)
codewars约瑟夫环问题 This problem takes its name by arguably the most important event in the life of the ancient historian Josephus: according to his tale, he and his 40 soldiers were trapped in a cave by the Romans during a siege. Refusing to surrender to the原创 2021-03-24 15:01:56 · 298 阅读 · 0 评论
分享