career

Success is a subjective term. I believe every step you take towards reaching your goal, is success. Once you reach a goal, you set a bigger goal. That’s the way life is.

Here are few things that work for me:

Starve distractions and Stay focused

Ask any wo/man who has succeeded in life and s/he will tell you that one of the most important ingredient was sharp focus. Distractions are anti-catalysts in the journey of success. Study says that it takes an average of 23 minutes and 15 seconds to get back on track after a distraction. A lot of context switches while you are doing something important , affects productivity. Put your phone on silent and try not to look at phone for notifications. Avoid using social media while you are at work. The best solution is to make a habit of checking notifications or messages twice a day.

Choose a hero to look up to

In the life of every person, there is someone who (s)he looks up to. It is the human psychology. We tend to choose a hero whom we appreciate. Why? The reason is obvious. Sometimes, we love the way our hero lives. Sometimes, it is his popularity. Sometimes, it is just because his dreams were what ours is now. He kept on improving each day, each week until one morning he became what he always wanted. And we start seeing the perfect version of ourselves in him. Each time we come across his story and picture, our inner self echoes, “Yes, this is who I would like to be one day”. But just choosing a hero is sufficient? No. The detailed reason is here: Choose your hero, but…

Set smaller goals

Big goals can sometimes be frustrating and frightening. Break them down into smaller steps and work towards them. Not only it will help you with better planning, it will also change your psychology that it is do-able. For example, instead of setting a goal to reduce 50 pounds in a year, strive for 4 pounds a month. Or better, a pound per week.

Choose your company wisely

Be in company of positive minded people. It has been said that you are the average of five people you spend most time with. To succeed, your mind needs to be full of positive vibes.

Don’t be afraid of failures

After failing thousand times, Thomas Edison said, “I didn’t fail. I know thousand ways in which a bulb can’t be made”.

Success is a journey where you just have to be right once. It’s a long process and it requires patience, perseverance, sharp focus and dedication.

Learn from your mistakes

It’s okay to make mistakes as long as you learn from them. Make a mistake once, and it becomes a lesson. Make the same mistake twice, and it becomes a choice.

Get to know why are you doing this (Passion)

Last night I was watching a movie on the life of dancer. Her mentor asked her, “Tell me, why do you dance?” The answer was important for her success, simply because it defined her passion. She had the passion of a bullet. Passion keeps you going no matter how difficult the path is.

Get great mentors

Being in touch with great mentors helps to streamline your vision and get guidance in right direction. I was fortunate to have mentors like Sandeep (GFG Founder), Venki (GFG moderator) and Narasimha Karumanchi, especially Venki with whom I used to discuss technical problems for hours.

If you like this, you might my other posts in Hack your life Archives

Copyright © 2018, Aashish Barnwal,  All rights reserved.

 

Read more

It was a long tiring day. The worst thing about being single is that you can’t share experiences of the day with anyone but pillows. The reader opened a chapter from his favorite book and started reading quietly.

The night was at its peak. Grave silence was blended in the air. The moon was waiting impatiently for Mary near the lake.
“May I ask you something if you don’t mind”, the moon asked the girl. Curiosity was killing him since quite long.
“How do you know that you’ve found the one?”

This was a great question indeed. The reader of the book was longing for the answer since the moment he met his first crush in his early adolescence. He stopped for a moment, took a deep breathe and continued reading.

“I know that you guys don’t like the same music. You have different taste-buds. Your morning habits don’t rhyme with his. While I often see him lost in capturing my reflection in night, you seem to enjoy the silence.
How were you so sure that Peter was the one?”, the moon said with no halt as if he had practiced this many times.

After a pregnant pause, Mary spoke,
“Everything in life has got a purpose and a meaning. Sometimes, It’s important to see things the way they are.
I have learned that some poems don’t rhyme, yet they communicate the fullness of expression. Some trees don’t bear fruits, yet they give shade. Some days are not sunny, yet they are beautiful.
Look at yourself. Even after flaws and imperfections, you are so magnificent and beautiful that famous artists have been carving you in the best of their work since ages.
The starking contrast in our vision and different ways to perceive the same thing made us true companions. We might be different. But together, we are highly potent mixture.”

