Thursday, July 12, 2018

Something I never cared about until now!

All highness, FITNESS 

1. Treat your body as the most prized possession. Nourish it! Protect it! Do not over-abuse the gift we have got to travel throughout our life.

2. Eat clean. Food is like fuel. Would you put bad fuel in your car if you know it degrades the performance and harms the engine? I try to avoid as much junk as I can except deserts! I really really have soft corners for them.

3. Exercise daily for 30 minutes. Be it walking, running, yoga, jog whatever suits you. I have started walking daily. Soon I am gonna start morning jogging and slowly try yoga. It takes a lot to come out of the comfort zone and not procrastinate.

Fitness is a lifestyle and addictive once you begin. You would never go back as it feels so good to be the best of yourself. 

Wednesday, July 4, 2018

Books to read on my list!

-->
Head First Design Patterns
Effective Java
Domain Driven Design
Clean Code
Gangs of four design pattern

Tuesday, April 10, 2018

Aloo Paratha

Ingredients: Potato, green chillies, onion, salt, mirchi powder, dhaniya powder, cumin powder, coriander leaves.

1. Boil potatoes and mash it.
2. Add finely chopped onion, chopped green chillies, salt, mirchi powder, little dhaniya powder, cumin powder, coriander leaves and mash it well with the potatoes.
3. Now stuff the above masala in the flour dough and make round parathas.
4. Make it with oil and not ghee, so that it is not very heavy.

Raita - Add chopped onion to the blended curd, salt and cumin powder. 

Wednesday, April 4, 2018

Palak Paneer

Ingredients: Palak, paneer, tomato, garam masala, ghee, salt, mirchi powder

Steps:
1. Boil cleaned Palak for few minutes in an open container or in cooker just for less than 5 minutes.
2. Grind the boiled Palak without adding any water to it.
3. Grate tomato.
4. Boil diced paneer ( or put it in very hot water)
5. Heat ghee in a pan, add grated tomato.
6. Add all the masala except haldi. Add garam masala and then stir.
7. Add grinded Palak and paneer.
8. Let it be there for 2-3 minutes and tada! Yummilicious Palak Paneer is ready.

Trying my hands on something which I never did, until now! Yes, its cooking!!

After getting married to the best person in the world ;) I thought this would be the right time to learn cooking because if I don't learn now, it would be never.! After getting married, my focus was to give my dear hubby lunch and some good dinner. I must say he has a lot of patience as he gulped down the weird food without ever complaining and always telling me that the food was good. I cannot still think of days when I had just started cooking and how I used to make some food which is everything but tasty.

With time, I feel my cooking has improved a lot and I can make good food. So my next few posts would be on my favorite quick recipes which I want to note it down so that I can teach some newbie like I was.! :)

Friday, March 24, 2017

She create smiles

She has high standards. She won’t settle for anything less in life. She expects herself to reach the stars, so she hates herself on the days when she sits in bed with a bag of chips and skips her tasks, or on the days when she doesn’t get enough done.
Of course, no matter how much she accomplishes in life, no matter how much love she gives, she keeps pushing herself further. She wants to do more. To be more. Because she knows she’s capable of more. 
She believes in her potential, and she knows that she hasn’t reached it yet. She trusts that she’ll succeed, and wants to make sure that she’s on the right path.
She’s selective about who she keeps close, so if you’re in her life, you matter. She feels like you deserve the best, so she wants to give you everything. As much happiness as she can.
She takes care of her husband, manages both her families, makes sure everyone is happy. She tries to take her friends on fun nights out and cheer them up after their own life problems. She tries to make her parents proud. And she tries to make herself proud!
She’s a fixer. She’s a giver. She’s an achiever.

Saturday, February 27, 2016

Interview Preparation Questions

1. Find the shortest substring that has atleast M distinct characters. Example: M = 3; Original string: AABBAAC Answer: BAAC

2. Length of the longest substring without repeating characters.

3.  Given a binary tree, check if it is a binary search tree or not.

4. Given n coins for two players playing a game. Each player can pick at least 1 and at most 5 coins in one turn. The player who picks the last coin loses the game. If they play optimally, which player will win the game?


5.  Given a continues stream of number, find the one with maximum occurrence. the same can be used for words as well


6. Least common ancestor in a binary tree - not BST binary tree


7. The handshake problems: one where outside person asks the question and one where the host does.

8. Given a running stream of numbers, find the median for them.

9. Given a string of 0 to n numbers find the missing number.

10. Given 1000 bottles with poison in them, find the minimum number of cats required to find the poison bottle.

11. Given 10 coins with equal number of head and tails, divide them into two groups such that both have the same number of heads and tails 

12. Given  two words find : union , intersection and difference in them

13. Given a list of words, find the prefix for each wrds to uniquely identify them.

14. Reverse a linked list.

15. Find set of continuous elements in array which sum to target.

16. Convert binary tree to double linked list.

17. Find height of tree.

18. Print paths to all leaves in a tree.

19. Get shorted path from one node to another in a graph.

20. Find k nearest element to origin.

21. Find all possible permutations of a string 

22. Convert a number into its word representation.

23. Convert roman numerals string to integer.

24. Validate whether tree is binary or not.

25. Check if string is palindrome

26. Find duplicates in list.

27. Check if string is anagram.

28. Travel n ary tree breadth wise.

29. Find if number is prime or not.

30. N-Queen Problem

31. Stable marriage problem.

32. Given a set of distinct integers, S, return all possible subsets.
      If S = [1,2,3], a solution is:
      [
  [],
  [1],
  [1, 2],
  [1, 2, 3],
  [1, 3],
  [2],
  [2, 3],
  [3],
]
33.  Print Left View of a binary tree.

My mumma's best matar paneer