<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hari Sapna Nair on Medium]]></title>
        <description><![CDATA[Stories by Hari Sapna Nair on Medium]]></description>
        <link>https://medium.com/@sapna2001?source=rss-be8f627fe81e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*0jawj-nNzHPTA918q5potA.jpeg</url>
            <title>Stories by Hari Sapna Nair on Medium</title>
            <link>https://medium.com/@sapna2001?source=rss-be8f627fe81e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:22:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sapna2001/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Top 5 Consulting Frameworks Every MBA Student Must Know]]></title>
            <link>https://sapna2001.medium.com/top-5-consulting-frameworks-every-mba-student-must-know-1f4ad59105bf?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f4ad59105bf</guid>
            <category><![CDATA[bcg-matrix]]></category>
            <category><![CDATA[porters-5-forces]]></category>
            <category><![CDATA[pestel-analysis]]></category>
            <category><![CDATA[ansoff-matrix]]></category>
            <category><![CDATA[swot-analysis]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 07:31:00 GMT</pubDate>
            <atom:updated>2026-02-28T07:31:00.613Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMDNalrZPInZ2QQItliqvQ.png" /></figure><p>B Schools will teach you many things. How to read a P&amp;L, survive a case interview, and confidently say “let’s take this offline.” But the true superpower MBA teaches you is <strong>Frameworks</strong>. They are the mental scaffolding that turns messy, ambiguous problems into structured, defensible answers. Whether you are prepping for a consulting firm or pitching to a board, these five consulting frameworks are the ones that keep showing up in interviews and in the back of every sharp strategist’s mind.</p><p>From analyzing industry competition with <strong>Porter’s Five Forces</strong> to scanning the macro environment with <strong>PESTLE</strong>, mapping growth opportunities with the <strong>Ansoff Matrix</strong>, managing portfolios with the <strong>BCG Growth Share Matrix</strong>, and grounding every strategy in a solid <strong>SWOT</strong> Analysis, these tools are your blueprint for thinking like a consultant.</p><h3>PESTLE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l_Q8U6HQ1C4qQzHbL1SgIg.png" /></figure><p>Imagine you are a senior strategist at a global electric vehicle company. Your CEO walks into the room and drops a single question on the table,i.e, “Should we enter the Indian market?” The room goes quiet. There are a hundred ways to answer that question, but only one way to answer it well. You open your laptop and start with <strong>PESTLE</strong>.</p><p>You begin with <strong>Politics</strong>. India has been aggressively pushing its EV adoption agenda, offering subsidies and building out a policy framework that favors clean energy. Green flag. Then <strong>Economics</strong>. A fast-growing middle class, rising fuel prices, and improving purchasing power tell you there is a real market here. Another green flag. <strong>Socially</strong>, urban Indians are becoming increasingly conscious about pollution and fuel costs, especially in cities like Delhi and Bangalore. The sentiment is shifting.</p><p>Then you hit <strong>Technology</strong>. Charging infrastructure is still thin. Range anxiety is real. This is a yellow flag, not a dealbreaker, but something that needs a plan. <strong>Legally</strong>, import duties on EVs are steep, which means local manufacturing is not just preferred, it is necessary. And finally, <strong>Environment</strong>. India’s air quality crisis is well documented, and that pressure is only going to push regulators and consumers further toward cleaner alternatives.</p><p>By the time you close your laptop, you do not just have an opinion. You have a structured, evidence-backed view of the landscape. That is the power of PESTLE.</p><h3>Porter’s Five Forces</h3><p>Now that you know the Indian EV market is worth exploring, your CEO asks a follow-up question. “Sure, the market looks promising, but can we actually win here? How competitive is this space?” You smile. You have another framework for that.</p><p>You pull up <strong>Porter’s Five Forces</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F-eSo5nD8SZ_Ha4efv0PKw.png" /></figure><p>You start with <strong>Competitive Rivalry</strong>. The Indian EV market is already dominated by Tata Motors, with Mahindra and a handful of startups nipping at its heels. International players are circling too. The rivalry is fierce and only getting fiercer. This is not a market you walk into casually, and hence, the <strong>Competitive Rivalry is High</strong>.</p><p>Then you look at the <strong>Threat of New Entrants</strong>. The barriers to entry are moderate. Building an EV requires significant capital, technology, and a supply chain, but India’s government is actively inviting foreign investment. More players will come. You cannot build a moat based on exclusivity alone; hence, the<strong> Threat of New Entrants is Medium</strong>.</p><p>Next is the <strong>Threat of Substitutes</strong>. Traditional petrol and diesel vehicles are still the dominant choice for most Indian consumers. Two-wheelers and public transport are also strong alternatives, especially in smaller cities. Substitutes are everywhere, which means your value proposition needs to be airtight. Hence, the<strong> Threat of Substitutes is High</strong>.</p><p>Then comes the <strong>Bargaining Power of the Supplier</strong>. Lithium-ion batteries are the heart of every EV, and the global supply chain for battery components is concentrated in a few hands. Suppliers have leverage, and that impacts your margins. This is a risk worth flagging since the <strong>Supplier Power is High</strong>.</p><p>Finally, <strong>Bargaining Power of the Buyer</strong>. Indian consumers are notoriously price sensitive. They will compare every rupee. Fleet operators and large buyers can negotiate hard. <strong>Buyer power is High</strong>, which means your pricing strategy needs to be as sharp as your product.</p><p><strong>Final Industry Analysis </strong>says that the Indian EV market is an attractive opportunity on the surface, but structurally, it is a tough industry to make money in. Four out of five forces are working against you. High rivalry, high buyer power, high supplier power, and strong substitutes mean that only players with deep pockets, a differentiated product, and a localized strategy will survive. Entering this market is not a question of whether the opportunity exists. It is a question of whether you are built to withstand the pressure.</p><p>By the time you finish, you have a vivid picture of the competitive battlefield. Porter’s Five Forces does not just tell you who your competitors are. It tells you where the real pressure is coming from, so you can build a strategy that holds up under fire.</p><h3>Ansoff Matrix</h3><p>Your team has now decided to enter the Indian EV market. The competitive landscape is tough but manageable. Now your CEO walks in with a new challenge. “We are in. But where do we grow from here? Do we double down on what we already have, or do we go after something new?” You nod. This is exactly what the <strong>Ansoff Matrix</strong> was built for.</p><p>The Ansoff Matrix sits on a simple two-by-two grid. On one axis, you have <strong>markets, existing and new</strong>. On the other hand, you have <strong>products, existing and new</strong>. Where those two axes intersect, you find four distinct growth strategies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v9WCUjImNMC_XXoDaJT0RA.png" /></figure><p>You start with <strong>Market Penetration</strong>. Your company already sells a premium EV sedan in Europe and the US. Could you sell the same car in India? Technically, yes, but at that price point, you would be talking to a very small slice of the population. The volume is not there yet. Low risk, but limited upside in the short term.</p><p>Then you look at <strong>Market Development</strong>. What if you took your existing product and targeted a new segment within India, say corporate fleets and ride-sharing operators? These buyers are less price sensitive, purchase in bulk, and care deeply about fuel savings over time. This is a smarter entry point. Same product in a new market with medium risk and strong potential.</p><p>Next is <strong>Product Development</strong>. What if you designed a brand new, affordable EV specifically for the Indian consumer? Smaller, lighter, priced for the middle class, built for Indian road conditions. This is exciting but expensive. You are taking on product risk in a market you are still learning. This has medium to high risk, but enormous long-term upside if you get it right.</p><p>Finally, there is <strong>Diversification</strong>. What if you entered the EV charging infrastructure business in India as well? Solving the range anxiety problem while creating a new revenue stream. This is the boldest move on the grid. It brings a new product to a new market. This has high risk, but potentially game-changing.</p><p>Your recommendation to the CEO is clear. Start with Market Development by targeting corporate fleets, fund the development of an affordable India-specific model in parallel, and keep Diversification on the three-year roadmap.</p><h3><strong>BCG Growth Share Matrix</strong></h3><p>Your company is now gaining traction in India. Corporate fleets are signing up, the affordable EV model is in development, and leadership is buzzing with energy. But then your CFO walks into the room with a spreadsheet and a serious look on her face. “We have four products in our global portfolio and limited capital to invest. We cannot fund everything equally. Where do we put our money?”</p><p>You take a deep breath. It is time for the BCG Growth Share Matrix.</p><p>The <strong>BCG Matrix </strong>is brutally simple, and that is exactly what makes it powerful. It plots your products on a two-by-two grid. On one axis is the <strong>market growth rate</strong>. On the other is <strong>relative market share</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aYj62Io7snO_Dy7ITU9wWQ.png" /></figure><p>You start with the <strong>Stars</strong>. Your flagship premium EV sedan is selling exceptionally well in Europe. It has <strong>high market growth </strong>and a <strong>high market share</strong>. This is your crown jewel. It is generating buzz, winning awards, and pulling in strong revenue. The catch is that the Stars need continued investment to maintain their position. You keep funding this one without hesitation.</p><p>Then you look at the <strong>Cash Cows</strong>. Your hybrid vehicle line has been around for years. The <strong>market for hybrids is maturing</strong>, and <strong>growth has slowed,</strong> but your market share is dominant. It is not glamorous, but it is printing money. You do not invest heavily here. You milk it and use those profits to fund your Stars and Question Marks.</p><p>Next are the <strong>Question Marks</strong>. Your new affordable India-specific EV model sits here. The Indian EV <strong>market is growing rapidly</strong>, but your <strong>market share is still tiny</strong> because the product has just launched. This is your most important strategic decision. Question Marks can become Stars with the right investment, or they can drain resources and go nowhere. The data from your fleet partnerships is encouraging, so you decide to invest aggressively and back this one.</p><p>Finally, there are the <strong>Dogs</strong>. Your electric scooter pilot, launched two years ago in Southeast Asia, has gone nowhere. It has a <strong>low market growth and a low market share</strong>. It is consuming resources and management attention without any real return. The honest answer is to cut it loose, redeploy the capital, and move on. It is never an easy conversation, but the matrix makes it clear.</p><p>That is the BCG Growth Share Matrix in action. It strips away the emotion from portfolio decisions and replaces it with clarity. In a world where capital is finite and every rupee counts, that clarity is everything.</p><h3>SWOT Analysis</h3><p>Your company has now done the hard work. You understand the macro environment, you know the competitive landscape, you have a growth strategy, and you have allocated your capital wisely. But before your CEO signs off on the full India expansion plan, she asks one final question. “Before we go all in, can someone give me the complete picture? The good, the bad, and everything in between?”</p><p>You smile. You have been saving the best for last. You open a fresh page and write four letters at the top. <strong>S. W. O. T.</strong></p><p>The SWOT Analysis is one of the most powerful tools for grounding a strategy in reality. It forces you to look inward and outward at the same time, mapping what you control against what the world is throwing at you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-4LGzUTfgq5uHSdmCHl2A.png" /></figure><p>You start with <strong>Strengths</strong>. Your company has world-class EV technology, a globally recognized brand, and a proven track record of building vehicles that people love. You have deep pockets, an experienced leadership team, and a growing network of fleet partnerships in India that give you a head start over most new entrants.</p><p>Then you move to <strong>Weaknesses</strong>. You are late to the Indian market. Tata Motors has a head start and strong brand loyalty among Indian consumers. Your supply chain is heavily dependent on imported battery components, which exposes you to currency risk and supply disruptions. And your leadership team has limited on-the-ground experience in India, which means there will be a learning curve.</p><p>Next are the <strong>Opportunities</strong>. The Indian government is offering significant incentives for EV manufacturers. The middle class is expanding rapidly, and the appetite for cleaner and smarter vehicles is growing. Charging infrastructure is being built out at an accelerating pace. And your Question Mark product, the affordable India-specific EV, has the potential to become a category-defining product if you move fast enough.</p><p>Finally, the <strong>Threats</strong>. Competition is intensifying with both domestic and international players eyeing the same opportunity. Battery raw material prices are volatile and could compress margins. Regulatory policies, while currently favorable, could shift with a change in government. And consumer adoption, while growing, is still fragile and heavily dependent on infrastructure catching up.</p><p>You lay the completed SWOT on the table. Your CEO looks at it for a long moment. The strengths are real, the opportunities are significant, the weaknesses are manageable, and the threats are known. No surprises are hiding in the shadows. That is exactly what a good SWOT Analysis is supposed to do. It does not decide for you. It makes sure you are deciding with your eyes wide open.</p><h3><strong>Conclusion</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3q0L68OrOlxfGRR9NWoXFQ.png" /></figure><p>Five frameworks. One story. That is the beauty of consulting thinking. None of these tools exists in isolation. The best strategists use them in sequence, each one building on the last, until a complex and ambiguous problem becomes a clear and confident decision.</p><p><strong>PESTLE</strong> tells you if the <strong>environment</strong> is right. <strong>Porter’s Five Force</strong>s tells you if the <strong>industry</strong> is worth fighting in. The <strong>Ansoff Matrix </strong>tells you how to <strong>grow</strong>. The <strong>BCG Matrix</strong> tells you where to <strong>invest</strong>. And<strong> SWOT </strong>ties it all together with an honest look in the mirror.</p><p>You do not need to memorize every framework in the textbook. You need to deeply understand the right ones and know exactly when to reach for them. Master these five, and you will walk into any case interview and any strategy meeting with the confidence of someone who knows not just what to think, but how to think.</p><h3><strong>About Me!</strong></h3><p>Sapna is an engineer transitioning into the world of consulting, driven by her passion for solving business problems through a blend of strategy, data, and storytelling.</p><p>Currently a management student at IIM Indore, she is exploring the intersections of technology, product, and business strategy, with a keen interest in creating meaningful and inclusive innovation.</p><p>An avid reader and curious thinker, she is always ready to learn and connect with new people!</p><p>I hope this blog post on frameworks feels a little less like textbook theory. If you have thoughts, disagreements, or frameworks you swear by, drop them in the comments.</p><p>Feel free to get in touch with me over <a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong>.</strong></p><p>And if you liked this blog post, hit the clap button as it motivates me to write more &amp; better. More blogs like this one are on the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f4ad59105bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Ninth Drawer: The Drawer That Shouldn’t Open]]></title>
            <link>https://sapna2001.medium.com/the-ninth-drawer-the-drawer-that-shouldnt-open-392cb190cfe3?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/392cb190cfe3</guid>
            <category><![CDATA[suspense]]></category>
            <category><![CDATA[psychological-thriller]]></category>
            <category><![CDATA[shorthorrorstory]]></category>
            <category><![CDATA[supernatural-suspense]]></category>
            <category><![CDATA[thriller]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Wed, 18 Jun 2025 18:31:39 GMT</pubDate>
            <atom:updated>2025-06-18T18:31:39.750Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fl_LqkLO99a6l_5d" /><figcaption>Photo by <a href="https://unsplash.com/@danielle_dolson?utm_source=medium&amp;utm_medium=referral">Danielle Dolson</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Manyata hated rainy nights. The constant tapping on the windows made her feel like someone — or something — was trying to get in, waiting for her to let her guard down. That night, the rain came down in heavy sheets, thick enough to blur the old streetlights outside her grandmother’s home. She hadn’t planned to stay this long, but work emails piled up and her phone’s battery gave up in the storm. So, reluctantly, she remained.</p><p>Her grandmother’s house smelled like mothballs and secrets. It had stood for over eighty years at the edge of Wayanad’s forests, where stories of spirits and shadows were whispered more often than prayers. Manyata didn’t believe in such things. She was a data analyst. Everything had patterns.</p><p>Still, something felt wrong.</p><p>She was alone. Her grandmother had passed away two weeks ago. The funeral was quiet, almost too quiet for someone who had been known for her stories and songs. Manyata had been named executor of her estate, but the house was old, filled with oddities, and an uncomfortable silence.</p><p>She had only returned that night to collect a few documents and jewelry her grandmother had set aside for her. A small iron key with a paper tag had been found in the will’s envelope. In delicate Malayalam, the tag read: <em>&quot;Ninth drawer.&quot;</em> Nothing else.</p><p>That was the strange part—there was no reference to where the drawer was.</p><p>By 11:11 PM, Manyata had checked every chest, cupboard, and table in the house. Most furniture had far fewer than nine drawers. She was beginning to think the key was a joke.</p><p>Then she remembered the attic.</p><p>The stairs creaked as she ascended, flashlight flickering with dying strength. At the top, the attic door resisted, swollen with age and dampness. She pushed harder. Dust spiraled in the beam of her flashlight as the door swung open.</p><p>It looked like a museum of forgotten things—wooden trunks, old dolls, books with spines gnawed by time. The smell of camphor was almost overwhelming.</p><p>Her light swept over a massive wooden desk in the far corner. It had nine drawers.</p><p>Her breath caught.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QwLVpIMyFFZ8X2Yv" /><figcaption>Photo by <a href="https://unsplash.com/@dbeamer_jpg?utm_source=medium&amp;utm_medium=referral">Drew Beamer</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>She knelt before it. The first drawer opened easily. Inside were faded black-and-white photographs—people she didn’t recognize. The second held dried flower petals. The third, a stack of newspaper clippings about missing villagers from the 1970s.</p><p>By the time she reached the eighth drawer, her hands were trembling. It was filled with letters addressed to her grandmother, from people who never received replies. Pleas for help. Mentions of visions. Whispers of <em>“It’s watching me again.”</em></p><p>She stared at the final drawer.</p><p>The ninth.</p><p>There was no keyhole.</p><p>Frowning, Manyata held up the iron key. It was thin, with strange carvings. She traced her fingers around the drawer’s edge. Nothing. She knocked lightly—and heard a hollow sound. The panel wasn’t solid.</p><p>She took out a small penknife from her backpack and ran the blade along the edges. There—on the right side—was a tiny indent, almost invisible. She inserted the key.</p><p>It turned.</p><p>With a soft click, the drawer slid open by itself.</p><p>Inside was a mirror.</p><p>Just a mirror.</p><p>No coins, no documents, not even a note.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*B-xTsOQFM6T5Vjy1" /><figcaption>Photo by <a href="https://unsplash.com/@giorgiotrovato?utm_source=medium&amp;utm_medium=referral">Giorgio Trovato</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>She lifted it carefully. It was an Aranmula Kannadi. The polished metal surface shimmered without reflection until tilted just right. The frame was carved in aged jackfruit wood — her grandmother’s favorite. On the back, a small brass plate was fixed, etched with her grandmother’s name and the year: <em>1945.</em></p><p>The year the first villager had disappeared.</p><p>Manyata tilted the mirror to look at her reflection and froze.</p><p>The attic behind her looked the same.</p><p>Except for the man standing directly behind her in the mirror.</p><p>She spun around.</p><p>No one.</p><p>Her pulse spiked. She turned back to the mirror. He was still there, tall, with black eyes, staring directly at her through the glass.</p><p>Suddenly, the flashlight flickered and died.</p><p>Manyata stumbled backward. The mirror fell from her hands.</p><p>It didn’t shatter.</p><p>Instead, the glass began to ripple, like water disturbed by a drop.</p><p>A whisper floated through the attic, her grandmother’s voice the way it had sounded in childhood — gentle, steady, full of bedtime tales and half-remembered lullabies.</p><p><em>“You opened it, child.”</em></p><p>Then silence.</p><p>The mirror went still.</p><p>Manyata backed away slowly, heart thudding. She locked the drawer again and ran down the stairs without looking back. She didn’t sleep that night.</p><p>Over the next week, she tried to rationalize what she saw. Stress. Fatigue. Grief. But the face in the mirror never left her mind.</p><p>On the eighth day, Manyata decided to return to Bangalore. Before leaving, she wrapped the mirror in cloth and placed it in her suitcase.</p><p>That night, she stayed at a hotel near the railway station. At 2:00 AM, she woke to a knock on the door.</p><p>Three knocks.</p><p>She got up, confused. The hallway was silent when she checked the peephole. No one.</p><p>When she turned back into the room, the mirror was on the bed.</p><p>Unwrapped.</p><p>But she had packed it in her suitcase.</p><p>She stared at it. This time, her own reflection stared back — alone.</p><p>She picked it up, angry. Enough of this madness. She opened the balcony door and hurled the mirror down onto the street.</p><p>No sound.</p><p>She leaned over the railing.</p><p>Nothing. No broken pieces. No mirror.</p><p>The street was empty.</p><p>The next morning, the mirror was back in her suitcase. No crack, no scratch.</p><p>Three months later, Manyata resumed her city life. The mirror remained in her flat, but she covered it in heavy cloth. She refused to look at it again.</p><p>But something had changed.</p><p>She couldn’t sleep without hearing whispers. The voice sometimes spoke in Malayalam, sometimes in a tongue she couldn’t place. Lights flickered when she walked past. Her image would stay in reflective surfaces for just a second too long.</p><p>She sought help. Therapists, priests, and even paranormal investigators.</p><p>Nothing helped.</p><p>Then came the call.</p><p>A man claiming to be her grandmother’s old friend — a retired professor of folklore — said he had read about the house in an old estate registry. He wanted to meet. Intrigued, Manyata agreed.</p><p>They met at a small café. The professor was quiet, old, with eyes that darted to shadows.</p><p>“I knew your grandmother,” he said. “And I know what she was guarding.”</p><p>Manyata leaned forward.</p><p>“That mirror was part of a ritual. Your grandmother was the ninth guardian. Each guardian binds the spirit to the mirror for a generation. If the ninth drawer is opened, the binding breaks.”</p><p>She frowned. “What spirit?”</p><p>He hesitated.</p><p>“It’s not a <em>what.</em> It’s a <em>who.</em>”</p><p>He slid a photo across the table.</p><p>Ananya stared.</p><p>It was her own face.</p><p>“You are not Manyata anymore,” he said. “You’re the tenth.”</p><p>She stared at him, blood turning to ice.</p><p>“What do you mean?”</p><p>His eyes filled with pity.</p><p>“Your grandmother didn’t just pass. She sacrificed herself to keep the spirit bound. But now that you’ve opened the drawer…”</p><p>He leaned closer.</p><p>“You died three months ago. The spirit took your place.”</p><p>Manyata laughed. “That’s ridiculous. I’m here. Talking to you.”</p><p>He looked at her, suddenly very sad.</p><p>“No. You’re not.”</p><p>He pulled out a newspaper clipping from his bag. It was dated the night she threw the mirror from the balcony.</p><p><strong>“Young woman found dead outside hotel. Cause unknown.”</strong></p><p>And there it was — her photo.</p><p>The same one she had just seen in the mirror.</p><p><strong>I hope you liked this story 😊.</strong></p><p><strong>If you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>And if you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=392cb190cfe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Burning Bright: A Chef’s Journey Through Failure]]></title>
            <link>https://sapna2001.medium.com/burning-bright-a-chefs-journey-through-failure-b27e7012801a?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b27e7012801a</guid>
            <category><![CDATA[failure]]></category>
            <category><![CDATA[lessons-learned]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[happiness]]></category>
            <category><![CDATA[success]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Thu, 13 Jul 2023 18:36:04 GMT</pubDate>
            <atom:updated>2023-07-13T18:36:04.402Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1f5kZm758F8A6SbRJVg27A.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@sevcovic23?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Petr Sevcovic</a> on <a href="https://unsplash.com/photos/e5Q5vWO55uU?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Once upon a time in a small village nestled between rolling hills lived a young boy named Vinay. Vinay was an ambitious and determined child who dreamed of becoming a renowned chef. He spent countless hours experimenting with flavors, mastering culinary techniques, and immersing himself in the world of gastronomy. His heart brimmed with passion and excitement as he embarked on his culinary journey.</p><p>Vinay decided to participate in a prestigious cooking competition held in the neighboring town. Chefs from far and wide gathered to showcase their culinary skills, hoping to gain recognition and acclaim. Vinay worked tirelessly on perfecting his dish, creating unique flavors and intricate presentations. He envisioned victory, imagining his name being celebrated among the culinary greats.</p><p>The day of the competition arrived, and Vinay nervously stood in front of the judges, surrounded by other incredible chefs. As the judges sampled each dish, analyzing every element, Vinay’s heart raced with anticipation. However, their expressions remained unreadable, and they moved on swiftly after tasting his creation. A sense of disappointment washed over Vinay like a tidal wave. He had hoped for recognition, for validation of his talent, but it seemed that his efforts had fallen short.</p><p>Vinay couldn’t shake off the feeling of failure that weighed heavily upon him. Doubts crept into his mind, taunting him with questions of whether he was truly meant to be a chef. He questioned his skills, his choices, and his dreams.</p><p>Days turned into weeks, and Vinay found himself in a state of despondency. His pots and pans lay idle, and his kitchen remained silent. The once-bustling creativity that fueled his imagination had faded into a disheartening silence.</p><p>One evening, as Vinay sat dejectedly at a park bench, an elderly woman approached him. She was a respected chef in the village, known for her wisdom and experience. She noticed the sadness etched on Vinay’s face and struck up a conversation.</p><p>“What troubles you, young chef?” the woman asked, her voice filled with compassion.</p><p>Vinay sighed and poured out his heart, confessing his perceived failure at the cooking competition. “Maybe I’m just not good enough,” he muttered, his voice tinged with self-doubt.</p><p>The elderly woman smiled kindly and said, “Failure is not the end, my dear boy. It is a stepping stone on the path to success. Every great chef, every accomplished individual, has tasted failure at some point. It is how we respond to failure that defines us.”</p><p>Vinay listened intently, his eyes filled with newfound hope.</p><p>The elderly woman continued, “Remember, the true measure of a chef lies not in the accolades received but in the passion and dedication poured into their dishes. Your worth as a chef is not determined by a single competition but by the fire within you, the love for culinary art that burns bright.”</p><p>Inspired by the woman’s words, Vinay felt a renewed sense of purpose. He realized that failure was not something to be feared but a chance to learn, grow, and evolve. With each recipe he crafted, he embraced his mistakes and transformed them into valuable lessons.</p><p>Months passed, and Vinay found himself immersed in a newfound culinary journey. He cooked with an enthusiasm he had never experienced before, unburdened by the weight of external expectations. He discovered the joy of creating for the sake of creation, infusing his dishes with love and passion without fear of judgment.</p><p>Word of Vinay’s resilience and unwavering passion spread throughout the culinary community. The same competition that had once crushed his spirit announced its next edition, and Vinay decided to give it another try. This time, however, he approached it with a different mindset. He had grown stronger, more resilient, and more attuned to his culinary voice.</p><p>The day of the competition arrived once again. Vinay stood before the judges, his heart filled with confidence and determination. As they tasted his dish, their expressions changed from indifference to delight. They savored each bite, captivated by the harmonious flavors and innovative techniques that Vinay had employed.</p><p>When the results were announced, Vinay’s name resounded through the room. He had won the grand prize, not just for his culinary talent, but for his unwavering spirit and refusal to succumb to failure.</p><p>Vinay’s story became an inspiration to aspiring chefs everywhere. It reminded them that failure was not the end, but a catalyst for growth and resilience. And so, the young boy who once believed he had failed transformed into a chef who knew that failure was merely a stepping stone on the path to greatness.</p><p><strong>I hope you liked this story 😊.</strong></p><p><strong>If you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>And if you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b27e7012801a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discover the Profound Wisdom of the Bhagavad Gita]]></title>
            <link>https://sapna2001.medium.com/discover-the-profound-wisdom-of-the-bhagavad-gita-f4a79f50d484?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f4a79f50d484</guid>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[wisdom]]></category>
            <category><![CDATA[guidance]]></category>
            <category><![CDATA[krishna-arjuna]]></category>
            <category><![CDATA[bhagwat-gita]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Thu, 29 Jun 2023 07:28:17 GMT</pubDate>
            <atom:updated>2023-06-29T07:28:17.693Z</atom:updated>
            <content:encoded><![CDATA[<p>Are you seeking profound insights and practical guidance? Want to explore universal themes and cultivate personal growth? The Bhagavad Gita, an ancient scripture, offers a treasure trove of wisdom that can enrich your life. Here are compelling reasons why reading it at least once is worth considering:</p><h3>Here’s Why You Should Read It</h3><p>1️⃣ Deep Wisdom: Immerse yourself in the timeless wisdom of the Bhagavad Gita, which provides profound insights into the nature of existence, the purpose of life, and the journey towards self-realization. It offers guidance on fundamental questions, inviting you to explore the depths of your spiritual journey.</p><p>2️⃣ Practical Teachings: Find practical teachings within the Gita that can be applied to your everyday life. Discover valuable guidance on overcoming challenges, making decisions, and navigating through the complexities of modern living. Its principles, such as maintaining balance, detached action, and self-discipline, can enhance your ability to thrive.</p><p>3️⃣ Relevance to All: Despite its ancient origins, the Bhagavad Gita addresses universal themes relevant across cultures and time. It delves into topics like the nature of reality, the pursuit of knowledge, and the interplay between action and inaction. Its teachings offer insights that can resonate with people from all walks of life.</p><p>4️⃣ Ethical Framework: Explore the comprehensive ethical framework presented in the Gita, which encourages integrity, compassion, and selflessness. The scripture emphasizes the importance of righteousness, nonviolence, and pursuing higher virtues, providing a guiding compass for ethical decision-making.</p><p>5️⃣ Self-Reflection and Growth: Engage in introspection and self-reflection as you read the Bhagavad Gita. The dialogue between Arjuna and Krishna delves into the depths of the human psyche and our inner struggles. Through reading this scripture, you can gain self-awareness, foster personal growth, and develop a deeper understanding of your nature.</p><p>Embark on a transformative journey with the Bhagavad Gita, unlocking its timeless wisdom to enrich your life. Open your heart and mind to the profound teachings that have captivated seekers for centuries. By exploring its depths, you can find guidance, inspiration, and a deeper connection to the spiritual dimensions of existence.</p><p><strong>If you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>And if you liked this post, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4a79f50d484" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A New Beginning At The Border]]></title>
            <link>https://sapna2001.medium.com/a-new-beginning-at-the-border-59a5bb39358e?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/59a5bb39358e</guid>
            <category><![CDATA[stories]]></category>
            <category><![CDATA[love]]></category>
            <category><![CDATA[romatic]]></category>
            <category><![CDATA[army]]></category>
            <category><![CDATA[love-story-in-english]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Sat, 29 Apr 2023 18:44:00 GMT</pubDate>
            <atom:updated>2023-04-29T18:44:00.295Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*duODR8znjmOj4XrdRB7IXQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@candice_picard?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Candice Picard</a> on <a href="https://unsplash.com/photos/vLENm-coX5Y?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Dimple and Vikram had been married for three years when Vikram was deployed to the border as an army soldier. They had always been deeply in love and had promised never to let distance come between them. They wrote each other letters and talked on the phone as often as possible, but it wasn’t the same as having him home with her.</p><p>One day, Dimple received a phone call that would change her life forever. Vikram had been killed in action near the border. Her heart shattered into a million pieces as she struggled to come to terms with the news.</p><p>The days that followed were a blur of tears and heartache as she tried to imagine a life without Vikram. She found comfort in the letters he had written to her, reading them over and over again until she knew every word by heart.</p><p>As time passed, Dimple found herself drawn to the border where Vikram had lost his life. She would sit for hours on end, watching the sun rise and set, feeling as if Vikram’s presence was still with her.</p><p>It was on one of these trips to the border that Dimple met Karan, another army soldier. He was kind and understanding, and they quickly became friends. They would talk about their experiences in the army and share stories about their loved ones back home.</p><p>As they spent more time together, Dimple began to feel her heart opening up to Karan. She knew that she could never replace Vikram, but she also knew that she didn’t want to be alone forever. They shared a deep connection and understood each other in a way that no one else could.</p><p>One day, as they were sitting together, watching the sunset, Karan turned to her and said, “I know that you loved Vikram with all your heart, and I could never replace him. But I also know that I love you, and I want to spend the rest of my life making you happy. Will you marry me?”</p><p>Dimple was taken aback by his words, but she knew in her heart that Vikram would want her to be happy. She looked into Karan’s eyes and saw the same love and kindness that Vikram had always shown her. She knew that she had found someone special.</p><p>“Yes,” she said, tears streaming down her face. “I will marry you.”</p><p>They were married in a small ceremony near the border where Vikram had lost his life. It was a bittersweet day, filled with love and sadness. Dimple knew that Vikram would always have a special place in her heart, but she also knew that she was ready to start a new chapter in her life.</p><p>As they stood together, watching the sunset, Dimple felt a sense of peace over her. She knew that Vikram was watching over her and that he would be happy to see her happy again.</p><p><strong>I hope you liked this story 😊.</strong></p><p><strong>If you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>And if you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59a5bb39358e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Old Abandoned House]]></title>
            <link>https://sapna2001.medium.com/the-old-abandoned-house-50ec4b424089?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/50ec4b424089</guid>
            <category><![CDATA[ghosts]]></category>
            <category><![CDATA[short-story]]></category>
            <category><![CDATA[adventure]]></category>
            <category><![CDATA[horror]]></category>
            <category><![CDATA[stories]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Sun, 16 Apr 2023 09:47:16 GMT</pubDate>
            <atom:updated>2023-04-16T09:47:16.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Drtf_BVEUxfL3AHTBCmRYQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@priscilladupreez?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Priscilla Du Preez</a> on <a href="https://unsplash.com/photos/QxeCFuH3uNY?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The old abandoned house on the hill had always been a source of fear and mystery for the townspeople. Despite its decrepit appearance, a few brave souls decided to venture inside, curious about the secrets that lay within.</p><p>As they entered the house, a thick fog descended, and the group quickly became disoriented. The creaking of the floorboards echoed through the empty hallways, and an eerie feeling of being watched hung over them.</p><p>One of the group members suddenly vanished without a trace. The others shouted their friend’s name and looked around but couldn’t find him. They kept looking, but they started to hear strange footsteps and murmurs coming from the shadows.</p><p>The group soon realized that they were not alone in the house. The whispers grew louder and more menacing, and the footsteps quickened. Panic set in as they tried to escape, but the doors and windows were all sealed shut.</p><p>As the darkness closed in around them, the group members huddled together, waiting for the inevitable. They knew that they were trapped in the house forever, doomed to join the spirits that haunted its walls.</p><p>Legend had it that the old abandoned house was cursed, and no one who entered ever returned. The townspeople never spoke of the house again, but the memories of the lost souls who had entered its doors would continue to haunt them for generations to come.</p><p><strong>I hope you liked this story 😊.</strong></p><p><strong>If you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>And if you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50ec4b424089" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Rainy Day Adventure]]></title>
            <link>https://sapna2001.medium.com/a-rainy-day-adventure-210dd294f00e?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/210dd294f00e</guid>
            <category><![CDATA[adventure]]></category>
            <category><![CDATA[stories]]></category>
            <category><![CDATA[children-stories]]></category>
            <category><![CDATA[rainy-days]]></category>
            <category><![CDATA[short-story]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Sun, 12 Mar 2023 07:45:58 GMT</pubDate>
            <atom:updated>2023-03-12T07:45:58.199Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7hWq3nWULyafVHvLLZ70w.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/fr/@nadiavalko?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nadia Valko</a> on <a href="https://unsplash.com/photos/gllXcxhd47w?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It was a cloudy, rainy day — the kind of day you want to stay inside with a good book and and a hot cup of tea. But for 10-year-old Ishika, it was a day filled with adventure.</p><p>Ishika had always loved the rain. She cherished how clean and fresh everything smelled, as well as the sound it made as it brushed against the windows. She adored the way it gave the impression that the entire world had been well cleaned.</p><p>On this particular rainy day, Ishika had been looking forward to spending the day indoors with her favorite book, “The Famous Five”. But her plans were quickly derailed when her best friend, Adrija, called to ask if she wanted to come over and play.</p><p>Ishika hesitated for a moment, thinking about how cozy she could be at home, but the thought of spending the day with her best friend won out in the end. She grabbed her raincoat and umbrella and set out on the short walk to Adrija’s house.</p><p>As she walked, she noticed that the rain was getting heavier and the wind was starting to pick up. By the time she reached Adrija’s house, she was soaked through to the bone.</p><p>But she didn’t mind. Adrija’s house was warm and cozy, and the two girls spent the morning playing board games and watching movies. But as the day wore on, they grew restless.</p><p>“We should do something,” Ishika said, looking out the window at the pouring rain.</p><p>Adrija grinned. “I have an idea.”</p><p>She disappeared into her room and emerged a few moments later with two bright yellow raincoats and a pair of rubber boots.</p><p>“Let’s go outside!” she exclaimed.</p><p>Ishika’s eyes widened in surprise. “Outside? In this weather?”</p><p>Adrija nodded, her eyes sparkling with excitement. “Why not? It’ll be an adventure!”</p><p>Ishika hesitated for a second, but she couldn’t help but give in to her friend’s contagious expression. She slipped on the raincoat and boots and followed Ishika out the door.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GcliflOCZSrV-LTXenfKyw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@xavi_cabrera?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Xavi Cabrera</a> on <a href="https://unsplash.com/photos/6bnH1v-IQK0?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The rain was coming down in sheets now, and the wind was howling around them. But the two girls didn’t seem to mind. They splashed through puddles and laughed as the rain drenched them to the skin.</p><p>As they walked, they observed that the gutters were beginning to fill with rainwater, and that the water was pouring like a little river down the street. They ran with the current, attempting to match its speed as they did so.</p><p>But as they turned a corner, they saw that the water had started to overflow onto the sidewalk. They paused for a moment, looking at the rushing water in front of them.</p><p>Adrija grinned again. “Race you to the other side!”</p><p>Before Ishika could protest, Adrija had taken off running, splashing through the water with abandon. Ishika hesitated for a moment longer before taking off after her friend.</p><p>They made it to the other side, breathless and laughing, just as the rain started to ease up. The sun was starting to peek through the clouds, and the world around them was suddenly brighter and more colorful.</p><p>They walked the rest of the way to their house alone, each immersed in her own thoughts. Ishika couldn’t believe how much fun she had had, and how much she had enjoyed being outside in the rain. Just as Adrija had described, it had been an adventure.</p><p>As they reached Adrija’s house, Ishika turned to her friend with a smile.</p><p>“Thanks for today,” she said. “I had a really great time.”</p><p>Adrija grinned back. “Anytime, Ishi. Anytime.”</p><p>And with that, the two girls hugged each other tightly, knowing that they had just shared a special memory that they would cherish for years to come.</p><p><strong>I hope you liked this story 😊.</strong></p><p><strong>If you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>And if you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=210dd294f00e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Trees]]></title>
            <link>https://sapna2001.medium.com/introduction-to-trees-4ced54a378a?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ced54a378a</guid>
            <category><![CDATA[trees]]></category>
            <category><![CDATA[de]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[sad]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Sun, 08 May 2022 05:10:27 GMT</pubDate>
            <atom:updated>2022-05-08T05:10:27.877Z</atom:updated>
            <content:encoded><![CDATA[<p>We have learned data structures like arrays, ArrayList, stacks, queues, etc.? So, what is common between all these data structures?</p><p>They all are linear data structures, i.e., the memory allocation of these data structures is linear. But, in real life, we often do not want the data to be stored linearly. Therefore these data structures can’t be enough for us. In such cases, we make use of the tree data structure.</p><h3>Tree</h3><p>Let us take an example of the folders inside a laptop. Consider, inside the “C drive” of the laptop, we have two folders. One of them is named personal, and the other is named work. The personal folder has three folders inside it, i.e., “Family Pictures,” “Bank Details,” and “Passwords,” whereas the work folder has two folders inside it, “Tasks” and “Team Members.”</p><p>In the example, the personal and work folders are inside the “C drive.” So, the C drive comes first, and it can be called the parent of the personal folder and the work folder. So, this type of data arrangement where hierarchy is involved can be stored using a data structure called the tree data structure.</p><p>The <strong>tree</strong> is a discrete data structure representing hierarchical relationships between individual elements or nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/203/0*i14uamE8lIbH9EYs" /><figcaption><strong>Tree </strong>(Source: <a href="https://www.programiz.com/dsa/trees">https://www.programiz.com/dsa/trees</a>)</figcaption></figure><h3>Important Terminologies</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*VhGOK26vudrVjUe3" /><figcaption><strong>Tree </strong>(Source: <a href="https://www.tutorialspoint.com/data_structures_algorithms/tree_data_structure.htm">https://www.tutorialspoint.com/data_structures_algorithms/tree_data_structure.htm</a>)</figcaption></figure><p><strong>Parent Node:</strong> The node connected to one or many nodes in the next hierarchical level (i.e., the level below this node).</p><p><strong>Child Node:</strong> The node connected to one node in the previous hierarchical level (i.e., the level above it).</p><p><strong>Root Node:</strong> The node at the top of the hierarchy level in a tree with no parent node and all the other nodes descended from it is called the root node.</p><p><strong>Leaf Nodes:</strong> All the nodes that do not have any child nodes are called the leaf nodes. It may or may not necessarily be at the lowest level).</p><p><strong>Ancestors of a Node:</strong> All the nodes from which a particular node is inherited.</p><p><strong>Descendants of a Node:</strong> All the nodes that descend from a particular node. All the nodes in the sub-tree descended from a node are its descendants.</p><p><strong>Sibling:</strong> The nodes that have the same parent are known as siblings.</p><p>Now that you have learned the basics of trees, check out the problems like the <a href="https://leetcode.com/problems/find-largest-value-in-each-tree-row/">largest number in a binary tree</a>, <a href="https://leetcode.com/problems/deepest-leaves-sum/">deepest leaves sum</a>, <a href="https://leetcode.com/problems/sum-root-to-leaf-numbers/">sum tree to leaf numbers</a>, etc, at <a href="https://leetcode.com/">Leetcode</a>.</p><h3>Frequently Asked Questions</h3><p>1. What is a binary tree?</p><p>A binary tree is a unique data structure used for data storage purposes. In this, each node can have a maximum of two children. It has the benefits of both an ordered array and a linked list, as search is as quick as in a sorted array, and insertion or deletion operations are as fast as in the linked list.</p><p>2. What is a generic tree?</p><p>If the maximum number of child nodes of a tree is not fixed and it can have as many child nodes as possible, then it is called a generic tree.</p><p>3. Why is a tree called a non-linear data structure?</p><p>A tree data structure is called a non-linear data structure because it does not store sequentially. It is a hierarchical structure as elements in a tree are arranged on multiple levels.</p><p>4. How can we calculate the height of node x?</p><p>The height of node x can be defined as the longest path from node x to the leaf node.</p><p>That’s it from my side. I hope you found this post useful 😊.</p><p>For reference, check out the <a href="https://github.com/Sapna2001/CryptoTracker">GitHub Repo</a>. Feel free to star this repository ⭐.</p><p>Let’s get connected on <a href="https://github.com/Sapna2001">Github</a>/<a href="https://www.linkedin.com/in/sapna2001/">LinkedIn</a>/<a href="https://sapna2001.github.io/Portfolio/">Website</a>/<a href="https://twitter.com/Sapna_2001">Twitter</a>/<a href="https://www.quora.com/profile/Sapna-191">Quora</a> ;)</p><p><strong>And if you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>If you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ced54a378a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build a CryptoTracker using React]]></title>
            <link>https://sapna2001.medium.com/cryptotracker-using-react-61236abaab77?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/61236abaab77</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-project]]></category>
            <category><![CDATA[crypto-tracker]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 05:44:44 GMT</pubDate>
            <atom:updated>2022-04-01T07:37:30.143Z</atom:updated>
            <content:encoded><![CDATA[<h3>Looking for a quick and clean React project? Try out this CryptoTracker!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kgSOJ8pEhyNXuIC1qEJNLg.png" /><figcaption>CryptoTracker</figcaption></figure><p><a href="https://trackercryptocurrency.netlify.app/">CryptoTracker</a> is a website that displays the real-time value of the top 100 Cryptocurrency along with their price, price change percentage, market cap value, and volume. It also allows the user the search for a particular Coin.</p><p>We will be using React in this project along with the <a href="https://www.coingecko.com/en">CoinGecko API</a>. At the end of this blog, how to deploy this website on GitHub pages will be discussed.</p><p>Now let’s get started 🏃‍♀️.</p><h3>Getting Started</h3><p>To get started, run the following code in your terminal and create the project folder.</p><pre>$ create-react-app crypto-tracker</pre><p>Once done, run these lines in your terminal:</p><pre>$ cd crypto-tracker</pre><pre>$ npm start</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zo3mpR_cNt8D7a3JMQODfw.png" /></figure><p>This is how your React app will look on the localhost server.</p><p>Next, open your project and delete the default contents that App.js comes with.</p><p>Create a component folder to store the various components to be used in the project. The components used are Coin, CoinSearch, CoinTable, Footer, and Navbar. Inside the component folder, create folders for each component. We will discuss each component in detail in the next section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/212/1*_gft3_4p1_EgOQoasXNdwg.png" /><figcaption>src folder</figcaption></figure><h3>App.js and App.css</h3><p>In App.js import all the required components and use them in the appropriate place.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b67b770f8b86b4d53ee6b65a9784e28e/href">https://medium.com/media/b67b770f8b86b4d53ee6b65a9784e28e/href</a></iframe><p>In the body, you can choose an amazing background from <a href="https://uigradients.com/">uiGradient</a>. I have chosen Moonlit Asteroid, you can choose any background of your choice.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/92aef446083122eeb9f89d8485037db5/href">https://medium.com/media/92aef446083122eeb9f89d8485037db5/href</a></iframe><h3>Navbar</h3><p>Inside the Navbar folder, create Navbar.js and Navbar.css files.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/56a1d58f87a838536062ec274e769d23/href">https://medium.com/media/56a1d58f87a838536062ec274e769d23/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c84573c77567ac2cc64222aef450c46e/href">https://medium.com/media/c84573c77567ac2cc64222aef450c46e/href</a></iframe><h3>Coin</h3><p>Inside the Coin folder, create Coin.js and Coin.css files. This is the individual column row.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8a3dcb7465da479c0a50dd2cbe0f606/href">https://medium.com/media/e8a3dcb7465da479c0a50dd2cbe0f606/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/492308a3e14d387fbed0c4f3cf533773/href">https://medium.com/media/492308a3e14d387fbed0c4f3cf533773/href</a></iframe><h3><strong>CoinTable</strong></h3><p>Inside the CoinTable folder, create CoinTable.js and CoinTable.css files. Here we will create a table that will display all the coins. Here we will use axios, a library that serves to create HTTP requests that are present externally.</p><p>In the table we will display the following information: key, name, coin icon, symbol, price, total volume, price change percentage in the last 24hours, market cap, and market rank.</p><p><strong>Note:</strong> The API can be modified for the required currency, number of coins per page, etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5dbeb0867144c4da6f311b5a519ef335/href">https://medium.com/media/5dbeb0867144c4da6f311b5a519ef335/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63cf2c4d1bbcfb2b52d3db256ec67ea7/href">https://medium.com/media/63cf2c4d1bbcfb2b52d3db256ec67ea7/href</a></iframe><h3>CoinSearch</h3><p>Inside the CoinSearch folder, create CoinSearch.js and CoinSearch.css files. In the CoinSearch, a search bar will be present along with the table with the searched coins.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5bfe465b4ae0a3b5df99ed3d90a82e3a/href">https://medium.com/media/5bfe465b4ae0a3b5df99ed3d90a82e3a/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/57cff5652bd61d86e082f2a587678bd5/href">https://medium.com/media/57cff5652bd61d86e082f2a587678bd5/href</a></iframe><h3>Footer</h3><p>Inside the Footer folder, create Footer.js and Footer.css files.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1627590d2ad9718991050f0024d34b77/href">https://medium.com/media/1627590d2ad9718991050f0024d34b77/href</a></iframe><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0cc3e478fc228b74a1ded405b144fe22/href">https://medium.com/media/0cc3e478fc228b74a1ded405b144fe22/href</a></iframe><h3>Deployment</h3><p>Now the Crypto Tracker is ready 🎉. To check out how this looks use the following command:</p><pre>$ npm start</pre><p>We can also easily deploy this website on GitHub pages. The only pre-requisite for this is a <a href="https://github.com/">GitHub </a>account. Let’s see how this is done.</p><p><strong>Step 1: </strong>Add the project to the GitHub repository.</p><p><strong>Step 2: </strong>Open your package.json and add a homepage field for the project.</p><pre>&quot;homepage&quot;: &quot;https://username.github.io/project-name&quot;</pre><p>Here, the “project-name” is the name of the online repository.</p><p><strong>Step 3: </strong>Install gh-pages and add deploy to scripts in package.json.</p><pre>npm install --save gh-pages</pre><p>or</p><pre>yarn add gh-pages</pre><p>Then add the following scripts in your package.json:</p><pre>&quot;scripts&quot;: {</pre><pre>&quot;predeploy&quot;: &quot;npm run build&quot;,</pre><pre>&quot;deploy&quot;: &quot;gh-pages -d build&quot;,</pre><pre>},</pre><p><strong>Step 4: </strong>Deploy the website by running the deploy command.</p><pre>npm run deploy</pre><p><strong>Step 5: </strong>Make sure the GitHub Pages option in your GitHub project settings is set to use the gh-pages branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wCMgo1fn1RM_DL__rymDaQ.png" /></figure><p>Horray!!! Now the website is live.</p><p>Check out the link: <a href="https://sapna2001.github.io/CryptoTracker/">https://sapna2001.github.io/CryptoTracker/</a>.</p><p>That’s it from my side, I hope you found this post useful 😊.</p><p>For reference check out the <a href="https://github.com/Sapna2001/CryptoTracker">GitHub Repo</a>. Feel free to star this repository ⭐.</p><p>Let’s get connected on <a href="https://github.com/Sapna2001">Github</a>/<a href="https://www.linkedin.com/in/sapna2001/">LinkedIn</a>/<a href="https://sapna2001.github.io/Portfolio/">Website</a>/<a href="https://twitter.com/Sapna_2001">Twitter</a>/<a href="https://www.quora.com/profile/Sapna-191">Quora</a> ;)</p><p><strong>And if you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>If you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61236abaab77" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Next Greater Element In An Array]]></title>
            <link>https://sapna2001.medium.com/next-greater-element-in-an-array-90bc7baa7322?source=rss-be8f627fe81e------2</link>
            <guid isPermaLink="false">https://medium.com/p/90bc7baa7322</guid>
            <category><![CDATA[next-greater-element]]></category>
            <category><![CDATA[sde-interview]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[interview-questions]]></category>
            <category><![CDATA[sad]]></category>
            <dc:creator><![CDATA[Hari Sapna Nair]]></dc:creator>
            <pubDate>Fri, 31 Dec 2021 05:41:29 GMT</pubDate>
            <atom:updated>2021-12-31T05:41:29.216Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-CPLaKld1UNb_JcgFK5lgw.png" /></figure><p>This blog will discuss the famous interview problem: find the <strong>Next greater element in an array that has been </strong>previously asked in companies like Amazon, Samsung, Zoho, Payu, etc.</p><p><strong>Problem Statement:</strong> An array of elements is given. The task is to find the next greater for each element in the array. If there is no greater element to the right of the element, then return -1.</p><p><strong>Example:</strong></p><pre><strong>Input</strong>:<strong> </strong>2 1 4 3<br><strong>Output: </strong>4  4 -1 -1</pre><p><strong>Explanation:</strong></p><ul><li>4 is the next greater element after 2.</li><li>4 is the next greater element after 1.</li><li>There is no next greater element after 4, so -1 is printed.</li><li>There is no next greater element after 3, so -1 is printed.</li></ul><p><a href="https://practice.geeksforgeeks.org/problems/next-larger-element-1587115620/1"><em>Recommended: Please try to solve the “ Next Greater Element” on GFG first before moving on to the solution.</em></a></p><p>Now let’s see various approaches to find the next greater element in an array.</p><h3>Brute force approach</h3><p>The outer loop traverses the array from left to right. The inner loop will compare the current element with all the elements to its right until it finds an element greater (in the next greater element function) than the current element. If no such element is present, -1 is printed.</p><p><strong>Steps:</strong></p><ol><li>Traverse the array from left to right in the outer loop.</li><li>Initialize nextGreater with -1.</li><li>In the inner loop, traverse the array through the elements at the right of the current element.</li><li>In the next greater function: if any element greater than the current element is present, the next greater element is obtained.</li></ol><p><strong>Code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3daba3813db8cb13c8a305cb4a5b41b3/href">https://medium.com/media/3daba3813db8cb13c8a305cb4a5b41b3/href</a></iframe><p><strong>Complexity Analysis:</strong></p><ul><li><strong>Time Complexity:</strong> O(n²)as two nested for loops are used.</li><li><strong>Space Complexity: </strong>O(1) as no extra space is required.</li></ul><p>Where “n” is the size of the array.</p><h3>Stack approach</h3><p>In this approach, a <strong>monotonic stack</strong> is used. In the case to find the next greater element, decreasing monotonic stack is used.</p><p>In a <strong>decreasing monotonic stack</strong>, the top element is removed if the element to be inserted is greater than the top element. This procedure is repeated until the monotonic stack becomes empty or the top element is greater than the item to be inserted.</p><p><strong>Steps:</strong></p><ol><li>Initialize a stack and array.</li><li>Traverse the array from the end.</li><li>Update the monotonic stack as explained above.</li><li>Add the next greater element in the array. If the stack is empty, i.e., no element is present, then add -1.</li><li>Add the current element to the stack.</li></ol><p><strong>Code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/68a3a99abdeca3bb97df6fb7e73a81ab/href">https://medium.com/media/68a3a99abdeca3bb97df6fb7e73a81ab/href</a></iframe><p><strong>Complexity Analysis:</strong></p><ul><li><strong>Time Complexity:</strong> O(n) as only a single traversal is required.</li><li><strong>Space Complexity: </strong>O(n) as extra space is required for the stack and array.</li></ul><p>That’s it from my side, I hope you found this post useful 😊.</p><p>Let’s get connected on <a href="https://github.com/Sapna2001">Github</a>/<a href="https://www.linkedin.com/in/sapna2001/">LinkedIn</a>/<a href="https://sapna2001.github.io/Portfolio/">Website</a>/<a href="https://twitter.com/Sapna_2001">Twitter</a>/<a href="https://www.quora.com/profile/Sapna-191">Quora</a> ;)</p><p><strong>And if you have any suggestions, feel free to get in touch with me over </strong><a href="https://www.linkedin.com/in/sapna2001/"><strong>LinkedIn</strong></a><strong> &amp; the comment section is also all yours.</strong></p><p><strong>If you liked this story, hit the clap button as it motivates me to write more &amp; better.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90bc7baa7322" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>