![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
leetcode
扫地僧965
本人承诺,所有博文忠于原创,一旦引用必定标明出处,维护知识产权。希望通过博客这种形式,总结专业知识,提示代码能力,交流开发技术。
展开
-
[leetcode]696. Count Binary Substrings
最近手中项目全都结束,自己也处于空闲状态,于是就刷刷leetcode题库。一是让自己处在一种编程的状态;二是为了接触算法,让自己有些算法基础;三是让自己牢固Java的基础(毕竟去看源代码是一件让人很困倦,也很厌烦的事情),开始这类博文之前声明下:自己并非算法工程师所有的题目均是已实现作为目标,其次才会考虑时空复杂度的问题。如果大家有更好的解法希望能在评论中看到回复。原创 2018-01-02 13:54:02 · 201 阅读 · 0 评论 -
[leetcode]169. Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than [ n/2 ] times. You may assume that the array is non-empty and the majority element alw原创 2018-01-08 14:37:13 · 108 阅读 · 0 评论