標籤:如果你經常性的需要用電腦去做一些事情,這些事情中大部分情況可能是經常重複性的或者是枯燥的,最終(eventually)你會想讓這些任務(task)實現自動化(automate)。例如,你可能希望在一個大的文字檔中執行一些類似於搜尋替換或者是重新命名,可能你還希望對一堆(a bunch of )照片檔案使用一種相對複雜(complicated)的方式進行重新排列(rearrange),或者你更加鐘情於自己實現一個小型的用戶端資料庫(custom
標籤:android thread Service 在官方API的描述為A Service is an application component representing either an application‘s desire to perform a longer-running operation while not interacting with the user or to supply
標籤:1. Class 和 Object 的定義/// An opaque type that represents an Objective-C class.typedef struct objc_class *Class; /// Represents an instance of a class.struct objc_object { Class isa;}; /// A pointer to an
標籤:Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. 這道題雖然做了出來,但是顯然不是最優解。顯然空間要求沒有達到。 有一點要尤為注意,在一開始的時候我就預設k是小於n的,實際上k可以大於n,所以在修改代碼之後,我們所使用的k要對n取餘。
標籤:<!-- For Chrome for Android: --><link rel="icon" sizes="192x192" href="touch-icon-192x192.png"><!-- For iPhone 6 Plus with @3× display: --><link rel="apple-touch-icon-precomposed" sizes="180x180" href="apple-touch-icon-1