From Jon's webpage, which is super good


Savage’s approach to research, via Mosteller:

  1. As soon as a problem is stated, start right away to solve it. Use simple examples.
  2. Keep starting from first principles, explaining again and again what you are trying to do.
  3. Believe that this problem can be solved and that you will enjoy working it out.
  4. Don’t be hampered by the original problem statement. Try other problems in its neighborhood; maybe there’s a better problem than yours.
  5. Work an hour or so on it frequently.
  6. Talk about it; explain it to people.

Quotes worth quoting:

  • Good judgment comes from experience. Experience comes from bad judgment. 
    —Jim Horning

  • Dealing with failure is easy: work hard to improve. Success is also easy to handle: you’ve solved the wrong problem. Work hard to improve. 
    —Alan J. Perlis

  • However beautiful the strategy, you should occasionally look at the results. 
    —Winston Churchill

  • I have yet to see any problem, however complicated, which, when looked at in the right way, did not become still more complicated. 
    —Poul Anderson

  • The difference between theory and practice: in theory, there’s no difference between theory and practice; in practice, there is. 
    —Jan L. A. van de Snepscheut

  • The most exciting phrase to hear in science is not “Eureka!” but “That’s funny...” 
    —Isaac Asimov

  • Don’t worry about people stealing your ideas. If your ideas are any good, you’ll have to ram them down people’s throats. 
    —Howard Aiken

  • The secret to creativity is knowing how to hide your sources. 
    —Albert Einstein

  • Men never do evil so cheerfully and completely as when they do it from religious conviction. 
    —Blaise Pascal

  • I was unable to find flaws in my ‘proof’ for quite a while, even though the error is very obvious. It was a psychological problem, a blindness, an excitement, an inhibition of reasoning by an underlying fear of being wrong. Techniques leading to the abandonment of such inhibitions should be cultivated by every honest mathematician. 
    —John R. Stallings Jr. [on his false proof of Poincare’s conjecture]

  • For sheer brilliance I could divide all those whom I have taught into two groups: one contained a single outstanding boy, R. A. Fisher; the other all the rest. 
    —Arthur Vassal, Fisher's biology teacher at Harrow

  • [Fisher] fitted the classical definition of a gentleman: he never insulted anyone unintentionally. 
    —J.F. Crow

  • I occasionally meet geneticists who ask me whether it is true that the great geneticist R. A. Fisher was also an important statistician. 
    —L. J. Savage

  • If the topic of regression comes up in a trial, the side that must explain regression to the jury will lose. 
    —David A. Freedman

good



Not so much "life-hacks" but things that have made me successful(ish):
  • Exercise really is the solution to so many of life's issues (moods, health, etc.).  It's not just hype.  My entire life has been changed in monumental ways because of exercise.  If you're not getting enough exercise (or unless you are one of the rare like 1% of people who genuinely can be healthy without it) then you are suffering in some way.  It doesn't have to be CrossFit or running marathons, but you should be exercising.
  • Make a list of your priorities (including people).  Update it as necessary, but refer to it frequently.  It will help you make decisions on what is important in life.  It's cold.  It's calculating.  But so are you, we all are; we all have priorities (and we hate to admit that we rank people and things, but you do, we all do -- I'm just honest about it and write it down; if you're in my life, you're on the list).  The difference between those who cannot prioritize and those that do is about two heartbeats in making decisions that most people agonize over.
  • It's better to do things than to have things.  I'm not rich, but I can do one or the other.  I can afford nice things. I could have all sorts of great shit that people would look at and desire.  I can travel and do things and have great experiences with my husband.  But I can't do both.  Doing things together builds your relationships; having things seems to distract away from what's important.

Okay, and one more:
  • If you have plans, have re-evaluation periods and benchmarks.  It's hard.  It ain't fun.  But if you don't have goals and dates that those goals need to meet, then you are unlikely to succeed in a lot of things you try to do.  Your goals should be flexible (mine change all the time), but the ones I have, have evaluation periods that I look back and think, "Why am I doing this?"  If I'm not on track to meet the goals, if I feel like I'm missing the mark (or that it's no longer worth it), I evaluate and change course.

A good way to live life in happy ways: never get happiness by comparing to peers


