随笔分类 -  Algorithm / Data Structure

上一页 1 2 3 4 5
LeetCode 343. Integer Break
摘要:https://leetcode.com/problems/integer-break/ Given a positive integer n, break it into the sum of at least two positive integers and maximize the prod 阅读全文
posted @ 2016-05-18 23:38 浩然119 阅读(214) 评论(0) 推荐(0)
LeetCode 292. Nim Game
摘要:https://leetcode.com/problems/nim-game/ You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one 阅读全文
posted @ 2016-05-16 23:18 浩然119 阅读(194) 评论(0) 推荐(0)
LeetCode 338. Counting Bits
摘要:https://leetcode.com/problems/counting-bits/ Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the numbe 阅读全文
posted @ 2016-05-16 22:18 浩然119 阅读(198) 评论(0) 推荐(0)
LeetCode 344. Reverse String
摘要:https://leetcode.com/problems/reverse-string/ Write a function that takes a string as input and returns the string reversed. Example:Given s = "hello" 阅读全文
posted @ 2016-05-15 20:24 浩然119 阅读(257) 评论(0) 推荐(0)
【ZZ】每个程序员都应该收藏的算法复杂度速查表
摘要:每个程序员都应该收藏的算法复杂度速查表-软件开发|Linux.中国-开源社区 https://linux.cn/article-7480-1.html 算法复杂性速查表 http://bigocheatsheet.com/ 图例 数据结构操作 数组排序算法 图操作 堆操作 阅读全文
posted @ 2013-05-05 14:50 浩然119 阅读(183) 评论(0) 推荐(0)
学习笔记之编程之美-微软技术面试心得(一)
摘要:书名编程之美-微软技术面试心得 《编程之美》小组 著 从书名就可以知道该书的大体内容了,书中收集约60道算法和程序设计的题目。网上可以找到书中部分章节以及随书源代码,不过我还是喜欢翻书看的感觉。下面是对书中结构之法章节的读书笔记,该节汇集了常见的对字符串、链表、队列,以及树等进行操作的题目。 3.1 阅读全文
posted @ 2010-12-10 02:01 浩然119 阅读(736) 评论(0) 推荐(0)
面试总结之杂题
摘要:收集了几道有意思的面试题,丰富下思考方式。 http://www.cnblogs.com/zhenjing/archive/2010/10/18/1854020.html 一个排好序的数组A,长度为n,现在将数组A从位置m(m<n,m已知)分开,并将两部分互换位置,设计一个O(n)的算法实现这样的倒 阅读全文
posted @ 2010-11-01 01:24 浩然119 阅读(258) 评论(0) 推荐(0)
面试总结之海量数据处理
摘要:【ZZ】大数据量专题 默认分类 2009-11-30 21:46:13 阅读196 评论0 字号:大中小 1. 给你A,B两个文件,各存放50亿条URL,每条URL占用64字节,内存限制是4G,让你找出A,B文件共同的URL。 2. 有10个文件,每个文件1G, 每个文件的每一行都存放的是用户的qu 阅读全文
posted @ 2010-10-02 01:34 浩然119 阅读(657) 评论(0) 推荐(0)

上一页 1 2 3 4 5