数据结构与算法
Yilia_yu
这个作者很懒,什么都没留下…
展开
-
leetcode-300-Longest Increasing Subsequence
题目:Longest Increasing Subsequence 最长升序子序列 Given an unsorted array of integers, find the length of longest increasing subsequence. For example, Given [10, 9, 2, 5, 3, 7, 101, 18], The longe原创 2017-02-23 16:06:21 · 208 阅读 · 0 评论 -
Leetcode-474-Ones and Zeroes
474. Ones and Zeroes 动态规划……每次必坑……看这道题目,和0-1背包问题有点儿像 In the computer world, use restricted resource you have to generate maximum benefit is what we always want to pursue. For now, suppose you are原创 2017-02-24 13:30:30 · 429 阅读 · 0 评论 -
Leetcode-169-Majority Element
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-em原创 2017-03-03 16:47:50 · 381 阅读 · 0 评论 -
base64编码、解码的C语言实现
base64是一种基于64个可打印字符来表示二进制数据的表示方法。由于26=64,所以每6位为一个单位,对应某个可打印字符。三个字节共24位,对应于4个base64单位,即3个字节需要用4个可打印字符来表示。它常用来作为电子邮件的传输编码。在base64中的可打印字符包括大写英文字母A-Z,小写英文字母a-z、阿拉伯数字0-9,这样共有62个字符,此外两个可打印符号在不同的系统中而不同,通常用加号转载 2017-03-12 16:49:33 · 347 阅读 · 0 评论