Microsoft (92)
138 Copy List with Random Pointer
348 Design Tic-Tac-Toe
206 Reverse Linked List
419 Battleships in a Board
273 Integer to English Words
171 Excel Sheet Column Number
54 Spiral Matrix
88 Merge Sorted Array
445 Add Two Numbers II
236 Lowest Common Ancestor of a Binary Tree
200 Number of Islands
53 Maximum Subarray
1 Two Sum
235 Lowest Common Ancestor of a Binary Search Tree
186 Reverse Words in a String II
218 The Skyline Problem
21 Merge Two Sorted Lists
116 Populating Next Right Pointers in Each Node
103 Binary Tree Zigzag Level Order Traversal
297 Serialize and Deserialize Binary Tree
238 Product of Array Except Self
121 Best Time to Buy and Sell Stock
268 Missing Number
48 Rotate Image
75 Sort Colors
151 Reverse Words in a String
13 Roman to Integer
73 Set Matrix Zeroes
117 Populating Next Right Pointers in Each Node II
20 Valid Parentheses
141 Linked List Cycle
2 Add Two Numbers
33 Search in Rotated Sorted Array
168 Excel Sheet Column Title
24 Swap Nodes in Pairs
8 String to Integer (atoi)
237 Delete Node in a Linked List
146 LRU Cache
232 Implement Queue using Stacks
173 Binary Search Tree Iterator
98 Validate Binary Search Tree
208 Implement Trie (Prefix Tree)
174 Dungeon Game
212 Word Search II
4 Median of Two Sorted Arrays
5 Longest Palindromic Substring
285 Inorder Successor in BST
153 Find Minimum in Rotated Sorted Array
26 Remove Duplicates from Sorted Array
160 Intersection of Two Linked Lists
106 Construct Binary Tree from Inorder and Postorder Traversal
102 Binary Tree Level Order Traversal
23 Merge k Sorted Lists
25 Reverse Nodes in k-Group
215 Kth Largest Element in an Array
189 Rotate Array
191 Number of 1 Bits
567 Permutation in String
71 Simplify Path
387 First Unique Character in a String
15 3Sum
204 Count Primes
56 Merge Intervals
94 Binary Tree Inorder Traversal
165 Compare Version Numbers
28 Implement strStr()
46 Permutations
300 Longest Increasing Subsequence
91 Decode Ways
101 Symmetric Tree
270 Closest Binary Search Tree Value
114 Flatten Binary Tree to Linked List
79 Word Search
258 Add Digits
125 Valid Palindrome
124 Binary Tree Maximum Path Sum
162 Find Peak Element
112 Path Sum
654 Maximum Binary Tree
333 Largest BST Subtree
365 Water and Jug Problem
452 Minimum Number of Arrows to Burst Balloons
47 Permutations II
513 Find Bottom Left Tree Value
213 House Robber II
55 Jump Game
591 Tag Validator
631 Design Excel Sum Formula
642 Design Search Autocomplete System
650 2 Keys Keyboard
651 4 Keys Keyboard
672 Bulb Switcher II
From January 2015, she started to practice leetcode questions; she trains herself to stay focus, develops "muscle" memory when she practices those questions one by one. 2015年初, Julia开始参与做Leetcode, 开通自己第一个博客. 刷Leet code的题目, 她看了很多的代码, 每个人那学一点, 也开通Github, 发表自己的代码, 尝试写自己的一些体会. She learns from her favorite sports – tennis, 10,000 serves practice builds up good memory for a great serve. Just keep going. Hard work beats talent when talent fails to work hard.
Sunday, June 23, 2019
Leetcode - Amazon
Sorted by frequency of problems that appear in real interviews.
Last updated: October 2, 2017
Amazon (88)
534 Design TinyURL
675 Cut Off Trees for Golf Event
1 Two Sum
20 Valid Parentheses
146 LRU Cache
438 Find All Anagrams in a String
200 Number of Islands
48 Rotate Image
297 Serialize and Deserialize Binary Tree
138 Copy List with Random Pointer
236 Lowest Common Ancestor of a Binary Tree
460 LFU Cache
387 First Unique Character in a String
121 Best Time to Buy and Sell Stock
239 Sliding Window Maximum
5 Longest Palindromic Substring
17 Letter Combinations of a Phone Number
238 Product of Array Except Self
42 Trapping Rain Water
682 Baseball Game
127 Word Ladder
380 Insert Delete GetRandom O(1)
235 Lowest Common Ancestor of a Binary Search Tree
206 Reverse Linked List
23 Merge k Sorted Lists
155 Min Stack
2 Add Two Numbers
98 Validate Binary Search Tree
449 Serialize and Deserialize BST
240 Search a 2D Matrix II
234 Palindrome Linked List
517 Super Washing Machines
215 Kth Largest Element in an Array
139 Word Break
21 Merge Two Sorted Lists
49 Group Anagrams
126 Word Ladder II
3 Longest Substring Without Repeating Characters
242 Valid Anagram
529 Minesweeper
160 Intersection of Two Linked Lists
141 Linked List Cycle
186 Reverse Words in a String II
167 Two Sum II – Input array is sorted
15 3Sum
78 Subsets
535 Encode and Decode TinyURL
73 Set Matrix Zeroes
102 Binary Tree Level Order Traversal
508 Most Frequent Subtree Sum
8 String to Integer (atoi)
538 Convert BST to Greater Tree
204 Count Primes
199 Binary Tree Right Side View
414 Third Maximum Number
89 Gray Code
451 Sort Characters By Frequency
355 Design Twitter 2
119 Pascal’s Triangle II
662 Maximum Width of Binary Tree
645 Set Mismatch
617 Merge Two Binary Trees
661 Image Smoother
396 Rotate Function
646 Maximum Length of Pair Chain
545 Boundary of Binary Tree
606 Construct String from Binary Tree
640 Solve the Equation
663 Equal Tree Partition
459 Repeated Substring Pattern
516 Longest Palindromic Subsequence
532 K-diff Pairs in an Array
579 Find Cumulative Salary of an Employee
536 Construct Binary Tree from String
537 Complex Number Multiplication
553 Optimal Division
Leetcode - Facebook
Facebook (111)
534 Design TinyURL
283 Move Zeroes
301 Remove Invalid Parentheses
273 Integer to English Words
325 Maximum Size Subarray Sum Equals k
67 Add Binary
621 Task Scheduler
253 Meeting Rooms II
17 Letter Combinations of a Phone Number
311 Sparse Matrix Multiplication
91 Decode Ways 19.8%
297 Serialize and Deserialize Binary Tree
314 Binary Tree Vertical Order Traversal
10 Regular Expression Matching
15 3Sum
158 Read N Characters Given Read4 II – Call multiple times
278 First Bad Version
277 Find the Celebrity
200 Number of Islands
76 Minimum Window Substring
257 Binary Tree Paths
282 Expression Add Operators
23 Merge k Sorted Lists
157 Read N Characters Given Read4
121 Best Time to Buy and Sell Stock
602 Friend Requests II: Who Has the Most Friends
56 Merge Intervals
161 One Edit Distance
173 Binary Search Tree Iterator
1 Two Sum
543 Diameter of Binary Tree
211 Add and Search Word – Data structure design
341 Flatten Nested List Iterator
252 Meeting Rooms
125 Valid Palindrome
597 Friend Requests I: Overall Acceptance Rate
139 Word Break
636 Exclusive Time of Functions
285 Inorder Successor in BST
78 Subsets
98 Validate Binary Search Tree
43 Multiply Strings
75 Sort Colors
670 Maximum Swap
57 Insert Interval
133 Clone Graph
215 Kth Largest Element in an Array
33 Search in Rotated Sorted Array
13 Roman to Integer
206 Reverse Linked List
79 Word Search
494 Target Sum
236 Lowest Common Ancestor of a Binary Tree
398 Random Pick Index
477 Total Hamming Distance
38 Count and Say
680 Valid Palindrome II
49 Group Anagrams
88 Merge Sorted Array
218 The Skyline Problem
146 LRU Cache
238 Product of Array Except Self
209 Minimum Size Subarray Sum
102 Binary Tree Level Order Traversal
90 Subsets II
71 Simplify Path
286 Walls and Gates
128 Longest Consecutive Sequence
639 Decode Ways II
523 Continuous Subarray Sum
334 Increasing Triplet Subsequence
208 Implement Trie (Prefix Tree)
28 Implement strStr()
269 Alien Dictionary
127 Word Ladder
647 Palindromic Substrings
377 Combination Sum IV
20 Valid Parentheses
44 Wildcard Matching
554 Brick Wall
235 Lowest Common Ancestor of a Binary Search Tree
380 Insert Delete GetRandom O(1)
50 Pow(x, n)
117 Populating Next Right Pointers in Each Node II
69 Sqrt(x)
461 Hamming Distance
85 Maximal Rectangle
210 Course Schedule II
26 Remove Duplicates from Sorted Array
68 Text Justification
221 Maximal Square
274 H-Index
404 Sum of Left Leaves
25 Reverse Nodes in k-Group
234 Palindrome Linked List
689 Maximum Sum of 3 Non-Overlapping Subarrays
80 Remove Duplicates from Sorted Array II
168 Excel Sheet Column Title
261 Graph Valid Tree
265 Paint House II
275 H-Index II
410 Split Array Largest Sum
525 Contiguous Array
674 Longest Continuous Increasing Subsequence
572 Subtree of Another Tree
578 Get Highest Answer Rate Question
637 Average of Levels in Binary Tree
642 Design Search Autocomplete System
653 Two Sum IV – Input is a BST
673 Number of Longest Increasing Subsequence
535 Encode and Decode TinyURL
534 Design TinyURL
283 Move Zeroes
301 Remove Invalid Parentheses
273 Integer to English Words
325 Maximum Size Subarray Sum Equals k
67 Add Binary
621 Task Scheduler
253 Meeting Rooms II
17 Letter Combinations of a Phone Number
311 Sparse Matrix Multiplication
91 Decode Ways 19.8%
297 Serialize and Deserialize Binary Tree
314 Binary Tree Vertical Order Traversal
10 Regular Expression Matching
15 3Sum
158 Read N Characters Given Read4 II – Call multiple times
278 First Bad Version
277 Find the Celebrity
200 Number of Islands
76 Minimum Window Substring
257 Binary Tree Paths
282 Expression Add Operators
23 Merge k Sorted Lists
157 Read N Characters Given Read4
121 Best Time to Buy and Sell Stock
602 Friend Requests II: Who Has the Most Friends
56 Merge Intervals
161 One Edit Distance
173 Binary Search Tree Iterator
1 Two Sum
543 Diameter of Binary Tree
211 Add and Search Word – Data structure design
341 Flatten Nested List Iterator
252 Meeting Rooms
125 Valid Palindrome
597 Friend Requests I: Overall Acceptance Rate
139 Word Break
636 Exclusive Time of Functions
285 Inorder Successor in BST
78 Subsets
98 Validate Binary Search Tree
43 Multiply Strings
75 Sort Colors
670 Maximum Swap
57 Insert Interval
133 Clone Graph
215 Kth Largest Element in an Array
33 Search in Rotated Sorted Array
13 Roman to Integer
206 Reverse Linked List
79 Word Search
494 Target Sum
236 Lowest Common Ancestor of a Binary Tree
398 Random Pick Index
477 Total Hamming Distance
38 Count and Say
680 Valid Palindrome II
49 Group Anagrams
88 Merge Sorted Array
218 The Skyline Problem
146 LRU Cache
238 Product of Array Except Self
209 Minimum Size Subarray Sum
102 Binary Tree Level Order Traversal
90 Subsets II
71 Simplify Path
286 Walls and Gates
128 Longest Consecutive Sequence
639 Decode Ways II
523 Continuous Subarray Sum
334 Increasing Triplet Subsequence
208 Implement Trie (Prefix Tree)
28 Implement strStr()
269 Alien Dictionary
127 Word Ladder
647 Palindromic Substrings
377 Combination Sum IV
20 Valid Parentheses
44 Wildcard Matching
554 Brick Wall
235 Lowest Common Ancestor of a Binary Search Tree
380 Insert Delete GetRandom O(1)
50 Pow(x, n)
117 Populating Next Right Pointers in Each Node II
69 Sqrt(x)
461 Hamming Distance
85 Maximal Rectangle
210 Course Schedule II
26 Remove Duplicates from Sorted Array
68 Text Justification
221 Maximal Square
274 H-Index
404 Sum of Left Leaves
25 Reverse Nodes in k-Group
234 Palindrome Linked List
689 Maximum Sum of 3 Non-Overlapping Subarrays
80 Remove Duplicates from Sorted Array II
168 Excel Sheet Column Title
261 Graph Valid Tree
265 Paint House II
275 H-Index II
410 Split Array Largest Sum
525 Contiguous Array
674 Longest Continuous Increasing Subsequence
572 Subtree of Another Tree
578 Get Highest Answer Rate Question
637 Average of Levels in Binary Tree
642 Design Search Autocomplete System
653 Two Sum IV – Input is a BST
673 Number of Longest Increasing Subsequence
535 Encode and Decode TinyURL
Vanguard's Two-Fund Portfolio Just Had Its Best Decade
Here is the link.
I like to highlight those terms I should learn, and also I like to learn how to read financial article like this.
If it feels like diversifying beyond a simple moderate portfolio that owns one U.S. stock index fund and one U.S. bond index fund has been a fool's errand over the past decade, there's good reason for that. Vanguard Balanced Index had its best decade of risk-adjusted returns since it launched in 1992, and it invests in just two broad U.S. index funds. To be fair, seven of the 153 funds in the allocation--50% to 70% equity Morningstar Category had as good or slightly better risk-adjusted returns over the decade, so there was some room for improvement, but it has still been a fantastic time for simplicity.
Vanguard Balanced Index is a moderate-allocation fund that earns a Morningstar Analyst Rating of Gold. It uses 60% of its assets to track the same index that underlies Gold-rated Vanguard Total Stock Market Index and 40% of its assets to track the same index underlying Silver-rated Vanguard Total Bond Market Index.
To measure how great the past decade has been for the fund, we looked at rolling 10-year returns, volatility, and risk-adjusted returns since December 1992, its first full month of returns.
The results showed that the portfolio's 10-year annualized returns of 10.79% over the period ended April 30, 2019, were the third-best out of the 198 rolling 10-year periods we looked at (the best was the 11.69% annualized return for the period ended Feb. 28, 2019, so apologies to readers for being two months late on catching this phenomenon). Not only were the returns in the top 1% of the periods we looked at, but the portfolio's 7.61% annualized standard deviation (a measure of volatility) was the lowest out of the 198 periods (on that front, our timing worked out pretty well!).
Putting those risk and return characteristics together, not only has it been one of the most profitable times for this two-fund portfolio, it's also been the smoothest ride to get there. This translates directly to the fund's risk-adjusted returns, as measured by Sharpe ratio, also being in the top 1% of periods we looked at.
Exhibit 1 shows how the most recent 10-year returns, standard deviation, and Sharpe ratio rank compared with all periods and the average over those periods.