The reader had finished the chapter. In fact, he liked that part so much that he could never finish the book. “I must have read the story of moon and the girl a hundred times”, he whispered to himself.

Copyright © 2017, Aashish Barnwal,  All rights reserved.
Read more

Clock didn’t tick for long since my first visit to US and I got a chance to visit Redmond again. Another high priority work, short deadline and huge expectations.

August 11, 2017

Hot summer evening and snacks break. A kind of perfect time to gossip about things around you. I was discussing entrepreneurship journey with my friend who was in Hyderabad for a startup conference. His zeal and passion to build something was making me go crazy and it hooked me in no time. Suddenly, my phone rang. It usually flashes name of the person at the other end only when something important comes up. Last time it did was when I had a trip to US and the second time, I got promoted.

“Hey Aashish! How are you doing man?”, my manager asked.

“It’s good”. While I was talking, another thread in my mind was trying to find clue on what might be the reason for this urgent meeting.

“Some urgent work has come up. We have to start on this immediately. Before I tell you the specifics, let me warn you that the timeline is quite aggressive and you have to be really efficient in delivering it. We have carefully chosen two engineers with strong debugging skills who can fix and unblock issues quickly.”, he explained the situation in one deep breathe.

“What is the ETA?”, I asked.

“YESTERDAY”, he smiled. “One thing that can be of your interest is that there is an opportunity to visit Redmond. I know that you love traveling. Based on the peer feedback and the work you have been doing, you have proven yourself to be the guy who gets the work done.”, he continued further.

“You can think over the weekend and tell me if you are interested in taking up this opportunity. I would like if you say yes”, he was done with talking.

Well, I didn’t know if I had a choice to press the NO button. Nevertheless, there were multiple reasons on why I wanted to work in that area. There was high visibility and sole ownership. I wanted to work on something new. Plus visiting Redmond was the icing on the cake. I didn’t need a weekend to make up my mind.

“I see it as a fantastic opportunity from the visibility perspective. I am in”, I was excited.

“Thanks man! I will let you know the dates”, he looked happy.

August 25, 2017

I wrapped up the work I was doing and started getting myself familiar with Applescript, a Mac automation language. 2 weeks later, I came to know the exact date to travel.

In my last visit to US, I missed shooting Seattle the way I wanted because of last minute ticket booking and not bringing the right gear.  Two things I did over the weekend. I started a mail thread in Microsoft Photography Club about the best places to shoot and if anyone wanted to accompany me. Second, I booked tickets in my favorite airlines, Emirates.

Technical bugs can snatch away your happiness. Just before 4 days of travel, I received mail from American Express Travel Agency saying my ticket in Emirates was not booked because of some technical glitch. The front end and back end were not in sync and there was a problem communicating my ticket booking request. What I received was the itinerary and not the flight tickets. They were in continuous talk with Emirates folks for 2 days. But no luck. I, finally booked tickets in British Airways.

Based on recommendations from my friends in company, I created a list of places to shoot in Seattle. The list topped with capturing Space Needle from different view points.

September 1, 2017

“Good morning, Mr Aashish!”, the gorgeous lady at the Checkin counter greeted. “Would you like a more luxurious and comfortable journey.”, she asked and explained the business class etiquette.

“Is it a free upgrade?”

“I’m sorry. But No”

“I think I will do just fine”, the happiness was gone in the split of a second.

The same lady was wandering around after an hour looking for me.

“May I see your boarding pass please”, she asked.

“Is there a problem?”, I asked and handed over my pass to her.

“Not if upgrading is an issue for you. Make sure you travel business next time by yourself”, she smiled.

I couldn’t believe it. Last evening I was reading some blog for free upgrade and their tips worked. This was first time I was traveling with British.

It didn’t feel any different until she asked, “Would you like to have some Champagne sir?”

Their menu never changes

I stayed in the same Marriott hotel I chose last time. I must say, they don’t like a change. Nothing had changed in 8 months. Same California grapes, juicy pineapple and waffles with chocolate chips.

