- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 githug mac 安装
最近在mac上安装了githug,在此处做个记录 具体参考 http://www.cnblogs.com/wicub/p/3646070.html gem install githug 安装成功后执行下面的命令: githug --help Tasks: githug help [TASK] # Describe available tasks or one
2016-01-06 23:18:32 733
原创 Insertion Sort List
/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */ class Solution { public: ListNode *ser
2014-10-09 16:02:47 405
原创 Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.
2014-09-30 16:31:34 385
原创 Leetcode Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest
2014-09-30 14:06:02 335
原创 Leetcode Best Time to Buy and Sell Stock
class Solution { public: int maxProfit(vector &prices) { if ( prices.size() int min,profit=0; min = prices[0]; for (int i = 0; i {
2014-09-30 13:19:07 317
原创 sama5d3x 启用UART设备
购买的开发板未使用UART,只能自己硬着头皮添加。但AT91的linux也是过于庞大,所以开始寻找切入点 首先看这篇文章:http://blog.csdn.net/21cnbao/article/details/8457546 有了这个设备树,问题就简化了,所以在/linux-at91/arch/arm/boot/dts/中看到有: 先看sama5d3.dtsi,如usart0:
2014-01-02 10:14:49 2579 1
原创 嵌入式boawebserver + cgi注意事项
最近在开发板上移植了boa webserver,直接用cgic和.bash写了查看配置和更改配置的页面,完成效果如下: 现在虚拟机上实现,后移植到开发板 具体步骤: 1.下载源码,编译,配置(网上例子很多,在此不赘述了) 2.下载cgic,编译cgictest程序,放到设定的.../cgi-bin下,在浏览器输入127.0.0.1,看到test页面,OK 3.实现获取linux运
2013-10-29 17:09:47 929
原创 Rotate Image
问题描述: You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 关键是要空间复杂度O(1),拿个小矩阵做做实验就知道了。 class Solution {
2013-08-13 11:02:09 353
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人