codewars
文章平均质量分 67
JieHaoT
一个不想做好饭的厨子不是一个好码农
展开
-
入坑codewars
毕业一年多了,总感觉自己啥也不会。零零散散看了各种书,总感觉差点什么,代码毕竟还是敲出来的。OJ虽然也好,但是我这种画面党毕竟比较难接受,而且自查能力比较一般,各种不通过调试起来比较麻烦。也用过一阵子牛客,在线编程体验也不错,但是题目种类比较少。在知乎看到codewars,试用了一下,题目比较齐全,比起专业的做题网站,这个更类似于代码社区,大家可以分享彼此的谜题,工作中遇到的问题,虽然目前...原创 2018-03-02 11:21:22 · 14549 阅读 · 4 评论 -
Josephus Survivor
In this kata you have to correctly return who is the "survivor", ie: the last element of a Josephus permutation.Basically you have to assume that n people are put into a circle and that they are elimi...原创 2018-03-23 17:14:12 · 453 阅读 · 0 评论 -
k-Primes
A natural number is called k-prime if it has exactly k prime factors, counted with multiplicity.A natural number is thus prime if and only if it is 1-prime.Examples: k = 2 -> 4, 6, 9, 10, 14, 15, 2...原创 2018-03-21 17:48:46 · 640 阅读 · 0 评论 -
Snail
Snail SortGiven an n x n array, return the array elements arranged from outermost elements to the middle element, traveling clockwise.array = [[1,2,3], [4,5,6], [7,8,9]] snail(array)...原创 2018-03-26 15:50:10 · 327 阅读 · 0 评论 -
Count IP Addresses
Write a function that accepts a starting and ending IPv4 address, and returns the number of IP addresses from start to end, excluding the end IP address. All input to the ipsBetween function will be v...原创 2018-03-29 15:56:10 · 424 阅读 · 0 评论 -
BasE91 encoding & decoding
好久没更新了啊,我才不会说是因为我忘了密码又懒得重置,然后又犯了拖延症,抽空找回继续刷 BasE91(http://base91.sourceforge.net/) is a method for encoding binary as ASCII characters. It is more efficient than Base64 and needs 91 characters to rep...原创 2018-07-24 16:01:59 · 3916 阅读 · 1 评论