My schedule in US was simple. Wake up at 4:30 in the morning, take hot water bath in bathtub, reach office by 8-8:30. Mornings are best when you want great productivity and efficiency. I got 5 free evenings dedicated to photography.

Day 1 – Kerry Park and Alki beach

I met Vijay, a Microsoft engineer and a wildlife photographer. We planned to shoot sunset at Kerry Park and skyline at Alki beach. It was a sunny day and there were chances to get good drama in sky and Mt Rainier in the behind.

The blue hour beauty

This is another picture from my Space Needle series captured in blue hour. 10 points to those who noticed Mt. Rainier in the background before reading this.You have to be really lucky to capture it from Kerry Park. The day has to be clear and sky has to be smoke free to frame the beauty of Space Needle and Mt. Rainier in one postcard shot. When I was in Seattle, due to some wildfire, whole Seattle was in smoke and haze. Mt. Rainier was visible on only 2 days.

Follow me on Instagram to see more of my work:instagram.com/aashishbarnwal/

Technique:
I took 3 pictures in different exposures when the sun was about to set. One, for the Space Needle, second for the Mt. Rainier, and third for the rest. I then blended these pictures in Photoshop to bring what I witnessed there.

PS: Did you know that Space Needle is the 8th most photographed subject in the world?

Lonely Space Needle under the moon

Kerry Park in Seattle is very famous among photographers for its postcard view of Space Needle. On a good lucky day when the sky is clear, part of Mt. Rainier can be seen too just behind the Space Needle. Vijay and I had planned for shooting sunset, blue hour and of course moon as we were shy of just 3 days from full moon. We reached Kerry 2 hours before sunset and found that there was some construction going on and it was making our frames look not as good as we planned. Making up early there came to our rescue as we were able to grab the best spot to avoid the cranes. We could feel the envy of fellow photographers.
The moon stood high above Space Needle at around 8:30 and I captured two pictures with different exposures, one with the moon in focus and the other with the Needle. I then blended those two pictures in Photoshop to get closer to what I witnessed there. Photography is about patience. We had to wait 4 hours for few good pictures.

Technique used: Exposure bracketing and blending

Day 2 – Waterfront Park

Serenity

This picture reminds me of the serene beauty, I oftentimes wish to visit. The place where there is a bridge and a big lake around. A fusion of man made and nature. Waterfront park in Seattle is quite pictureque and you can’t go wrong anytime in evening. I wanted to shoot sunset, but ended up capturing blue hour as the sky was not dramatic that day because of smoke.

Technique:
I shot two pictures at different exposures, one for the bridge and the railing on right and second for the rest. Due to dark, there was noise in picture which was corrected using longer exposure. I then blended those pictures in Photoshop.

Day 3: Columbia Skyview tower

The Great Wheel teleport

Seattle Great Wheel from 73rd floor of Columbia sky tower looked like a toy. I wondered what would it look like if it were to be teleported. I pulled out 35mm, slowed shutter to 13 seconds at f14 and pano’ed while capturing. It took 20 minutes and multiple shots to bring the wheel to perfection. The result was no less than what we get to see in sci-fi movies.

Technique: Single capture pano.

Day 4: Waterfront park

Waterfront Park was something I fell in love with. I visited there again to shoot the beautiful fountain.

Tomorrowland

Capturing this frame was like a dream come true. Ever since I owned a camera, I had this routine of checking famous photographers’ portfolio and their work. The smooth flow of waterfall and fountains always intimidated me. Their gigantic beauty and mesmerizing views has the power to render anyone spellbound and speechless.
The moment I set foot in Waterfront park in Seattle, I had this composition in mind where the fountain would be in foreground hiding part of Great Wheel in the back. I wanted to shoot sunset. But due to some wildfire, whole Seattle was in smoke and haze. The sunset was very dull and unfortunately there was no drama in the sky. There were two challenges in capturing this picture. One, the wheel rotates every now and then. Two, the wheel changes color thereby casting different color shade onto the fountain. I shot two pictures, one with 25s exposure to give smooth flowing feel to the water and brighten the foreground and the other with 10s exposure to lit the wheel. To make sure this blends in a perfect one picture, I waited for the right moment when wheel was not rotating and there was enough time to capture two pictures without the change in color of lights.
Follow me on Instagram to see more of my work:instagram.com/aashishbarnwal/

