Posts

Set 2- Common 20 Interview questions and ans. Data Structures and Algorithms (DSA) with explanations and code

--- 1. Two Sum (Array + Hashing) Problem: Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. def two_sum(nums, target):     hashmap = {}     for i, num in enumerate(nums):         complement = target - num         if complement in hashmap:             return [hashmap[complement], i]         hashmap[num] = i Explanation: We use a hash map to store numbers we've seen and their indices. For each element num, we compute target - num (called complement). If complement is already in the hash map, we found the answer. Time complexity: O(n), Space: O(n) 2. Reverse a Linked List (Linked List) Problem: Reverse a singly linked list. class ListNode:     def __init__(self, val):         self.val = val         self.next = None def reverse_list(head):     prev = No...

Interview questions. Data Structures and Algorithms (DSA). Ten categories. Entry level

In entry-level interviews, especially for software engineering roles, Data Structures and Algorithms (DSA) questions are quite common. Here's a breakdown of the types of DSA questions typically asked: 🔹 1. Arrays and Strings Common Questions: Find the maximum subarray sum (Kadane's Algorithm) Two Sum / Three Sum Rotate an array Merge two sorted arrays Check for anagram or palindrome 🔹 2. Linked Lists Common Questions: Reverse a linked list Detect a cycle in a linked list (Floyd’s cycle detection) Merge two sorted linked lists Find the middle node Remove nth node from end 🔹 3. Stacks and Queues Common Questions: Implement a stack using queues (and vice versa) Next Greater Element Valid Parentheses Min Stack Sliding Window Maximum 🔹 4. Trees and Graphs Common Questions: Inorder, Preorder, Postorder traversal Level-order traversal (BFS) Check if a binary tree is balanced or symmetric Lowest Common Ancestor DFS/BFS in graphs, Cycle detection 🔹 5. Recursion and Backtracking Com...

IIM degree doesn't mean a high salary

 A viral post on Reddit is stirring debate after exposing what it calls the “reality of top 10% placements in new IIMs.” The post dismantles the perceived dream of financial security tied to elite B-school jobs. “Oh, you thought getting into the top 10% of your batch at a new IIM meant you were set for life? Let me pop that dream bubble with my EMI-ridden, Uber Pool-sharing, Maggi-for-dinner reality,” the author wrote. Reality of top 10% placements in new IIM's byu/Aakash2617 inCATpreparation The post lists actual roles and packages seen on LinkedIn, contrasting their impressive cost-to-company (CTC) figures with what really hits the bank account: Amazon Account Manager – 32 LPA: “Except the in-hand is a spicy ₹75,000. Welcome to being broke in style.” Startup with 35 LPA: “20L in shares—I'm sure you'll go public one day! (they won't).” BCG – 19 LPA: “More like 85k a month, and oh? A back office role!” JP Morgan Analyst – 19 LPA: “After taxes and deductions, you’re taki...

Book summary: India@100: Envisioning Tomorrow’s Economic Powerhouse

  Book summary: India@100: Envisioning Tomorrow’s Economic Powerhouse —bringing together the institutional vision of NITI Aayog and the detailed economic roadmap by Krishnamurthy Subramanian ex ISB, IMF. Book Summary: India@100: Envisioning Tomorrow’s Economic Powerhouse Overview India@100 is a compelling vision for India’s centenary year of independence in 2047. With contributions from NITI Aayog, policymakers, and former Chief Economic Advisor Dr. Krishnamurthy Subramanian , the book outlines how India can transform into a $30–55 trillion global economic powerhouse . The vision is built on inclusive growth, sustainable development, digital transformation, and strategic economic reforms. It blends high-level policy direction with granular economic analysis. Core Vision $30–55 Trillion Economy by 2047 India aspires to grow at 7–8% annually, becoming the third-largest economy globally. Inclusive Development Social equality, access to healthcare, education, women’s emp...

How Not to Be Wrong: The Power of Mathematical Thinking** by Jordan Ellenberg. Book summary.

**How Not to Be Wrong: The Power of Mathematical Thinking** by Jordan Ellenberg is a compelling exploration of how mathematical principles underpin everyday decisions and beliefs.  Ellenberg, a mathematician and professor, illustrates that mathematics is not just about numbers but a way of thinking that can help us navigate the world more effectively.  --- 📘 Core Concepts and Themes 1. Mathematics as Common Sense Ellenberg posits that mathematics is an extension of common sense, providing tools to make better decisions.  He emphasizes that mathematical thinking helps us see the world more clearly and avoid being misled by flawed reasoning.  2. Understanding Nonlinearity The book challenges the assumption that relationships are always linear.  Ellenberg explains that many real-world phenomena are nonlinear, and recognizing this can prevent misinterpretation of data and trends.  3. Probability vs. Risk Ellenberg distinguishes between probability (the likelih...

12 ways to maintain work life balance. Set boundaries

Set Boundaries: 12 Powerful Ways to Protect Your Energy and have work life balance (With Real-World Examples and Supporting Data) In today’s hyper-connected workplace, protecting your energy isn’t optional—it’s a strategic necessity. Whether you work in a startup where “hustle” is the culture, or in a large corporation with sprawling demands, boundaries help you stay clear-headed, focused, and emotionally resilient. 1. Limit Distractions What it means: Create dedicated time blocks for deep work, free from pings, meetings, and multitasking. Data: Studies show that it takes 23 minutes on average to refocus after an interruption (University of California, Irvine). Startup Example: Block 2–4 PM as “no Slack zone” time, informing your team lead you’ll check messages after. Large Company Example: Use Outlook’s “Focus Time” feature to avoid back-to-back meetings and improve task completion. 2. Say No What it means: Decline tasks that don't align with your role, values, ...

AI Toolbox for Job Seekers in 2025

The Ultimate AI Toolbox for Job Seekers in 2025: Land Your Dream Job with AI In today’s competitive job market, AI tools are making it easier than ever for job seekers to stand out. From tackling interview anxiety to optimizing resumes and uncovering hidden job opportunities, these tools help you work smarter—not harder. Here’s your curated guide to the top AI job search tools in 2025. --- 1. AI Interview Simulators Practicing for interviews is key to success. These AI-powered platforms simulate real interview scenarios, helping you improve your responses and build confidence. Recommended Tools: InterviewSpark – Realistic mock interviews with feedback. Pramp – Peer-to-peer practice with AI-driven insights. FinalRound AI – Simulates final-stage interviews. Mockmate – Prepares you for both behavioral and technical interviews. Tip: Practice common questions like "Tell me about yourself" and "What’s your biggest weakness?" to refine your delivery. --- 2. AI Job Discover...