How does a person cope with depression when he goes on LinkedIn and discovers many of his peers getting ahead with high-sounding job titles while he is still a nobody despite working very hard at his job and is quite good at it?


I think Peggy Li already gave a great answer to this question, so, uh, I just have one additional point to make.

If you allow your level of satisfaction in life to be tied to whether your peers are better than you in one specific aspect of life, you'll never be happy, nor will you have the right mindset to achieve your full potential.

For one thing, there will always be people better than you, and the higher up you get, the more impressive are the peers you encounter. What if you had a "high-sounding job title" too, like your peers? You'd have more responsibility, and probably attend conferences in your field, where you'd meet and network people who are even better than you. Nothing would change. And even if you were literally at the top of your field, you can't be the best at everything. You can always find something else that other people are better at.

But also, for the most part, people don't come to excel through the desire to land in high-up places. They come to excel by working hard at something they enjoy and taking pride in constantly building their skill set and experience.

To me, it's pretty clear that feeling constantly disappointed with oneself is not a good motivator in life---it is not something that will enable you to eventually be happy or to accomplish your goals. It is therefore not something that should be part of a healthy person's life. When people feel the need to compare themselves with others too much, it is usually a symptom of something else missing in their lives. For example, it could be that you feel you aren't appreciated enough by your manager and your co-workers at your existing job, and your rationalization is that you feel bad because your job isn't prestigious enough, but really, that isn't the underlying cause. Some critical reflection would be helpful here---what is missing from your life? (Note: If you really are depressed, do seek therapy, as you won't be able to reason with yourself.)

Wall Street

I watched the documentary <<Wall Street>>  by CCTV on youtube. It is a wonderful series of documentaries. I would like to watch more and learn more.

This gives me more respect to Wall Street. The finance world helps the world to connect innovation and development. We should encourage the development of finance. 

I will take my best to learn how to invest and how to innnovate. 

It really inspire me. I like it. 


Fwd: leetcode难度及面试频率 zz




      

1Two Sum25arraysort

    setTwo Pointers

2Add Two Numbers34linked listTwo Pointers

     Math

3Longest Substring Without Repeating Characters32stringTwo Pointers

    hashtable 

4Median of Two Sorted Arrays53arrayBinary Search

5Longest Palindromic Substring42string 

6ZigZag Conversion31string 

7Reverse Integer23 Math

8String to Integer (atoi)25stringMath

9Palindrome Number22 Math

10Regular Expression Matching53stringRecursion

     DP

11Container With Most Water32arrayTwo Pointers

12Integer to Roman34 Math

13Roman to Integer24 Math

14Longest Common Prefix21string 

153Sum35arrayTwo Pointers

163Sum Closest31arrayTwo Pointers

17Letter Combinations of a Phone Number33stringDFS

184Sum32array 

19Remove Nth Node From End of List23linked listTwo Pointers

20Valid Parentheses25stringStack

21Merge Two Sorted Lists25linked listsort

     Two Pointers

     merge

22Generate Parentheses34stringDFS

23Merge k Sorted Lists34linked listsort

    heapTwo Pointers

     merge

24Swap Nodes in Pairs24linked list 

25Reverse Nodes in k-Group42linked listRecursion

     Two Pointers

26Remove Duplicates from Sorted Array13arrayTwo Pointers

27Remove Element14arrayTwo Pointers

28Implement strStr()45stringTwo Pointers

     KMP

     rolling hash

29Divide Two Integers43 Binary Search

     Math

30Substring with Concatenation of All Words31stringTwo Pointers

31Next Permutation52arraypermutation

32Longest Valid Parentheses41stringDP

33Search in Rotated Sorted Array43arrayBinary Search

34Search for a Range43arrayBinary Search

35Search Insert Position22array 

36Valid Sudoku22array 

37Sudoku Solver42arrayDFS

38Count and Say22stringTwo Pointers

39Combination Sum33arraycombination

40Combination Sum II42arraycombination

41First Missing Positive52arraysort

42Trapping Rain Water42arrayTwo Pointers

     Stack

43Multiply Strings43stringTwo Pointers

     Math

44Wildcard Matching53stringRecursion

     DP

     greedy

45Jump Game II42array 

46Permutations34arraypermutation

