原创 App Bar

——Developer values-v14 res下文件夾values-14 values-21 Develop > Reference > R.attr displayOptions Options affecting ho

原创 AsyncTask獲取數據庫數據

2016_04_25 —————R 關於 http://blog.csdn.net/u010045971/article/details/50853651 未盡之事 1. 爲應用程序添加provider的訪問權限。

原创 css設置段落縮進、行距

不知道怎麼沒有保存上,還把它弄丟了。 今天又看了看,感覺有點不對 <div id = "textDiv"> <p>而我聽見下雨的聲音,想起你用脣語說愛情,熱戀的時候最任性,不顧一切的給約定;終於聽見下雨的聲音,於是我的世界

原创 stdin、stdout、stderr

printf()直接輸出到終端上 fprintf()輸出到文件 在進程通信的學習中,多次用到 fprintf(),其中參數多爲stdout,stderr。 http://www.cnblogs.com/puputu/arc

原创 Leetcode 10: Regular Expression Matching

Leetcode 10: Regular Expression Matching Implement regular expression matching with support for ‘.’ and ‘*’. ‘.’ Match

原创 堆棋子與曼哈頓距離

堆棋子 牛客網通道: https://www.nowcoder.com/questionTerminal/27f3672f17f94a289f3de86b69f8a25b 小易將n個棋子擺放在一張無限大的棋盤上。第i個棋子放在第x[i]

原创 Leetcode 307: Range Sum Query - Mutable 之BIT

題目傳送門: Leetcode 307.Range Sum Query - Mutable 題目 Given an integer array nums, find the sum of the elements between in

原创 Leetcode 560: Subarray Sum Equal k

Leetcode 560 Given an array of integers and an integer k, you need to find the total number of continuous subarrays wh

原创 Leetcode 300 :Longest Increasing Sequence

Leetcode 300 Longest Increasing Sequence Given an unsorted array of integers, find the length of longest increasing sub

原创 JdbcTemplate模式

這是一種相比傳統的Jdbc要方便一些的數據庫操作模板吧。 常規的JDBC 存在的問題 http://wenku.baidu.com/link?url=GtMpDtr_D9iLIn0LK6LMIlfFJ0Vk0E6UOOiG1dfqgs

原创 Leetcode 312: Burst Balloons

Leetcode 312: Burst Balloons Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it repr

原创 Are you happy?

2016/06/12 你快樂嗎 你在做什麼呢 你有想法嗎 你覺得這樣的生活值得嗎 發脾氣的時候,考慮到周圍人了嗎 沒有 我不快樂 我做什麼呢 我還要做什麼呢 我完完全全不想

原创 /etc/profile 修改致命令失效

對root用戶起作用的方法: /usr/bin/vim /etc/profile 雖然可以進入profile文件,但是對於普通用戶,無法修改. 通用方法: 終端輸入此命令後 export PATH=/bin:/usr/local/sbi

原创 Leetcode 44:Wildcard Matching

Leetcode 44:Wildcard Matching Implement wildcard pattern matching with support for ‘?’ and ‘*’. ‘?’ Matches any single

原创 Leetcode 561: Array Partition I

題目傳送門: Leetcode 561. Array Partition I 題目: Given an array of 2n integers, your task is to group these integers into n