Day 5: Gasworks park

Guns in the air

Gasworks Park in Seattle is famous for its cylindrical structures. One can get one of the best views of Skyline there. A part of it looks like big guns pointed to the sky when shot during sunset. This is a composite picture. Birds have been added in Photoshop.

Love birds

Seattle is the most beautiful city I have visited so far. From magnificent skylines to gigantic mountains, from beautiful lake to green valley, from big shopping complexes to small huts, your eyes can never stop wandering. Sunset would make you wonder if this is real. I have just fallen in love with the city. I had plan for visiting Gasworks Park to shoot skyline and the large gas cylindrical structure. What I didn’t know was that it also offers a clean green valley where you can see a lot of couples roaming around. This looked like a perfect spot for photographers and love birds alike. When the sun was about to set and the sky changed its color, I saw this lovely couple holding hands and walking towards the sunset horizon. Although the park was full of people, I got lucky to frame only what I wanted.

The Piano Store

Being a Piano fanatic, I visited Classic Pianos in Bellevue. More than anything, I wanted to own a Piano since quite long. I tried many Pianos, ranging from 5k to 25k dollars. I really liked one from Yamaha and longing to get it.

Photography or Shopping?

Last day in US was annihilated in shopping at Seattle Premium Outlets. It was a tough decision as I wanted to visit the majestic Mt. Rainier and shoot the Paradise and Reflection view points. But due to some wildfire, whole Seattle was in smoke and haze. Parts of Mt. Rainier were closed until the wildfire settled down. I heard that there was some view point which was open and I was desperate to go there. But my friend wanted to buy things for his family. Premium Outlets was 35 miles from our stay and we spent whole day shopping stuffs for our families.

I will visit Mt Rainier for sure in my next trip.

Copyright © 2017, Aashish Barnwal,  All rights reserved. 
Read more

Life can be smarter, better and more efficient by following 3 Cs: Consistency, Choices, Communication. More on these below:

Consistency

Whatever you do, be consistent. Be it waking up in the morning or playing piano or reading a blog.

Choices

The less you involve your brain in thinking about stuffs that don’t add much value, the more you would get to spend time in creative stuffs. Reduce choices in day to day life. Ever wondered what Zuckerberg’s wardrobe looks like? He purchases apparels of same color and design. It helps him keeping focus on important things.

Communication

What is the first thing besides dressing sense you notice in a person you meet first time? We get to know a lot about a person by the way (s)he talks. Communication plays a very important role in your professional and personal fronts. Public speaking is one good thing you would like to master. Watch Ted talks and practice speaking in front of mirror. It would help boost confidence.

Be in company of smarter people

It is said that a person is known by the company (s)he keeps. If you are in company of smarter people, you would get to learn more. A wise man once said, “If you are the smartest person in the room, you’re probably in the wrong room”.

Plan your day in advance

Note down things you want to do before you start your day. Not only this will help you manage your day efficiency, but it will help you remember easily forgettable stuffs. There are things you remember when you are not thinking much, but are easily missed when your have a busy schedule. Example, calling a friend, responding a mail or paying bills

No much TV series

If you are a TV series fanatic, you must be knowing how addictive it can be. It can affect your sleep if you don’t control your addiction. Watch less of series

Time management

Learn to manage time. It would help you achieve more in the same amount of time. More on this can be read here: Manage time like a boss and become more productive

Adapt to the change

Smartness is a continuous process. You need to work towards it each day. In this fast paced agile world, things change rapidly and you must adapt to the change or you would be outdated. Learn a new language or a new skill.

Take a walk and think

When you’re stuck in a problem and no solution seems to strike your creative brain, take a walk and think. It helped me many times in situations where I couldn’t think anything working while sitting in front of a monitor.

Practice

Remember 10,000 rule. The principle holds that 10,000 hours of “deliberate practice” are needed to become world-class in any field. Practice a skill you want to be good at sometime each day.

