- 博客(8)
- 收藏
- 关注
原创 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 3898 1
原创 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 418
原创 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 321
原创 cxf调用webservice
工作用到的接口用webservice调用,简单看了一下顺便记录一下cxf不多说大概就是apache的一个工具包,因为没使用更多的功能,这里仅仅用来调用获取XML需要的依赖包,用的maven自带的<dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-bundle&l...
2018-03-23 17:19:38 205
原创 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 443
原创 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 636
原创 关于某刑侦考试题目
前两天也是在网上看到了一份自称刑侦测试推理题,嗯想了一下真是太麻烦了,决定敲代码暴力破解了,下午有点事情没继续解决,先把今天的进度贴上来吧,不知道有木有大佬给我理一下。附上原题:嗯应该能看清吧,这个据说找准切入点还是很好处理的,奈何本人确实没那么机智,只能用笨方法解决了,贴上代码package logic;import java.util.Arrays;import java.util.Co...
2018-03-05 18:20:55 1802
原创 入坑codewars
毕业一年多了,总感觉自己啥也不会。零零散散看了各种书,总感觉差点什么,代码毕竟还是敲出来的。OJ虽然也好,但是我这种画面党毕竟比较难接受,而且自查能力比较一般,各种不通过调试起来比较麻烦。也用过一阵子牛客,在线编程体验也不错,但是题目种类比较少。在知乎看到codewars,试用了一下,题目比较齐全,比起专业的做题网站,这个更类似于代码社区,大家可以分享彼此的谜题,工作中遇到的问题,虽然目前...
2018-03-02 11:21:22 14523 4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人