原创 Linux shell 讀取一個data文件,掃描其中的一個內容

程序功能:首先要讀取一個data文件(很大),掃描出fr=..(文件中fr大概只有7種,並且某幾種的value還有空值的情況。要處理空值 同時刪除重複的內容)【爲什麼我覺得我沒表達清楚。】 代碼如下: rz filename #先

原创 【Leetcode】Reverse Integer

Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 需要考慮的點是int類型的範圍是-2147483

原创 【Leetcode】two sum

Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may ass

原创 【Leetcode】Palindrome Number

Determine whether an integer is a palindrome. Do this without extra space. 迴文就是左右顛倒之後還是一樣的。不能用reverse integer的方法 ,可能會造成