Franklin

Home|Franklin

Descartes Philosophy and Life

笛卡爾旅行的結果,覺得在此國以為神聖的事,在他國卻視為下賤;在此國以為大逆不道的事,在別國卻奉為天經地義,因此他覺悟到貴賤善惡是因時因地而不同的。他認為從前積下來的許多觀念是不可靠的,因為他們多是趁他思想幼稚的時候侵入來的。如若欲過理性的生活,必得將從前積的的知識,一件一件用懷疑的態度去評估他們的價值,重新建設一個理性的是非。這懷疑的態度,就是他對對於人生與哲學的貢獻.——哲學與人生 After Descartes’s travels, he felt that what was considered sacred in this country was regarded as inferior in other countries, and what was regarded as treacherous in this country was regarded as the righteousness in other countries. Therefore, he realized that whether they are noble or bad, good or evil depend on a concrete

By |2020-11-27T16:56:34-04:00November 26th, 2020|Book Notes|0 Comments

Lincoln’s Team of Rivals

除了他毋庸置疑的憂鬱氣質,他在南北戰爭中最令人絕望的時期,始終能利用自己優秀的秉性、能言善辯的天賦以及他那與生俱來的幽默感,維繫著他的同僚和整個國家的精神狀態。當怨恨和爭辯威脅著要摧毀他的政府時,他總是能保持不被心胸狹隘的牢騷怪話所激怒,或是屈從於嫉妒心理,或是對雞毛蒜皮耿耿於懷。林肯身上有一種罕見的品質,這種品質使他有能力與昔日的反對派們結下友誼;有能力通過冷處理修復受傷害的感情,這種感情一旦處理不當就有可能升級為敵對情緒;有能力對部下的失敗承擔責任,有能力輕而易舉地與別人分享信任,有能力吃一塹長一智。他日復一日面對驚人的壓力,卻從未喪失自信心和對祖國事業的信念。當別人有時向絕望投降的時候,他卻以不屈不撓的果敢拯救了聯邦,使之免遭豎白旗的命運。 In addition to his unquestionable melancholic temperament, he was able to use his excellent temperament, eloquent talent and his innate sense of humor to sustain his colleagues and the whole country during the most desperate period of the Civil War. When resentment and argument threaten to destroy his government, he can always keep from being

By |2020-11-27T00:21:56-04:00November 26th, 2020|Book Notes|4 Comments

Code Sample

[php]class Solution3 {public:int lengthOfLongestSubstring(string s) {set<char> set;int ans=0,i=0,j=0;while (i<s.size()&&j<s.size()) {if (!set.count(s[j])) {set.insert(s[j++]);ans=max(ans, j-i);}else{set.erase(s[i++]);}}return ans;}};int main(){Solution3 s3; cout<<s3.lengthOfLongestSubstring("abcabcbb");}[/php][php]int main(int argc, char *argv[])[/php] //Bulid_Max_Heap' void Bulid_Max_Heap2(vector& A){ Heap_size=1; for (int i=1; i<A.size(); i++) { MAX_HEAP_INSERT(A,A[i]); } } void MAX_HEAP_INSERT(vector& A,int key){ Heap_size=Heap_size+1; // A.push_back(NULL); //don't use when invoke Bulid_Max_Heap2 function A[Heap_size-1]=INT_MIN; Heap_Increase_Key(A, Heap_size-1, key); } //Bulid_Max_Heap' void

By |2020-11-27T01:23:23-04:00May 8th, 2020|CS|0 Comments
Go to Top