47Permutations II42arraypermutation

48Rotate Image42array 

49Anagrams34string 

    hashtable 

50Pow(x, n)35 Binary Search

     Math

51N-Queens43arrayDFS

52N-Queens II43arrayDFS

53Maximum Subarray33arrayDP

54Spiral Matrix42array 

55Jump Game32array 

56Merge Intervals45arraysort

    linked listmerge

    red-black tree 

57Insert Interval45arraysort

    linked listmerge

    red-black tree 

58Length of Last Word11string 

59Spiral Matrix II32array 

60Permutation Sequence51 permutation

     Math

61Rotate List32linked listTwo Pointers

62Unique Paths23arrayDP

63Unique Paths II33arrayDP

64Minimum Path Sum33arrayDP

65Valid Number25stringMath

66Plus One12arrayMath

67Add Binary24stringTwo Pointers

     Math

68Text Justification42string 

69Sqrt(x)44 Binary Search

70Climbing Stairs25 DP

71Simplify Path31stringStack

72Edit Distance43stringDP

73Set Matrix Zeroes35array 

74Search a 2D Matrix33arrayBinary Search

75Sort Colors42arraysort

     Two Pointers

76Minimum Window Substring42stringTwo Pointers

77Combinations34 combination

78Subsets34arrayRecursion

     combination

79Word Search34arrayDFS

80Remove Duplicates from Sorted Array II22arrayTwo Pointers

81Search in Rotated Sorted Array II53arrayBinary Search

82Remove Duplicates from Sorted List II33linked listRecursion

     Two Pointers

83Remove Duplicates from Sorted List13linked list 

84Largest Rectangle in Histogram52arrayStack

85Maximal Rectangle51arrayDP

     Stack

86Partition List33linked listTwo Pointers

87Scramble String52stringRecursion

     DP

88Merge Sorted Array25arrayTwo Pointers

     merge

89Gray Code42 combination

90Subsets II42arrayRecursion

     combination

91Decode Ways34stringRecursion

     DP

92Reverse Linked List II32linked listTwo Pointers

93Restore IP Addresses33stringDFS

94Binary Tree Inorder Traversal43treeRecursion

    hashtablemorris

     Stack

95Unique Binary Search Trees II41treeDP

     DFS

96Unique Binary Search Trees31treeDP

97Interleaving String52stringRecursion

     DP

98Validate Binary Search Tree35treeDFS

99Recover Binary Search Tree42treeDFS

100Same Tree11treeDFS

101Symmetric Tree12treeDFS

102Binary Tree Level Order Traversal34treeBFS

103Binary Tree Zigzag Level Order Traversal43queueBFS

    treeStack

104Maximum Depth of Binary Tree11treeDFS

105Construct Binary Tree from Preorder and Inorder Tr33arrayDFS

    tree 

106Construct Binary Tree from Inorder and Postorder T33arrayDFS

    tree 

107Binary Tree Level Order Traversal II31treeBFS

108Convert Sorted Array to Binary Search Tree23treeDFS

109Convert Sorted List to Binary Search Tree43linked listRecursion

     Two Pointers

110Balanced Binary Tree12treeDFS

111Minimum Depth of Binary Tree11treeDFS

112Path Sum13treeDFS

113Path Sum II22treeDFS

114Flatten Binary Tree to Linked List33treeRecursion

     Stack

115Distinct Subsequences42stringDP

116Populating Next Right Pointers in Each Node33treeDFS

117Populating Next Right Pointers in Each Node II42treeDFS

118Pascal's Triangle21array 

119Pascal's Triangle II21array 

120Triangle31arrayDP

121Best Time to Buy and Sell Stock21arrayDP

122Best Time to Buy and Sell Stock II31arraygreedy

123Best Time to Buy and Sell Stock III41arrayDP

124Binary Tree Maximum Path Sum42treeDFS

125Valid Palindrome25stringTwo Pointers

126Word Ladder II11  

127Word Ladder35graphBFS

     shortest path

128Longest Consecutive Sequence43array 

129Sum Root to Leaf Numbers24treeDFS

130Surrounded Regions43arrayBFS

     DFS

131Palindrome Partitioning34stringDFS

132Palindrome Partitioning II43stringDP