Setting Expectations Going Forward
How long can the good times last? It seems unlikely that the portfolio's unusually smooth ride will continue for the next 10 years, although its volatility can easily stay well below its long-term average for an extended period. Over the past 12 months, however, the fund's standard deviation has already been showing signs of reverting to the mean as macro factors like the U.S.-China trade war and the level of U.S. interest rates have led to increased market volatility. The fund's standard deviation for the 12-months ended April 30, was 10.31%, about one-third higher than it was over the trailing 10-year period.
For its part, Vanguard is also forecasting a return to the mean for the fund's volatility over the next decade. In Vanguard's 2019 economic and market outlook, it forecasts future a median volatility of 16.3% for U.S. equities and 5.3% for U.S. bonds. If the correlation of U.S. stocks and bonds stays near zero, which it was over the previous 10 years, that would translate to annualized volatility of about 9.69% over the next decade for this fund, which is basically equal to the average over all the rolling 10-year periods since the fund launched.
While investors should at least be prepared for higher volatility from the fund going forward, return expectations should also be moderated. Stocks' elevated valuations in the United States after their blistering decade of performance point toward lower expected future returns. The Vanguard Capital Markets Model projects U.S stocks to return between 3% and 5% annualized and U.S. bonds to return between 3% and 4% annualized. If the median range of those forecasts is correct, that would translate to annualized returns of about 3.8% for the fund going forward.
Of course, these are just educated estimates and no one, not even Vanguard, expects to hit their 10-year estimates on the nose. Still, it seems likely the fund's volatility will be higher over the next decade and that returns will be lower. Simple mean reversion points in this direction. Keeping moderated expectations in mind should help investors stick to the strategy over the long term as it is still one of the best passive allocation funds, in our view. After all, the higher volatility and lower returns in U.S. equities and bonds aren't a unique headwind for this fund compared with its peers, which also invest in the same asset classes. Its low costs and thoughtfully designed portfolio of U.S stocks and high-quality bonds should keep it ahead of most rivals, even with more-difficult markets going forward.
The Next Best Alternative?
Investors concerned about lower returns and higher volatility coming from U.S. allocation funds do have a solid alternative in Vanguard LifeStrategy Moderate Growth. It also earns a Gold rating and has a similar risk profile to Vanguard Balanced Index. Vanguard LifeStrategy Moderate Growth invests in the total U.S. stock and bond markets, too, but it distinguishes itself from its sibling through a significant allocation to international stocks and bonds. It allocates 24% of its portfolio to Gold-rated Vanguard Total International Stock Index and 11% to Silver-rated Vanguard Total International Bond Index. That puts its allocation in line with Vanguard's Target Retirement Series, which dedicates 40% of its equity exposure and 20% of its fixed-income exposure to international securities throughout the glide path. The target-date series reflects the firm's best asset-allocation thinking for long-term investing.
The Vanguard Capital Markets Model also paints a rosier picture for more globally diversified portfolios going forward. The model's base case for a globally diversified 60/40 fund over the next decade is 4.9% returns with roughly similar volatility as a U.S.-only 60/40 portfolio. That's still lower returns than a global 60/40 would have returned over the previous decade, but it's potentially more upside without more risk.
Conclusion
Vanguard Balanced Index has had a unique trailing decade of top-decile returns and bottom-decile risk compared with its history. Going forward, both returns and risk are likely to revert closer to their long-term averages. That translates into lower returns and higher risk. The fund remains a standout option in its category, but investors looking for an alternative may find an intriguing option in the more globally diversified Vanguard LifeStrategy Moderate Growth.
I like to highlight those terms I should learn, and also I like to learn how to read financial article like this.
If it feels like diversifying beyond a simple moderate portfolio that owns one U.S. stock index fund and one U.S. bond index fund has been a fool's errand over the past decade, there's good reason for that. Vanguard Balanced Index had its best decade of risk-adjusted returns since it launched in 1992, and it invests in just two broad U.S. index funds. To be fair, seven of the 153 funds in the allocation--50% to 70% equity Morningstar Category had as good or slightly better risk-adjusted returns over the decade, so there was some room for improvement, but it has still been a fantastic time for simplicity.
Vanguard Balanced Index is a moderate-allocation fund that earns a Morningstar Analyst Rating of Gold. It uses 60% of its assets to track the same index that underlies Gold-rated Vanguard Total Stock Market Index and 40% of its assets to track the same index underlying Silver-rated Vanguard Total Bond Market Index.
To measure how great the past decade has been for the fund, we looked at rolling 10-year returns, volatility, and risk-adjusted returns since December 1992, its first full month of returns.
The results showed that the portfolio's 10-year annualized returns of 10.79% over the period ended April 30, 2019, were the third-best out of the 198 rolling 10-year periods we looked at (the best was the 11.69% annualized return for the period ended Feb. 28, 2019, so apologies to readers for being two months late on catching this phenomenon). Not only were the returns in the top 1% of the periods we looked at, but the portfolio's 7.61% annualized standard deviation (a measure of volatility) was the lowest out of the 198 periods (on that front, our timing worked out pretty well!).
Putting those risk and return characteristics together, not only has it been one of the most profitable times for this two-fund portfolio, it's also been the smoothest ride to get there. This translates directly to the fund's risk-adjusted returns, as measured by Sharpe ratio, also being in the top 1% of periods we looked at.
Exhibit 1 shows how the most recent 10-year returns, standard deviation, and Sharpe ratio rank compared with all periods and the average over those periods.