If you like this, you might like other posts in the Hack your life series.

Copyright © 2017, Aashish Barnwal,  All rights reserved.

 

Read more

If you are wondering how I ended up at Microsoft, well, it’s a long story and if you have got some time, you can read it here:

Journey of a boy from small town to Microsoft – An untold story Part 1

If you like to read about dreams and goals, you might like my journey. I won’t claim it to be inspiring and motivating. Neither would I claim it to be struggling and unique. I will leave it for you to decide. But everyone has a journey and a story to tell. And this my friend, is my journey.

July 15, 2013

Each year when I wake up in the morning and find Facebook reminding me of this very date, I can’t stop myself to feel happy and grateful. I thank god who has graced my life with all the opportunities & happiness and given me an ability to be good at what I do.

4 years it’s been since I joined Microsoft and it feels like it were only yesterday when I wandered the corridors of the humongous campus for the first time. Days bled off into years. I have seen people come. I have seen people leave. Life moves on. Everyone is replaceable.

Continue reading Life of a Microsoft Engineer

Read more

I am a CSE Graduate from KIIT University. I joined Microsoft straight out of college. Usually, Microsoft doesn’t visit there, but that year I got lucky.

2 written tests + 3 F2F technical interviews + 1 Skype technical interview

 

Written test 1 (Objective), 30 minutes

First written test was conducted by some third party company. It consisted of 15 objective questions from C, Sorting, Data Structures, Big O, compiler and state machine. We were given 30 minutes. Cut off was 12 out of 15 questions. 77 out of 400 students made it.

Written test 2 (Coding), 60 minutes

Three problems to be solved in 60 minutes with no use of compiler. One problem on Linked List, second on heap and third on array. I coded all problems from scratch including main method. I also wrote flexible methods that could work on any kind of inputs (instead of deleting nodes from 4 to 6, it would delete nodes between ‘M’ and ‘N’ ) and handle all corner cases. The result was announced after 20 days. 30 out of 77 made it.

F2F Interview #1, 60 minutes

We were interviewed in groups of 6. Each one of us in a group was given same problem to solve. I couldn’t code the perfect solution in an hour. All I had discussed 6 different ways to solve the problem. I was afraid that I might be rejected in first round. The interview lasted for 60 minutes.

14 out of 30 were selected.

Continue reading My interview experience at Microsoft

Read more

My contribution on Quora on cracking technical interviews:

 

  1. What should I do in the next 6 months to get into a company like Amazon/Google?
  2. How do I go about preparing for interviews on GeeksforGeeks?
  3. What are the top 20 websites for interview preparation?
  4. What are some useful websites for a CS student?
  5. How does one become good at problem solving?
  6. Career Cup or GeeksforGeeks?
  7. Should I do competitive programming or learn GeeksforGeeks, from a placement point of view?
  8. Which is the best book to start learning algorithms?
  9. Which books should I refer for data structures in C?
  10. I suck in competitive programming but I wish to make a mark there. I’m improving my skills by practicing on GeeksforGeeks. Is this the right approach?
  11. Should I learn algorithms and data structures in my vacation or learn any other thing? See details.
  12. How many academic projects should be mentioned in the resume while appearing for big companies like Amazon, MS, Adobe by a fresher?
  13. What are your reviews of Data structures and Algorithm made easy by Narasimha Karumanchi? Should it be used and when?
  14. Is it neccessary to put subjects of interest in our resume, we dont get good job at big tech companies if not added?
  15. Do we have to mention our Data structures skills in our resume in subjects of interest part ?
  16. Does the bloggers get paid when they write article on geeksforgeeks?
  17. How can one contribute to GeeksforGeeks and become one of the moderators?
  18. Studying Algorithms and data structures cover similar topics in c,c++ and Java languages?
  19. What is the difference between dynamic programming and recursion?
  20. What is easiest approach to tackle Dynamic programming problems?
  21. How should I explain dynamic programming to a 4-year-old?

Copyright © 2017, Aashish Barnwal,  All rights reserved.

Read more

