Spurs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2017年9月7日

摘要: Given a string s consists of upper/lower case alphabets and empty space characters , return the length of last word in the string. If the last word do 阅读全文
posted @ 2017-09-07 21:47 英雄与侠义的化身 阅读(134) 评论(0) 推荐(0) 编辑

摘要: 知道啥是 gray code 就是收获了. 下面介绍了 gray code 发明的 motivation, 了解动机后就知道啥是 gray code 了. https://zh.wikipedia.org/wiki/格雷码 阅读全文
posted @ 2017-09-07 17:25 英雄与侠义的化身 阅读(187) 评论(0) 推荐(0) 编辑

摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文
posted @ 2017-09-07 16:17 英雄与侠义的化身 阅读(117) 评论(0) 推荐(0) 编辑