Setting Expectations Going Forward
How long can the good times last? It seems unlikely that the portfolio's unusually smooth ride will continue for the next 10 years, although its volatility can easily stay well below its long-term average for an extended period. Over the past 12 months, however, the fund's standard deviation has already been showing signs of reverting to the mean as macro factors like the U.S.-China trade war and the level of U.S. interest rates have led to increased market volatility. The fund's standard deviation for the 12-months ended April 30, was 10.31%, about one-third higher than it was over the trailing 10-year period.
For its part, Vanguard is also forecasting a return to the mean for the fund's volatility over the next decade. In Vanguard's 2019 economic and market outlook, it forecasts future a median volatility of 16.3% for U.S. equities and 5.3% for U.S. bonds. If the correlation of U.S. stocks and bonds stays near zero, which it was over the previous 10 years, that would translate to annualized volatility of about 9.69% over the next decade for this fund, which is basically equal to the average over all the rolling 10-year periods since the fund launched.
While investors should at least be prepared for higher volatility from the fund going forward, return expectations should also be moderated. Stocks' elevated valuations in the United States after their blistering decade of performance point toward lower expected future returns. The Vanguard Capital Markets Model projects U.S stocks to return between 3% and 5% annualized and U.S. bonds to return between 3% and 4% annualized. If the median range of those forecasts is correct, that would translate to annualized returns of about 3.8% for the fund going forward.
Of course, these are just educated estimates and no one, not even Vanguard, expects to hit their 10-year estimates on the nose. Still, it seems likely the fund's volatility will be higher over the next decade and that returns will be lower. Simple mean reversion points in this direction. Keeping moderated expectations in mind should help investors stick to the strategy over the long term as it is still one of the best passive allocation funds, in our view. After all, the higher volatility and lower returns in U.S. equities and bonds aren't a unique headwind for this fund compared with its peers, which also invest in the same asset classes. Its low costs and thoughtfully designed portfolio of U.S stocks and high-quality bonds should keep it ahead of most rivals, even with more-difficult markets going forward.
The Next Best Alternative?
Investors concerned about lower returns and higher volatility coming from U.S. allocation funds do have a solid alternative in Vanguard LifeStrategy Moderate Growth. It also earns a Gold rating and has a similar risk profile to Vanguard Balanced Index. Vanguard LifeStrategy Moderate Growth invests in the total U.S. stock and bond markets, too, but it distinguishes itself from its sibling through a significant allocation to international stocks and bonds. It allocates 24% of its portfolio to Gold-rated Vanguard Total International Stock Index and 11% to Silver-rated Vanguard Total International Bond Index. That puts its allocation in line with Vanguard's Target Retirement Series, which dedicates 40% of its equity exposure and 20% of its fixed-income exposure to international securities throughout the glide path. The target-date series reflects the firm's best asset-allocation thinking for long-term investing.
The Vanguard Capital Markets Model also paints a rosier picture for more globally diversified portfolios going forward. The model's base case for a globally diversified 60/40 fund over the next decade is 4.9% returns with roughly similar volatility as a U.S.-only 60/40 portfolio. That's still lower returns than a global 60/40 would have returned over the previous decade, but it's potentially more upside without more risk.
Conclusion
Vanguard Balanced Index has had a unique trailing decade of top-decile returns and bottom-decile risk compared with its history. Going forward, both returns and risk are likely to revert closer to their long-term averages. That translates into lower returns and higher risk. The fund remains a standout option in its category, but investors looking for an alternative may find an intriguing option in the more globally diversified Vanguard LifeStrategy Moderate Growth.
Case study: Key large portfolio cost basis - first report
June 23, 2019
It is time for me to explore all features inside TD Ameritrade. Today I came cross another new feature called cost basis. I like to learn the basics first, even though it is so quick to see portfolio valuation up more than 2% in less than a month.
Here is my cost basis for portfolio. I have to manage better my portfolio this time.
Introduction
It is time for me to explore all features inside TD Ameritrade. Today I came cross another new feature called cost basis. I like to learn the basics first, even though it is so quick to see portfolio valuation up more than 2% in less than a month.
Cost basis
Here is my cost basis for portfolio. I have to manage better my portfolio this time.
All transactions are included.
A Facebook exec breaks down the 2 biggest misconceptions about landing a job at the tech giant
Here is the link.
"We really focus on hiring for skills as opposed to experience," Gale said. "We're trying to find the people who are doing interesting things no matter where they are."
"We really focus on hiring for skills as opposed to experience," Gale said. "We're trying to find the people who are doing interesting things no matter where they are."
Instead, he advised focusing on honing your passion and mastering your chosen field.
"If you just focus on that and you become really, really great at it and kind of build a reputation, then I think you're going to have a great chance at landing somewhere like Facebook," he said. "It boils down to being super passionate about what you do, whether it's software engineering or hardware engineering."
Kalinowski adds that it's important for more senior candidates to have specialized skills.
"I don't want to hire an entire team of perfectly well-rounded engineers who can all do the same stuff equally well," she said. "My personal philosophy, which dovetails nicely with the Facebook philosophy, is, I want high points. I'm looking for someone who's shown a particular skill in a certain area."
A Facebook exec explains why she doesn't hire 'the smartest person in the room' — and the questions she asks to weed them out
Here is the link.
• Facebook employees succeed if they have a drive to learn, according toVP of HR Janelle Gale.
• When she's interviewing candidates, she's typically less impressed with people who already consider themselves to be the "smartest person in the room."
• Rather, she's looking for individuals who display intellectual curiosity.
Facebook employees are learners. That's why the most important trait VP of HR Janelle Gale looks for in job candidates is curiosity.
"We look for learners, people who are acquainted to learning fast, are intellectually curious, and constantly looking to expand their knowledge," she told Business Insider. "They're actively seeking feedback and they're open to it."
And, as with any company, hiring the right people is crucial to helping Facebook maintain its culture.
"There's just so much to learn here, no matter if you're an entry level college graduate or if you're top in your field," she said. "Cockiness does not work."
So how does Facebook weed out the know-it-alls? Gale said she'll often ask follow-up questions about projects the individual has worked on, like "What would you have done differently?" or "What did you learn in the process?"
"If someone hesitates for a really long time and can't come up with an answer, or if they spin it so that what they learned actually makes them look good, that tells me that they are closed off to learning," she said.
What she wants from the candidate is a level of vulnerability and reflection, as well as a strong demonstration of intellectual curiosity.
How Facebook decides how much you'll make working there
Here is the article.
"Compensation fairness is a very, very important thing for us," Facebook VP of HR Janelle Gale told Business Insider. "We spend a lot of time making sure it's a very tight system."
"Compensation fairness is a very, very important thing for us," Facebook VP of HR Janelle Gale told Business Insider. "We spend a lot of time making sure it's a very tight system."
How worker pay compares at Facebook, Google, Amazon
Here is the link.
Facebook
Median compensation: $240,430
CEO Mark Zuckerberg's pay: $8,852,366
Note: Zuckerberg's base pay was just $1, but Faceboo (FB)spent nearly $9 million on his security and private planes. Business Insider reported earlier this year that rank-and-file employees don't negotiate their salaries to ensure fairness. Glassdoor recently named Facebook 2018's best place to work.
(Figures according to an April 13 public filing.)
Why I quit Amazon just 5 months after I’ve started
Here is the link.
I like to take some notes from the article. I need to figure out how to take calculated risk. Big risk is not to take enough risk.
Facts:
Time to prepare for online assessment
Time to prepare for onsite
Whiteboard interview
SDE I title -
Negotiation the offer - 30% more
One thing is missing - evaluate the risk of turnover rate first six months, it is very challenge to work there the first two years. Prepare for the worst.
The offer does not matter that much.
Focus on middle term or long term return. Like investment on stock market, invest on USA economy, grow with USA economy. Make a balanced portfolio.
6 reasons why i love being a software engineer
Here is the link.
I also like to write 6 reasons why I love being a software engineer. But first I like to learn from Mayuko how she presents good content, and also she makes things look so easy.
I also like to write 6 reasons why I love being a software engineer. But first I like to learn from Mayuko how she presents good content, and also she makes things look so easy.
310. Minimum Height Trees
This graph algorithm is so interesting. I like to learn from so many good posts on Leetcode.com.
Saturday, June 22, 2019
207. Course Schedule - study code
Here is the post I like to learn from. The diagram the author shared are so clear and it is really a good example for me to learn from.
207. Course Schedule - study code
Here is the code I like to study. I like to improve my C# code by studying from the player - he is my favorite role model on leetcode.com.
684 redundant connection
June 22, 2019
It is time for me to review all graph algorithms and then I can quickly prepare myself better for online code assessment.
I like to practice a few more times on this algorithm. So it is better for me to create a post first, and add my practice one by one.
My two practices are shared in the following:
It is time for me to review all graph algorithms and then I can quickly prepare myself better for online code assessment.
A new post
I like to practice a few more times on this algorithm. So it is better for me to create a post first, and add my practice one by one.
My two practices are shared in the following:
C# solution using union find algorithm implemented using array, here is the link.
C# solution using disjoint set algorithm to solve using Dictionary<Int, HashSet<int>>, here is the link.
Subscribe to:
Posts (Atom)

