
golang
tommyhill
这个作者很懒,什么都没留下…
展开
-
golang xml解析
如下的xml报文,如果只想解析出报文的一部分内容 如<c><d>123456</d> </c> <a> <b> <c> <d>123456</d> </c> </b> </a> 代码: func main() {...原创 2019-05-06 10:03:11 · 1045 阅读 · 0 评论 -
leetcode数组排序
对数组A按照偶数和奇数重新排序,使得偶数在前,奇数在后。可以返回任何一种满足这个条件的数组即可。 Given an arrayAof non-negative integers, return an array consisting of all the even elements ofA, followed by all the odd elements ofA. You may r...原创 2019-05-10 08:49:22 · 303 阅读 · 0 评论 -
leetcode 832. Flipping an Image
Given a binary matrixA, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means that each row of the image is reversed. For examp...原创 2019-05-10 10:53:25 · 165 阅读 · 0 评论