Here is the article. I will spend 10 minutes to read the article.
Ray Dalio, Seth Klarman and Jeremy Grantham - who are they?
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, September 29, 2019
Jeremy Grantham
Here is the wiki article.
Robert Jeremy Goltho Grantham CBE (born 6 October 1938) is a British investor and co-founder and chief investment strategist of Grantham, Mayo, & van Otterloo (GMO), a Boston-based asset management firm. GMO has more than US$118 billion in assets under management as of March 2015.[1] Grantham is regarded as a highly knowledgeable investor in various stock, bond, and commodity markets, and is particularly noted for his prediction of various bubbles.[2] He has been a vocal critic of various governmental responses to the Global Financial Crisis from 2007 to 2010.[3][4] Grantham started one of the world's first index funds in the early 1970s.[5]
In 2011 he was included in the 50 Most Influential ranking of Bloomberg Markets magazine.
My weekly contest ranking concern
Sept. 29, 2019
It is my short research. I found out that I do not have time to work on algorithms on Leetcode.com last 3 weeks. My weekly contest ranking is falling from 13000 to 20000. I need to come out the idea to improve my performance.
I need to find several ideas to work on. One is to study leader board, and figure out why top players and how they work on algorithms. I should study their code every week.
Another thing is to focus on tree algorithm as I do before. Always I can solve any tree algorithm, and also I can solve it in less than 20 minutes.
I can focus on a few more ideas.
Introduction
It is my short research. I found out that I do not have time to work on algorithms on Leetcode.com last 3 weeks. My weekly contest ranking is falling from 13000 to 20000. I need to come out the idea to improve my performance.
Ideas please
I need to find several ideas to work on. One is to study leader board, and figure out why top players and how they work on algorithms. I should study their code every week.
Another thing is to focus on tree algorithm as I do before. Always I can solve any tree algorithm, and also I can solve it in less than 20 minutes.
I can focus on a few more ideas.
My Leetcode profile with metrics
Sept. 29, 2019
It is time for me to push myself work hard. One thing I like to solve more algorithms, and also push myself to solve more often as well. I should push myself outside of my comfortable zone, start to work on more algorithm daily, weekly and monthly. Wishful thinking will not help any one. I have to work on basics, and work on solving an algorithm problem to help me warmup a day, a morning, an afternoon, and an evening.
Here is my profile.
Introduction
It is time for me to push myself work hard. One thing I like to solve more algorithms, and also push myself to solve more often as well. I should push myself outside of my comfortable zone, start to work on more algorithm daily, weekly and monthly. Wishful thinking will not help any one. I have to work on basics, and work on solving an algorithm problem to help me warmup a day, a morning, an afternoon, and an evening.
My profile with metrics
Here is my profile.
My recent submission - Sept. 29, 2019
Sept. 29, 2019
It is time for me to do a short research. How should I push myself to work on algorithm and data structure, so that in 12 months, I can finish 300 algorithm on Leetcode.com. I am lucky in a business, full time job, I can have freedom and push myself hard on problem solving skills.
Here is the log of my recent submissions.
I only worked on six algorithms in three weeks. I definitely think that I should have solved around 30 algorithms for one month.
I need to find ways to push myself. One of ideas is to play Leetcode weekly contest.
What else should I do?
Introduction
It is time for me to do a short research. How should I push myself to work on algorithm and data structure, so that in 12 months, I can finish 300 algorithm on Leetcode.com. I am lucky in a business, full time job, I can have freedom and push myself hard on problem solving skills.
My recent submission
Here is the log of my recent submissions.
I only worked on six algorithms in three weeks. I definitely think that I should have solved around 30 algorithms for one month.
I need to find ways to push myself. One of ideas is to play Leetcode weekly contest.
What else should I do?
Linkedin learning Sept 2019 - weekly progress
Sept. 29, 2019
It is time for me how to do a good project management. I like to work on new technology learning, and I like to read instead of watching videos. But I just need to get ideas what to look into from Linkedin learning course.
I spend some time to watch a few minutes once a while, and then I started to look into related area through Google search. I can learn much quickly by reading and try to find good articles related to the area.
Here is the update from Linkedin Learning.
My interest is called Cordova, Ionic, React Native, Titanium and Xamarin.
Introduction
It is time for me how to do a good project management. I like to work on new technology learning, and I like to read instead of watching videos. But I just need to get ideas what to look into from Linkedin learning course.
My progress report
I spend some time to watch a few minutes once a while, and then I started to look into related area through Google search. I can learn much quickly by reading and try to find good articles related to the area.
Here is the update from Linkedin Learning.
My interest is called Cordova, Ionic, React Native, Titanium and Xamarin.
My Leetcode mark - 426
Sept. 29, 2019
It is time for me to do a short research. What triggers me to work on data structure and algorithm problem solving last week.
I started to play weekly contest on Sept. 21, I experienced joy and happiness. The contest was in Saturday. I followed up next Monday to work on algorithms, and quickly shared my learning on Leetcode.com.
I was busy with other projects and I did not have time to write more codes.
I read one of Google phone screen questions, and then I wrote one tree algorithm in middle of week.
Last Saturday I wrote another two algorithms in weekly contest.
In total, I only wrote less than 5 algorithms. But I like to go back to work hard on coding.
Introduction
It is time for me to do a short research. What triggers me to work on data structure and algorithm problem solving last week.
Track my time
I started to play weekly contest on Sept. 21, I experienced joy and happiness. The contest was in Saturday. I followed up next Monday to work on algorithms, and quickly shared my learning on Leetcode.com.
I was busy with other projects and I did not have time to write more codes.
I read one of Google phone screen questions, and then I wrote one tree algorithm in middle of week.
Last Saturday I wrote another two algorithms in weekly contest.
In total, I only wrote less than 5 algorithms. But I like to go back to work hard on coding.
Will's Jams - My favorite musician
Sept. 29, 2019
I woke up with a headache, and it was Saturday morning. I like to go out and take a walk around Stanley park 10 K. I had chance to spend one hour to see Wills Jams performance. Soaked in sunshine, I danced with the music with kids and their parents. One hour I was so grateful to enjoy the power of musician, how good it is to enjoy the music.
I like to learn one more song to remind me that I have to balance my life, work on algorithm and data structure, fitness, tennis sports, personal finance research. I need to learn how to relax and enjoy life as well.
Introduction
I woke up with a headache, and it was Saturday morning. I like to go out and take a walk around Stanley park 10 K. I had chance to spend one hour to see Wills Jams performance. Soaked in sunshine, I danced with the music with kids and their parents. One hour I was so grateful to enjoy the power of musician, how good it is to enjoy the music.
One more song
I like to learn one more song to remind me that I have to balance my life, work on algorithm and data structure, fitness, tennis sports, personal finance research. I need to learn how to relax and enjoy life as well.
Weekly contest 156 performance report
Sept. 29, 2019
It is my favorite weekly contest. I came back to play weekly contest on Sept. 20, and yesterday I played second time. I found the joy, peace and love in the weekly contest on Sept. 20, 2019. I decide to continue to work on weekly contest.
Here is my performance report. I solved the first two algorithms, and only had 15 minutes left for the third algorithm. I decided to play with wechat and shared my experience with SJTU 1984 group. I started 15 minutes late since I asked help in wechat group for my headache.
Introduction
It is my favorite weekly contest. I came back to play weekly contest on Sept. 20, and yesterday I played second time. I found the joy, peace and love in the weekly contest on Sept. 20, 2019. I decide to continue to work on weekly contest.
My performance
Here is my performance report. I solved the first two algorithms, and only had 15 minutes left for the third algorithm. I decided to play with wechat and shared my experience with SJTU 1984 group. I started 15 minutes late since I asked help in wechat group for my headache.
Saturday, September 28, 2019
New Money: The Greatest Wealth Creation Event in History (2019) - Full Documentary
Here is the link.
To learn more about Dr. Steve Sjuggerud’s favorite China investment recommendations right now, go here to get his free investment report http://newmoneymovie.com/invest Why is one misunderstood nation now the source of more millionaires and billionaires than anywhere else on earth? And why does America’s mainstream press ignore this story? Join entrepreneur and legendary investor Steve Sjuggerud, as he explores this mysterious place, and explains how it now offers what he calls: “The Greatest Moneymaking Opportunity of Our Lifetimes.”
To learn more about Dr. Steve Sjuggerud’s favorite China investment recommendations right now, go here to get his free investment report http://newmoneymovie.com/invest Why is one misunderstood nation now the source of more millionaires and billionaires than anywhere else on earth? And why does America’s mainstream press ignore this story? Join entrepreneur and legendary investor Steve Sjuggerud, as he explores this mysterious place, and explains how it now offers what he calls: “The Greatest Moneymaking Opportunity of Our Lifetimes.”
My wechat post about California trip in August 2019
Sept. 28, 2019
It is hard for me to manage wechat posts. I have to post something, since I am doing business with Florida rental home, and I need to get some ideas from my SJTU alumini group on wechat as well.
Introduction
It is hard for me to manage wechat posts. I have to post something, since I am doing business with Florida rental home, and I need to get some ideas from my SJTU alumini group on wechat as well.
My post
10 K walk along the harbor
Sept. 28, 2019
It is time for me to work on my fitness. What I did today was to go out to the water front, and spent time to walk 10 K around the harbor, along the Stanley park.
I like to document the beautiful day I had. I was so gratitude to live close to downtown, and it was so beautiful day. I went out around 10:00 AM, and then spent two hours to watch two shows, each one is one hour. And then I walked around harbor 10 KM and finished around 3:30 PM. I took a bus and then skytrain, went back to home around 5:00 PM.
I like to spend more time outdoor, and also I need to enjoy life, slow down, spend less time inside the house in weekend. I need to work on my fitness, and get close to know Canadian and as a citizen, I like to build good connections to people here.
Introduction
It is time for me to work on my fitness. What I did today was to go out to the water front, and spent time to walk 10 K around the harbor, along the Stanley park.
Beautiful day
I like to document the beautiful day I had. I was so gratitude to live close to downtown, and it was so beautiful day. I went out around 10:00 AM, and then spent two hours to watch two shows, each one is one hour. And then I walked around harbor 10 KM and finished around 3:30 PM. I took a bus and then skytrain, went back to home around 5:00 PM.
I like to spend more time outdoor, and also I need to enjoy life, slow down, spend less time inside the house in weekend. I need to work on my fitness, and get close to know Canadian and as a citizen, I like to build good connections to people here.
How to filter out bad connections in your friends?
Sept. 29, 2019
It is tough topic to write. I think that I should understand how to keep myself open to new friends, but also I have to be careful not to get into influenced by bad connections.
I went through a few years bible teaching. There are a lot of topics related to this area. I will write down a few of them later.
Introduction
It is tough topic to write. I think that I should understand how to keep myself open to new friends, but also I have to be careful not to get into influenced by bad connections.
Bible teaching
I went through a few years bible teaching. There are a lot of topics related to this area. I will write down a few of them later.
Case study: My adoption experience
Sept. 29, 2019
It is a story I like to write and share with young generation. It is hard to tell the story, but it is my real life experience. It is in 2004 and I like to write the story when I have time.
Life is not easy for me at all. I used to make good salary from 1998 to 2001. Stay tuned.
Introduction
It is a story I like to write and share with young generation. It is hard to tell the story, but it is my real life experience. It is in 2004 and I like to write the story when I have time.
My adoption experience
Life is not easy for me at all. I used to make good salary from 1998 to 2001. Stay tuned.
How to fight depression?
Sept. 28, 2019
It is a serious topic. How to fight depression? I am turning 53 years old in less than a month. I should write something serious to help young people to learn mental health, and how to build a good community in my life, and keep working hard to stay positive, stay away from negative people, keep busy working on basic things.
I went to Facebook onsite interview on August 20, 2019, I visited building 27 in MPK, and I met eight engineers and I could tell engineers working there smart and hard working. They are young, and also I think that I may be a great fit for the teams over there. Since I am more open and have tough experience in my life from 2001 to 2018.
I worked full time from 1998 Dec to 2001 Sept. 17. I made over $110,000 dollar net income beside putting aside 401 K $11,000 US dollars. I purchased a condo at lowest price in history, and a brand new car. I spent most of cash away, only has less than $20,000 US dollars saving when I got laidoff in 2001 Sept. 17.
I had first layoff in 2001, just after Sept. 11, 2001. I was laidoff in Sept. 17, 2001. I stayed at home for one year, and then I went back to Florida Atlantic University to attend computer science PH.D. program.
I got laidoff in 2007. And then I went back to China, got F1 visa, continued to work on my Ph.D. study.
I tried to make things work, I got an offer letter in June 2008 but the offer was rescinded. I went to Microsoft onsite in Sept. 2008, and then I should reply immigration letter about missing bank statement with my Canada skilled worker application. But I did not know at all. The application was denied in Nov. 2008, and I was notified by the consultant until Jan. 2009.
I had 45 days to file appeal for leave case. But I had doubts on myself, I did not have confidence on myself and USA economy. I did not know how to regulate my thoughts and feelings. I knew the life was tough for me since I did not have a lot of skills to make a living. It was in 2009, I was 43 years old. My net asset is very low, and a lot of homes in Florida were under water.
Every time I feel not so good, hold grudges, I always know that I fall for wishful thinking. I have to push myself to go out to do exercise, try to lose a few more pounds to stay fit. I have to work on a few more algorithms, if I fail one of them, I will be humble right away. I play Leetcode weekly contest, I will be humble right away, since I still am lazy to test my own code, examine my own code.
Another thing is to live a simple life, enjoy things free, and also try something new. A new project, a new idea to work on, ideas to help make the country and community better.
Do not play emotions. It is better to play more sports. Be a responsible person, and find those people in my life as well, keep good relationship with them.
I start to do research about life, wealth and health. I recently visited one of my classmates back in Florida and he had brain cancer found two months ago. Suddenly I learned that my time is running out, at most I can live another 30 or 40 years.
I also warned him that he should be careful about depression since he could not move left side of body, and tumor is not pressing on his nerve system related to memory. He still has perfect memory about his life experience.
I just started to do research about rich people and difference from middle class. How to find stocks ten bagger, or hundred bagger? I start to read financial report of USA business, such as dollars store business, benefit, how they operate. I start to read a lot of business report from the stores opened, and I have strong interest to figure out ways to double the money through investment.
Introduction
It is a serious topic. How to fight depression? I am turning 53 years old in less than a month. I should write something serious to help young people to learn mental health, and how to build a good community in my life, and keep working hard to stay positive, stay away from negative people, keep busy working on basic things.
Talk about depression
I read the news about a Chinese Facebook engineer story in Sept. 2019 who was in PIP and committed suicide, jumped from top of building 27. I think that depression is a serious issue in highly competitive jobs. How I handle those issues and how to play best as I can?
My motto is to adopt frugal leadership principle. Cut all expenses except needs. Keep minimum wants, build enough wealth until I am confident to make a living first, put other people next and work on my own financial goal first.
I spend time outdoor to meet people, and learn culture, learn business and how it works, work on my personal finance hard. I felt depressed short time in Dec. 2018, I did not know how to solve my personal finance problem. How to build wealth and grow rich? I still could not afford a one-bedroom condo in Canada after working full time 10 years.
I spend time outdoor to meet people, and learn culture, learn business and how it works, work on my personal finance hard. I felt depressed short time in Dec. 2018, I did not know how to solve my personal finance problem. How to build wealth and grow rich? I still could not afford a one-bedroom condo in Canada after working full time 10 years.
I went to Facebook onsite interview on August 20, 2019, I visited building 27 in MPK, and I met eight engineers and I could tell engineers working there smart and hard working. They are young, and also I think that I may be a great fit for the teams over there. Since I am more open and have tough experience in my life from 2001 to 2018.
My own story
I worked full time from 1998 Dec to 2001 Sept. 17. I made over $110,000 dollar net income beside putting aside 401 K $11,000 US dollars. I purchased a condo at lowest price in history, and a brand new car. I spent most of cash away, only has less than $20,000 US dollars saving when I got laidoff in 2001 Sept. 17.
I had first layoff in 2001, just after Sept. 11, 2001. I was laidoff in Sept. 17, 2001. I stayed at home for one year, and then I went back to Florida Atlantic University to attend computer science PH.D. program.
I got laidoff in 2007. And then I went back to China, got F1 visa, continued to work on my Ph.D. study.
I tried to make things work, I got an offer letter in June 2008 but the offer was rescinded. I went to Microsoft onsite in Sept. 2008, and then I should reply immigration letter about missing bank statement with my Canada skilled worker application. But I did not know at all. The application was denied in Nov. 2008, and I was notified by the consultant until Jan. 2009.
I had 45 days to file appeal for leave case. But I had doubts on myself, I did not have confidence on myself and USA economy. I did not know how to regulate my thoughts and feelings. I knew the life was tough for me since I did not have a lot of skills to make a living. It was in 2009, I was 43 years old. My net asset is very low, and a lot of homes in Florida were under water.
How to fight depression?
I do believe that most important is to push myself hard, learn personal finance, learn how to build wealth and grow rich. And also I like to learn tennis sports, I always find myself so good at sports since I have strong muscle and healthy body.Every time I feel not so good, hold grudges, I always know that I fall for wishful thinking. I have to push myself to go out to do exercise, try to lose a few more pounds to stay fit. I have to work on a few more algorithms, if I fail one of them, I will be humble right away. I play Leetcode weekly contest, I will be humble right away, since I still am lazy to test my own code, examine my own code.
Another thing is to live a simple life, enjoy things free, and also try something new. A new project, a new idea to work on, ideas to help make the country and community better.
Actionable Items
I need to look into depression as a science, and then look into detail how to measure depression, how to spot personality weakness, prevent negative people and situation, protect my own interest very carefully and hard working to protect myself financially.Do not play emotions. It is better to play more sports. Be a responsible person, and find those people in my life as well, keep good relationship with them.
Follow up
Oct. 9, 2019I start to do research about life, wealth and health. I recently visited one of my classmates back in Florida and he had brain cancer found two months ago. Suddenly I learned that my time is running out, at most I can live another 30 or 40 years.
I also warned him that he should be careful about depression since he could not move left side of body, and tumor is not pressing on his nerve system related to memory. He still has perfect memory about his life experience.
I just started to do research about rich people and difference from middle class. How to find stocks ten bagger, or hundred bagger? I start to read financial report of USA business, such as dollars store business, benefit, how they operate. I start to read a lot of business report from the stores opened, and I have strong interest to figure out ways to double the money through investment.
How to bounce back from laidoff in 2007?
Sept. 29, 2019
It is almost 12 years since my last laidoff back in 2007. I have a full time job starting from June 15, 2010. It is almost 10 years. How to bounce back from laidoff in 2007?
I like to write down highlights what I have done, and what I learn.
1. I took out $20,000 home equity line in 2007 and I like to make sure that I had funds to support myself to get my I-20 again.
2. I went back to China in January 2008 and spent near two months in China and applied F1 visa.
3. I spent time to live with my sister and my mom in the city of Yichun.
4. I tried to get finance support for my computer science graduate study.
5. I worked on IELTS test preparation for my Canada skilled immigration case from February to July, 2008.
Introduction
It is almost 12 years since my last laidoff back in 2007. I have a full time job starting from June 15, 2010. It is almost 10 years. How to bounce back from laidoff in 2007?
Here is my journey
I like to write down highlights what I have done, and what I learn.
1. I took out $20,000 home equity line in 2007 and I like to make sure that I had funds to support myself to get my I-20 again.
2. I went back to China in January 2008 and spent near two months in China and applied F1 visa.
3. I spent time to live with my sister and my mom in the city of Yichun.
4. I tried to get finance support for my computer science graduate study.
5. I worked on IELTS test preparation for my Canada skilled immigration case from February to July, 2008.
Friday, September 27, 2019
Chapter 12. The future of data system - Data integration - study notes
Sept. 27, 2019
It is the tough job to learn from reading a book. I like to work on a few ideas to see if I can make improvements. One of ideas is to play with the content in the blog, and put together some notes for myself.
I like to cultivate some interest to learn the distributed system. One of ideas is to learn from reading a book.
Introduction
It is the tough job to learn from reading a book. I like to work on a few ideas to see if I can make improvements. One of ideas is to play with the content in the blog, and put together some notes for myself.
Study notes
I like to cultivate some interest to learn the distributed system. One of ideas is to learn from reading a book.
How should I read the book: Design large data intensive application?
Sept. 27, 2019
It is challenge task for me to read the book called "Design large data intensive application". I spent over two hours to read the book, but I evaluated how easy I got distracted on reading the chapter 12, I need to figure out ways to learn.
One of ideas is to print out all reference for the chapter, if I have time, then I can try to read one of reference papers.
Another thing is to copy the paragraph on the word, and then I play with the sentence, try to break into notes I can take in the classroom.
It is easy to get lost just by reading, I like to make it more interactive, and I have to keep my curiosity level in certain level. Otherwise I will not be able to continue to read over an hour.
Introduction
It is challenge task for me to read the book called "Design large data intensive application". I spent over two hours to read the book, but I evaluated how easy I got distracted on reading the chapter 12, I need to figure out ways to learn.
Drills
One of ideas is to print out all reference for the chapter, if I have time, then I can try to read one of reference papers.
Another thing is to copy the paragraph on the word, and then I play with the sentence, try to break into notes I can take in the classroom.
It is easy to get lost just by reading, I like to make it more interactive, and I have to keep my curiosity level in certain level. Otherwise I will not be able to continue to read over an hour.
What are some examples of extremely clever problem solving in the software development world?
Here is my answer. I got a request from a user, so I decided to write an answer to promote one of my favorite algorithm, how I learn to master a tree algorithm.
Thursday, September 26, 2019
1110. Delete Nodes And Return Forest
Sept. 26, 2019
It is the first time I like to try a new algorithm problem in a week. I can feel the nervousness and anxiety first few minutes, but I quickly calmed down and allowed myself to think more carefully. First 5 to 10 minutes I thought about how I could solve it in less than 10 minutes, but I just allowed myself to think about carefully, I wrote the solution and passed online judge first submission. It is so wonderful to experience the whole process.
I also wrote a discussion post, here is the link.
Introduction
It is the first time I like to try a new algorithm problem in a week. I can feel the nervousness and anxiety first few minutes, but I quickly calmed down and allowed myself to think more carefully. First 5 to 10 minutes I thought about how I could solve it in less than 10 minutes, but I just allowed myself to think about carefully, I wrote the solution and passed online judge first submission. It is so wonderful to experience the whole process.
My submission
I also wrote a discussion post, here is the link.
It is a medium level tree algorithm. I chose to write a solution to traverse the tree using preorder, and also one argument is added called TreeNode parent in the recursive function.
Here are highlights of solution:
- Traverse the tree and make sure that each node is visited once;
- List all possible cases to be covered in the algorithm design.
- More on step 2, case 1: Add a node to root nodes, when, what conditions to check.
- More on step 2, case 2: if the node needs to be deleted, it's parent node should be updated to set left or right child to null accordingly.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _1110_delete_nodes_in_forest
{
class Program
{
static void Main(string[] args)
{
var node1 = new TreeNode(1);
var node2 = new TreeNode(2);
var node3 = new TreeNode(3);
var node4 = new TreeNode(4);
var node5 = new TreeNode(5);
var node6 = new TreeNode(6);
var node7 = new TreeNode(7);
node1.left = node2;
node1.right = node3;
node2.left = node4;
node2.right = node5;
node3.left = node6;
node3.right = node7;
var result = DelNodes(node1, new int[]{3, 5});
}
public class TreeNode {
public int val;
public TreeNode left;
public TreeNode right;
public TreeNode(int x) { val = x; }
}
/// <summary>
/// Use level order traversal or depth first search
/// </summary>
/// <param name="root"></param>
/// <param name="to_delete"></param>
/// <returns></returns>
public static IList<TreeNode> DelNodes(TreeNode root, int[] to_delete)
{
if (root == null)
{
return new List<TreeNode>();
}
var nodes = new List<TreeNode>();
var hashSet = new HashSet<int>(to_delete);
runDFS(root, hashSet, nodes, null);
return nodes;
}
/// <summary>
/// Try to cover base case very well
/// empty tree, tree with one node,
/// </summary>
/// <param name="root"></param>
/// <param name="to_delete"></param>
/// <param name="nodes"></param>
/// <param name="parent"></param>
private static void runDFS(TreeNode root, HashSet<int> to_delete, IList<TreeNode> nodes, TreeNode parent )
{
if(root == null)
return;
var isDelete = to_delete.Contains(root.val);
if(parent == null && !isDelete)
{
nodes.Add(root); // add a new subtree
}
if(isDelete)
{
if (parent != null && parent.left == root)
{
parent.left = null;
}
if (parent != null && parent.right == root)
{
parent.right = null;
}
}
var nextParent = isDelete? null : root;
runDFS(root.left, to_delete, nodes, nextParent);
runDFS(root.right, to_delete, nodes, nextParent);
}
}
}
Wednesday, September 25, 2019
Case study: My financial status in 2010
Sept. 25, 2019
I like to work on a short research about my financial status in 2010. It is almost ten years ago, and I try to review my financial status back in 2010. How come I am not smart enough to invest ROSS (stock symbol: ROST) in 2010? I just did a short research and learned that ROST stock soars 11-fold last decade. Here is the blog.
Here is the link to read about my financial status back in 2010.
Introduction
I like to work on a short research about my financial status in 2010. It is almost ten years ago, and I try to review my financial status back in 2010. How come I am not smart enough to invest ROSS (stock symbol: ROST) in 2010? I just did a short research and learned that ROST stock soars 11-fold last decade. Here is the blog.
Case study
Here is the link to read about my financial status back in 2010.
Case study: Tariff increase from 10% to 25%
With the White House threatening to raise the tariffs to 25% from 10% on Jan. 1 if a trade deal isn’t reached, vendors and full-price department stores “have loaded up on goods” from China to protect themselves from the possible increase, Morris said.
But after the holidays, it’s likely those stores will have excess inventory they need to sell quickly ahead of the spring, and TJX “is going to be in a position to go in and buy those products,” he said.
Regardless, TJX expects to keep growing in popularity. “We see an excellent opportunity to grow our store base to a total of 6,100 stores,” Herrman told analysts last month, which would be a 50% increase.
Case study: ROSS stock - 2009 - 2019 - surge 11-fold
Ross Stores Inc., a Dublin, Calif.-based rival in the off-price, branded-merchandise segment, has enjoyed similar success. Ross operates 1,483 Ross Dress for Less stores, including about 380 in California. Its sales hit a record $14.1 billion last year, and its stock price has surged 11-fold over the last decade.
From the article: These stores keep customers coming back for the thrill of the hunt, here is the article.
Sept. 27, 2019
I chose to purchase stock starting from 1999, and then I sold everything in stock market and put in CD in 2009. I filed Canada immigration appeal case and then immigrated in 2010.
In Sept. 2019, I started to work on stock research, I google last 20 years biggest stock success, and then one of stocks is ROSS. My most favorite store all the time from 1996 to 2016. I knew I wasted so much money on clothing starting from 1996. I did my personal finance research from Nov. 2018, and then I got all my citibank statements from 1996 to 2017.
I searched best performance stock from 2010 to 2019, and then I believe that ROSS store stock is by far most rewarding stock.
From the article: These stores keep customers coming back for the thrill of the hunt, here is the article.
Actionable Items
Sept. 27, 2019
I chose to purchase stock starting from 1999, and then I sold everything in stock market and put in CD in 2009. I filed Canada immigration appeal case and then immigrated in 2010.
In Sept. 2019, I started to work on stock research, I google last 20 years biggest stock success, and then one of stocks is ROSS. My most favorite store all the time from 1996 to 2016. I knew I wasted so much money on clothing starting from 1996. I did my personal finance research from Nov. 2018, and then I got all my citibank statements from 1996 to 2017.
I searched best performance stock from 2010 to 2019, and then I believe that ROSS store stock is by far most rewarding stock.
Case study: TJX’s stock price 2009 - 2019 - soar nine-fold
TJX — with annual sales of $36 billion, more than Penney and Kohl’s Corp. combined — has kept growing steadily with only a small online presence. About 2% of TJX’s sales come from e-commerce, analysts estimate.
The company has posted positive annual same-store sales gains — that is, sales at stores open at least one year — for 22 consecutive years amid rapid expansion. Dividends have risen for 21 straight years. While other retailers were shuttering thousands of stores in the last two years, TJX’s store count rose 13% in that span to 4,070 locations worldwide.
The result: TJX’s stock price has soared ninefold over the last decade (after adjusting for its latest 2-for-1 split Nov. 6), compared with a threefold increase in the benchmark Standard & Poor’s 500 index. The stock closed Tuesday at $44.07 a share.
TJX is based in Framingham, Mass., but its largest market is California, where it operated 143 Marshalls stores, 117 T.J. Maxx outlets and 78 HomeGoods stores as of Feb. 3, according to the most recent figures TJX makes available.
From the article: These stores keep customers coming back for the thrill of the hunt, Here is the article.
Why Amazon can't touch Ross and TJMaxx
Here is the article.
Facts:
1. The average item is only $10, and 98% of the stuff in its store is under $30.
2. No e-commerce, no digital shop
Arguments:
3. Opportunistic purchase
4. fashion and markdown risks
5. reacting to what customers want
6. the high costs of online shipping and frequent return rates
7. an off-pricer
Ross, which doesn't have a digital shop, relies on a flexible purchasing strategy to offer top brands at bargain prices, enticing shoppers to head to stores to find clothes they can't buy online.
1. The average item is only $10, and 98% of the stuff in its store is under $30.
2. No e-commerce, no digital shop
Arguments:
3. Opportunistic purchase
4. fashion and markdown risks
5. reacting to what customers want
6. the high costs of online shipping and frequent return rates
7. an off-pricer
Ross, which doesn't have a digital shop, relies on a flexible purchasing strategy to offer top brands at bargain prices, enticing shoppers to head to stores to find clothes they can't buy online.
The average item is only $10, and 98% of the stuff in its store is under $30.
"The place that Ross and TJX occupy is a place that's tough to do online," said Simeon Siegel, a retail analyst at Nomura Group. "I believe Ross is winning because it doesn't have e-commerce, not in spite of it."
Ross calls them "opportunistic purchases." It can either quickly ship the product to shelves to meet in-season looks or pack the products away in warehouses to sell later. Both methods help the company constantly rotate through a wide assortment of styles and fashions.
"They can be more nimble reacting to what customers want," said Moody's senior retail analyst Christina Boni. The business model "reduces fashion and markdown risks that other apparel retailers face."
Despite a healthy economy and a recovery in many Americans' discretionary income since the 2008 recession, widening inequality has created a base of Ross' low and middle-income core shoppers, said John Mercer, a senior analyst at Coresight.
Ross calls them "opportunistic purchases." It can either quickly ship the product to shelves to meet in-season looks or pack the products away in warehouses to sell later. Both methods help the company constantly rotate through a wide assortment of styles and fashions.
"They can be more nimble reacting to what customers want," said Moody's senior retail analyst Christina Boni. The business model "reduces fashion and markdown risks that other apparel retailers face."
Despite a healthy economy and a recovery in many Americans' discretionary income since the 2008 recession, widening inequality has created a base of Ross' low and middle-income core shoppers, said John Mercer, a senior analyst at Coresight.
Ross has argued that the high costs of online shipping and frequent return rates mean it doesn't make sense for Amazon to attack heavy-discount apparel sellers.
"The economics just don't work," Ross' president and chief operating officer, Michael O'Sullivan, told Goldman Sachs analysts last year. "If I was Amazon, I don't think I'd be looking at the off-price space as my big opportunity."
Amazon may have reached a similar conclusion. Analysts see the company operating in clothing as more of a traditional department store rather than an off-pricer.
"Amazon looks to be shifting its focus away from cut-price, third-party-branded offerings with the launch of many more private labels and stronger relationships with brands," Coresight's Mercer said.
Here Are 3 Factors Shaping Ross Stores' (ROST) Upside Story
Here is the article.
I like to write down my notes, and then figure out how to understand the article.
argument:
lucrative investment pick
Facts:
off-price business model
better price management
merchandise initiatives
cost containment
store expansion plans
11th consecutive earnings beat
compelling bargains to value-focused customers
broad-based strength across major merchandise categories
Price, Consensus, EPS surprise -
Fiscal 2018, it bought back 12.5 million shares for $1,075 million.
For fiscal 2019, the company estimates comps growth of 1-2%, with sales likely to increase 5-6%. This compares with comps growth of 4% in fiscal 2018. This along with operating margin and cost deleverage should result in earnings per share of $4.30-$4.50.
I like to write down my notes, and then figure out how to understand the article.
argument:
lucrative investment pick
Facts:
off-price business model
better price management
merchandise initiatives
cost containment
store expansion plans
11th consecutive earnings beat
compelling bargains to value-focused customers
broad-based strength across major merchandise categories
Price, Consensus, EPS surprise -
Fiscal 2018, it bought back 12.5 million shares for $1,075 million.
For fiscal 2019, the company estimates comps growth of 1-2%, with sales likely to increase 5-6%. This compares with comps growth of 4% in fiscal 2018. This along with operating margin and cost deleverage should result in earnings per share of $4.30-$4.50.
Tuesday, September 24, 2019
What if I purchase $10,000 US dollar ROSS stock back in 1999?
Sept. 24, 2019
It is my personal finance research. I am thinking about hard working, but also I am thinking what if I were so smart back in 1999. I purchased brand new Ford Explorer, I frequently shopped on ROSS store, but I never thought about ROSS stock price back in 1999. What if I purchase $10,000 us dollars ROSS stock in 1999?
The stock price of ROSS back in 1999 is around $2.0 dollars. The stock price in Sept. 24, 2019 is $100.00 dollars. 50 times more. If I make the purchase, then I can retire now.
I just could not believe that life can be so easy. I can write code every day, every hour. Just for fun, entertain myself with tough algorithms.
Here is my github folder to show how much I spent on ROSS store around 1999 to 2001. I just could not believe that I was lack of business education, emotional, and impulsive shopping twenty years ago.
Here is the link.
I am looking for ideas how to invest as a 53 years old Chinese Canadian. It is the first year I work on personal finance research. I start to learn that there are so many investment opportunity around our daily life.
I like to take some time to write down my thought process, and later on I can review and see what is the right direction for me to continue my research.
Passive income is definitely a good choice for me. Since I only have limit time to work to exchange time for money. I have a full time job, and also I like to educate myself, do it by myself.
Romans 5:4, CSB: "endurance produces proven character, and proven character produces hope."
Introduction
It is my personal finance research. I am thinking about hard working, but also I am thinking what if I were so smart back in 1999. I purchased brand new Ford Explorer, I frequently shopped on ROSS store, but I never thought about ROSS stock price back in 1999. What if I purchase $10,000 us dollars ROSS stock in 1999?
Case study
The stock price of ROSS back in 1999 is around $2.0 dollars. The stock price in Sept. 24, 2019 is $100.00 dollars. 50 times more. If I make the purchase, then I can retire now.
I just could not believe that life can be so easy. I can write code every day, every hour. Just for fun, entertain myself with tough algorithms.
Here is my github folder to show how much I spent on ROSS store around 1999 to 2001. I just could not believe that I was lack of business education, emotional, and impulsive shopping twenty years ago.
Financial data
Here is the link.
| Ross Stores Historical Annual Stock Price Data | ||||||
|---|---|---|---|---|---|---|
| Year | Average Stock Price | Year Open | Year High | Year Low | Year Close | Annual % Change |
| 2019 | 98.1712 | 83.7800 | 109.3600 | 83.0800 | 108.2400 | 30.10% |
| 2018 | 85.8212 | 80.5000 | 103.3300 | 74.8400 | 83.2000 | 3.68% |
| 2017 | 64.1682 | 65.6100 | 80.9600 | 53.0300 | 80.2500 | 22.33% |
| 2016 | 59.5187 | 54.3700 | 69.5300 | 52.1000 | 65.6000 | 21.91% |
| 2015 | 50.4959 | 46.8650 | 56.5300 | 44.8100 | 53.8100 | 14.17% |
| 2014 | 36.7285 | 37.1350 | 47.1300 | 31.0750 | 47.1300 | 25.80% |
| 2013 | 33.2797 | 27.2200 | 40.8200 | 27.2200 | 37.4650 | 38.53% |
| 2012 | 30.1116 | 23.6450 | 34.9900 | 23.6450 | 27.0450 | 13.80% |
| 2011 | 19.3826 | 15.9700 | 24.4850 | 15.5500 | 23.7650 | 50.29% |
| 2010 | 13.6204 | 10.6725 | 16.4175 | 10.6725 | 15.8125 | 48.09% |
| 2009 | 9.9909 | 7.7025 | 12.1150 | 7.0625 | 10.6775 | 43.66% |
| 2008 | 8.0962 | 6.2525 | 10.3275 | 5.3700 | 7.4325 | 16.27% |
| 2007 | 7.5173 | 7.6225 | 8.7150 | 6.1700 | 6.3925 | -12.73% |
| 2006 | 6.9909 | 7.3600 | 7.8450 | 5.7000 | 7.3250 | 1.38% |
| 2005 | 6.8159 | 6.9300 | 7.6025 | 5.6775 | 7.2250 | 0.10% |
| 2004 | 6.6770 | 6.5325 | 8.2125 | 5.2875 | 7.2175 | 9.11% |
| 2003 | 5.5579 | 5.4038 | 6.9938 | 4.1213 | 6.6150 | 24.84% |
| 2002 | 4.8905 | 4.0838 | 5.8275 | 4.0125 | 5.2988 | 32.14% |
| 2001 | 3.1107 | 2.1013 | 4.1488 | 2.1013 | 4.0100 | 90.05% |
| 2000 | 2.0883 | 2.1638 | 3.0075 | 1.5313 | 2.1100 | -5.91% |
| 1999 | 2.6867 | 2.3988 | 3.2500 | 2.1325 | 2.2425 | -8.89% |
| 1998 | 2.4289 | 2.2581 | 3.1056 | 1.5275 | 2.4613 | 8.25% |
| 1997 | 1.9203 | 1.5625 | 2.6131 | 1.2619 | 2.2738 | 45.52% |
| 1996 | 1.0783 | 0.6172 | 1.6369 | 0.5898 | 1.5625 | 161.38% |
| 1995 | 0.4244 | 0.3322 | 0.6484 | 0.3008 | 0.5978 | 70.02% |
| 1994 | 0.4546 | 0.4103 | 0.5469 | 0.3400 | 0.3516 | -13.46% |
| 1993 | 0.5134 | 0.6291 | 0.7344 | 0.4025 | 0.4063 | -35.42% |
| 1992 | 0.5098 | 0.5041 | 0.6953 | 0.3438 | 0.6291 | 23.89% |
| 1991 | 0.3834 | 0.1875 | 0.5703 | 0.1523 | 0.5078 | 170.83% |
| 1990 | 0.2928 | 0.4416 | 0.4531 | 0.1367 | 0.1875 | -57.89% |
| 1989 | 0.5302 | 0.3281 | 0.7694 | 0.3163 | 0.4453 | 35.72% |
| 1988 | 0.2410 | 0.1406 | 0.3438 | 0.1406 | 0.3281 | 154.74% |
| 1987 | 0.2232 | 0.1563 | 0.3400 | 0.1131 | 0.1288 | -13.21% |
| Sector | Industry | Market Cap | Revenue |
|---|---|---|---|
| Retail/Wholesale | Retail - Discount & Variety | $38.716B | $14.984B |
Actionable Items
I am looking for ideas how to invest as a 53 years old Chinese Canadian. It is the first year I work on personal finance research. I start to learn that there are so many investment opportunity around our daily life.
I like to take some time to write down my thought process, and later on I can review and see what is the right direction for me to continue my research.
Passive income is definitely a good choice for me. Since I only have limit time to work to exchange time for money. I have a full time job, and also I like to educate myself, do it by myself.
Romans 5:4, CSB: "endurance produces proven character, and proven character produces hope."
Subscribe to:
Posts (Atom)