My interview with GeeksforGeeks: Geek on the top – Aashish Barnwal

My contribution on GeeksforGeeks over the years:

  1. How to prepare for top MNCs?
  2. Implementing Iterator pattern of a single Linked List
  3. Curiously recurring template pattern (CRTP)
  4. Opaque pointer
  5. Factory design pattern
  6. K Dimensional Tree | Set 1 (Search and Insert)
  7. Design an efficient data structure for given operations
  8. Ternary Search Tree
  9. Print unique rows in a given boolean matrix
  10. Implement LRU Cache
  11. Sort numbers stored on different machines
  12. Find the k most frequent words from a file
  13. Given a sequence of words, print all anagrams together | Set 1
  14. Given a sequence of words, print all anagrams together | Set 2
  15. Generate integer from 1 to 7 with equal probability
  16. Graph and its representations
  17. Median of two sorted arrays of different sizes
  18. Iterative Quick Sort
  19. Magic Square
  20. Comparator function of qsort() in C
  21. Copy elision in C++
  22. Playing with Destructors in C++
  23. Casting operators in C++ | Set 1 (const_cast)
  24. DFA based division
  25. Counting Sort
  26. Space and time efficient Binomial Coefficient
  27. Efficient program to calculate e^x
  28. Greedy Algorithms | Set 2 (Kruskal’s Minimum Spanning Tree Algorithm)
  29. Greedy Algorithms | Set 3 (Huffman Coding) – GeeksforGeeks
  30. Greedy Algorithms | Set 4 (Efficient Huffman Coding for Sorted Input)
  31. Greedy Algorithms | Set 6 (Prim’s MST for Adjacency List Representation)
  32. Dynamic Programming | Set 27 (Maximum sum rectangle in a 2D matrix)
  33. Dynamic Programming | Set 28 (Minimum insertions to form a palindrome)
  34. Dynamic Programming | Set 30 (Dice Throw)
  35. Dynamic Programming | Set 31 (Optimal Strategy for a Game)
  36. Dynamic Programming | Set 34 (Assembly Line Scheduling)
  37. Find minimum elements after considering all possible transformations – GeeksforGeeks
  38. Check whether a given graph is Bipartite or not
  39. Maximum of all subarrays of size k (Added a O(n) method)
  40. Linked complete binary tree & its creation
  41. Print all permutations in sorted (lexicographic) order
  42. Lexicographic rank of a string
  43. Union-Find Algorithm | Set 1 (Detect Cycle in a an Undirected Graph)
  44. Measure one litre using two vessels and infinite water supply
  45. Random number generator in arbitrary probability distribution fashion
  46. Iterative Postorder Traversal | Set 1 (Using Two Stacks)
  47. Iterative Postorder Traversal | Set 2 (Using One Stack)
  48. Boundary Traversal of binary tree
  49. An in-place algorithm for String Transformation
  50. Morris traversal for Preorder
  51. Construct Full Binary Tree from given preorder and postorder traversals
  52. Two nodes of a BST are swapped, correct the BST
  53. Check if each internal node of a BST has exactly one child
  54. Largest subarray with equal number of 0s and 1s
  55. Check if a number is Palindrome
  56. Given a number, find the next smallest palindrome
  57. Construct BST from given preorder traversal | Set 1
  58. Construct BST from given preorder traversal | Set 2
  59. Flattening a Linked List
  60. Find the largest multiple of 3
  61. Count numbers that don’t contain 3
  62. Check divisibility by 7
  63. To find sum of two numbers without using any operator
  64. Find a pair with the given difference
  65. Add two numbers represented by linked lists | Set 2
  66. Longest Palindromic Substring | Set 1
  67. Longest Palindromic Substring | Set 2
  68. Count the number of possible triangles
  69. Find the number of islands
  70. Pascal’s Triangle
  71. Stack | Set 1 (Introduction)
  72. Heap Sort

Copyright © 2017, Aashish Barnwal,  All rights reserved.

Read more
Social media & sharing icons powered by UltimatelySocial
Facebook
LinkedIn
SOCIALICON
Instagram
YouTube