Developer Coder
Developer Coder
  • 283
  • 10 017
Step-By-Step Directions From a Binary Tree Node to Another | Leetcode 2096 | Java | Developer Coder
In this video, we tackle the LeetCode problem "Step-By-Step Directions From a Binary Tree Node to Another" (Leetcode 2096). We'll walk through the Java solution step-by-step, explaining the logic and code in detail. If you're preparing for coding interviews or simply want to improve your problem-solving skills, this video is perfect for you! 🚀
👨‍💻 Java Solution:
We'll start by understanding the problem statement and constraints. Then, we'll dive into the Java implementation, breaking down each part of the code to ensure you grasp the solution fully. By the end of this video, you'll have a clear understanding of how to solve this problem using Java. 💻
📝 What's Covered:
Problem analysis and approach
Step-by-step coding in Java
Explanation of key concepts
Tips and tricks for similar problems
👍 Why Watch?
Improve your coding skills
Learn effective problem-solving techniques
Get ready for coding interviews with top companies
📢 Don't forget to like, share, and subscribe to DEVELOPER CODER for more LeetCode solutions and coding tips!
#Google #Microsoft #Apple #Amazon #Facebook #IBM #Oracle #Cisco #Intel #Dell #HP #Adobe #Salesforce #SAP #NVIDIA #Tencent #Alibaba #Sony #Netflix #Baidu #Xiaomi #Qualcomm #VMware #Twitter #Fujitsu #Lenovo #Infosys #Capgemini #Accenture#Leetcode2096 #Leetcode2096Solution #JavaCode #BinaryTreeDirections #BinaryTreePathfinding #LeetcodeJava #CodingInterviewPreparation #JavaCodingTutorial #BinaryTreeProblem #LeetcodeStepByStep #LeetcodeExplanation #JavaBinaryTree #CodingInterview #BinaryTreeTraversal #LeetcodeExample #JavaBinaryTreeProblem #LeetcodeBinaryTree #JavaLeetcode #DeveloperCoder #CodingTips #InterviewPrep #ProgrammingChallenges #TechInterview #Algorithms #DataStructures #CodingProblems #ProblemSolving #CodeWalkthrough #JavaSolutions #ProgrammingTutorial #LeetcodeDaily #CodeWithMe #JavaChallenges #TechPreparation #SoftwareEngineering #InterviewQuestions #JavaDeveloper #LeetcodeCommunity #CodingJourney #JavaPractice #BinaryTreeChallenge #LeetcodePathfinding #JavaAlgorithms #ProgrammingInterview #LeetcodeSeries #JavaProgramming
Leetcode 2096
Step-By-Step Directions From a Binary Tree Node to Another
Leetcode Step-By-Step Directions problem
Leetcode problem 2096
Binary Tree directions problem Leetcode
Leetcode 2096 Java solution
Step-By-Step Directions binary tree Leetcode
Leetcode Java problem 2096
Leetcode 2096 explained
Step-By-Step Directions Leetcode Java
Binary Tree Node directions Leetcode
Leetcode 2096 pathfinding
Step-By-Step Directions binary tree node Leetcode
Leetcode 2096 Java code
Binary Tree node problem Leetcode
Step-By-Step Directions from one node to another Leetcode
Leetcode problem 2096 solution
Step-By-Step Directions from a node Leetcode
Binary Tree step-by-step directions Leetcode
Leetcode 2096 video
Step-By-Step Directions from node to node Leetcode
Leetcode 2096 coding tutorial
Binary Tree node directions Java Leetcode
Leetcode 2096 coding interview question
Step-By-Step Directions binary tree Java Leetcode
Leetcode problem directions between nodes
Step-By-Step Directions between nodes Leetcode
Binary Tree node directions coding Leetcode
Leetcode 2096 example solution
Step-By-Step Directions pathfinding Leetcode
Binary Tree pathfinding Leetcode 2096
Step-By-Step Directions problem Leetcode 2096
Leetcode 2096 directions Java
Step-By-Step Directions binary tree coding Leetcode
Binary Tree directions coding interview Leetcode
Leetcode 2096 binary tree problem
Step-By-Step Directions nodes problem Leetcode
Leetcode 2096 traversal solution
Step-By-Step Directions Java coding Leetcode
Binary Tree node traversal Leetcode 2096
Leetcode 2096 path solution
Step-By-Step Directions path Leetcode 2096
Binary Tree node pathfinding Leetcode
Leetcode 2096 node directions solution
Step-By-Step Directions binary tree nodes Leetcode
Binary Tree traversal problem Leetcode 2096
Leetcode 2096 node path
Step-By-Step Directions Leetcode Java coding
Binary Tree problem 2096 Leetcode
Leetcode 2096 step-by-step directions
Step-By-Step Directions coding Leetcode 2096
Binary Tree node path solution Leetcode
Leetcode 2096 pathfinding solution
Step-By-Step Directions from one node Leetcode
Binary Tree problem step-by-step Leetcode
Leetcode 2096 Java tutorial
Step-By-Step Directions from node Leetcode
Binary Tree directions problem 2096 Leetcode
Leetcode 2096 binary tree node
Step-By-Step Directions nodes Java Leetcode
Binary Tree node directions example Leetcode
Leetcode 2096 node pathfinding
Step-By-Step Directions Leetcode tutorial
Binary Tree node path Leetcode 2096
Leetcode 2096 step directions
Step-By-Step Directions binary tree traversal Leetcode
Binary Tree node problem 2096 Leetcode
Leetcode 2096 binary pathfinding
Step-By-Step Directions from node problem Leetcode
Binary Tree node directions tutorial Leetcode
Leetcode 2096 traversal Java
Step-By-Step Directions Leetcode pathfinding
Binary Tree node directions path Leetcode
มุมมอง: 0

วีดีโอ

Create Binary Tree From Descriptions | Leetcode 2196 | Maps | Medium | Java Code | Developer Coder
มุมมอง 142 ชั่วโมงที่ผ่านมา
👋 Hello, Developers! Welcome to DEVELOPER CODER! In this video, we will solve the LeetCode problem "Create Binary Tree From Descriptions" (Leetcode 2196) using Java. This problem is tagged as Medium and involves the use of Maps and Sets. We will walk you through the entire solution step-by-step, ensuring you understand every part of the code. 🔍 Problem: Create Binary Tree From Descriptions 💡 Le...
Number of Atoms | Leetcode 726 | Stacks | HARD | Java Code | Developer Coder
มุมมอง 412 ชั่วโมงที่ผ่านมา
Welcome to DEVELOPER CODER! 🚀 In this video, we dive deep into the LeetCode 726 - Number of Atoms problem. 🧪💡 I’ll walk you through a detailed explanation of the problem and guide you step-by-step through the Java solution. This problem is a great example of stack-based problem-solving techniques and is classified as HARD, making it perfect for those looking to challenge their coding skills! 💪 ...
Minimum Cost for Cutting Cake I | Leetcode 3218 | Leetcode weekly-contest-406 | Java Solution
มุมมอง 1194 ชั่วโมงที่ผ่านมา
#Google #Microsoft #Apple #Amazon #Facebook #IBM #Oracle #Cisco #Intel #Dell #HP #Adobe #Salesforce #SAP #NVIDIA #Tencent #Alibaba #Sony #Netflix #Baidu #Xiaomi #Qualcomm #VMware #Twitter #Fujitsu #Lenovo #Infosys #Capgemini #accenture Don't forget to subscribe my TH-cam channel for leetcode weekly contest solutions. - @DeveloperCoder
Delete Nodes From Linked List Present in Array | Leetcode weekly-contest-406 | Java Solution
มุมมอง 1794 ชั่วโมงที่ผ่านมา
#Google #Microsoft #Apple #Amazon #Facebook #IBM #Oracle #Cisco #Intel #Dell #HP #Adobe #Salesforce #SAP #NVIDIA #Tencent #Alibaba #Sony #Netflix #Baidu #Xiaomi #Qualcomm #VMware #Twitter #Fujitsu #Lenovo #Infosys #Capgemini #accenture Don't forget to subscribe my TH-cam channel for leetcode weekly contest solutions. - @DeveloperCoder
Lexicographically Smallest String After a Swap | Leetcode weekly-contest-406 | Java Solution
มุมมอง 2754 ชั่วโมงที่ผ่านมา
#Google #Microsoft #Apple #Amazon #Facebook #IBM #Oracle #Cisco #Intel #Dell #HP #Adobe #Salesforce #SAP #NVIDIA #Tencent #Alibaba #Sony #Netflix #Baidu #Xiaomi #Qualcomm #VMware #Twitter #Fujitsu #Lenovo #Infosys #Capgemini #accenture Don't forget to subscribe my TH-cam channel for leetcode weekly contest solutions. - @DeveloperCoder
Robot Collisions | LeetCode 2751 | Stacks | Java Code | Developer Coder 🤖
มุมมอง 294 ชั่วโมงที่ผ่านมา
Welcome back to Developer Coder! In this video, we dive into the LeetCode 2751: Robot Collisions problem and explore a detailed solution using Java. 🚀 👨‍💻 Problem Statement: In this problem, you are tasked with simulating the movement and collisions of robots on a 1D grid. Each robot moves in a straight line, and we need to handle collisions based on their directions and positions. Learn how to...
Maximum Score From Removing Substrings | Leetcode 1717 | Stacks | Java Code | Developer Coder
มุมมอง 309 ชั่วโมงที่ผ่านมา
Welcome to another episode of DEVELOPER CODER! 🚀 In today’s video, we’ll tackle the LeetCode 1717 problem: Maximum Score From Removing Substrings. 🧩 We’ll explore the problem using Stacks and walk through a complete Java Code solution. 💻 🔍 What You’ll Learn: Understanding the Maximum Score From Removing Substrings problem Implementing an efficient Stack-based solution in Java Tips and tricks to...
Reverse Substrings Between Each Pair of Parentheses | Leetcode 1190 | Stacks | Developer Coder
มุมมอง 2112 ชั่วโมงที่ผ่านมา
Welcome to DEVELOPER CODER! In this video, we dive into the LeetCode problem Reverse Substrings Between Each Pair of Parentheses (Leetcode 1190) 🔄🧩. I’ll walk you through a clear and efficient Java solution to this challenging problem. Learn how to reverse substrings between parentheses and gain valuable coding insights along the way! 💻🚀 ✨ What You Will Learn: ✅ Understanding the problem statem...
Crawler Log Folder | Leetcode 1598 | Java Code | Developer Coder
มุมมอง 1714 ชั่วโมงที่ผ่านมา
Hey, Developer Coders! 👋 In this video, we'll tackle the Crawler Log Folder problem from LeetCode (Problem 1598) using Java. 🖥️ This problem is great for understanding directory operations and string manipulation. 📂 We'll go through: Problem statement and requirements 📜 Detailed breakdown of the solution approach 🔍 Step-by-step coding in Java 💻 Tips and tricks to optimize your code 🚀 Don't forg...
Average Waiting Time | LeetCode 1701 | Java Code | Developer Coder
มุมมอง 1514 ชั่วโมงที่ผ่านมา
Hey there, coding enthusiasts! 👋 Welcome back to DEVELOPER CODER! In today's video, we'll be tackling the LeetCode problem Average Waiting Time (1701). We'll walk through the problem statement, discuss the algorithm, and implement the solution in Java. This problem is frequently asked in technical interviews by top tech companies, so make sure to follow along and sharpen your coding skills! 💻 🔍...
Find the Winner of the Circular Game | Leetcode 1823 | 2 Approaches | Recursion | Developer Coder
มุมมอง 919 ชั่วโมงที่ผ่านมา
Welcome to DEVELOPER CODER! 🎉 In this video, we'll tackle the exciting LeetCode problem "Find the Winner of the Circular Game" (LeetCode 1823). 🚀 We'll explore two different approaches to solve this problem: the Brute Force method and the Recursion technique. 💡 In this tutorial, we'll: Understand the problem statement 🤔 Break down the logic 🧠 Implement the solution in Java 💻 Analyze the time an...
Water Bottles | LeetCode 1518 | Java Code | Developer Coder
มุมมอง 1821 ชั่วโมงที่ผ่านมา
Welcome back to DEVELOPER CODER! 🎉 In this video, we dive deep into LeetCode problem 1518 - Water Bottles. 🌟 I’ll walk you through the problem statement, the optimal Java solution, and provide a step-by-step explanation to help you master this challenge. 🚀 🔍 What You’ll Learn: Problem Breakdown: Understand the core concepts of the Water Bottles problem 💧 Java Code Solution: Follow along as I co...
Count Submatrices With Equal Frequency of X and Y | Leetcode weekly-contest-405 | Java Solution
มุมมอง 3221 ชั่วโมงที่ผ่านมา
#Google #Microsoft #Apple #Amazon #Facebook #IBM #Oracle #Cisco #Intel #Dell #HP #Adobe #Salesforce #SAP #NVIDIA #Tencent #Alibaba #Sony #Netflix #Baidu #Xiaomi #Qualcomm #VMware #Twitter #Fujitsu #Lenovo #Infosys #Capgemini #accenture Don't forget to subscribe my TH-cam channel for leetcode weekly contest solutions. - @DeveloperCoder
Generate Binary Strings Without Adjacent Zeros | Leetcode weekly-contest-405 | Java Solution
มุมมอง 9321 ชั่วโมงที่ผ่านมา
#Google #Microsoft #Apple #Amazon #Facebook #IBM #Oracle #Cisco #Intel #Dell #HP #Adobe #Salesforce #SAP #NVIDIA #Tencent #Alibaba #Sony #Netflix #Baidu #Xiaomi #Qualcomm #VMware #Twitter #Fujitsu #Lenovo #Infosys #Capgemini #accenture Don't forget to subscribe my TH-cam channel for leetcode weekly contest solutions. - @DeveloperCoder
Find the Encrypted String | Leetcode weekly-contest-405 | Java Solution
มุมมอง 9421 ชั่วโมงที่ผ่านมา
Find the Encrypted String | Leetcode weekly-contest-405 | Java Solution
Pass the Pillow | Leetcode 2582 | Java Code | Developer Coder
มุมมอง 37วันที่ผ่านมา
Pass the Pillow | Leetcode 2582 | Java Code | Developer Coder
Find the Minimum and Maximum Number of Nodes Between Critical Points | LeetCode 2058 |DeveloperCoder
มุมมอง 17วันที่ผ่านมา
Find the Minimum and Maximum Number of Nodes Between Critical Points | LeetCode 2058 |DeveloperCoder
Merge Nodes in Between Zeros | LeetCode 2181 | Java Code | Developer Coder
มุมมอง 9วันที่ผ่านมา
Merge Nodes in Between Zeros | LeetCode 2181 | Java Code | Developer Coder
Minimum Difference Between Largest and Smallest Value in Three Moves |Leetcode 1509 |Developer Coder
มุมมอง 19วันที่ผ่านมา
Minimum Difference Between Largest and Smallest Value in Three Moves |Leetcode 1509 |Developer Coder
Intersection of Two Arrays II | LeetCode 350 | Java Code | Developer Coder
มุมมอง 3114 วันที่ผ่านมา
Intersection of Two Arrays II | LeetCode 350 | Java Code | Developer Coder
Three Consecutive Odds | LeetCode 1550 | Problem of the Day - July 2024 | Java | Developer Coder
มุมมอง 3314 วันที่ผ่านมา
Three Consecutive Odds | LeetCode 1550 | Problem of the Day - July 2024 | Java | Developer Coder
Remove Max Number of Edges to Keep Graph Fully Traversable | Leetcode 1579 | DSU | Developer Coder
มุมมอง 3614 วันที่ผ่านมา
Remove Max Number of Edges to Keep Graph Fully Traversable | Leetcode 1579 | DSU | Developer Coder
All Ancestors of a Node in a Directed Acyclic Graph | Leetcode 2192 | Graphs | Developer Coder
มุมมอง 2114 วันที่ผ่านมา
All Ancestors of a Node in a Directed Acyclic Graph | Leetcode 2192 | Graphs | Developer Coder
Maximum Total Importance of Roads | Leetcode 2285 | 2 Approaches | Developer Coder
มุมมอง 1914 วันที่ผ่านมา
Maximum Total Importance of Roads | Leetcode 2285 | 2 Approaches | Developer Coder
Find Center of Star Graph | Leetcode 1791 | Java | O (1) T.C. | 2 Approaches | Developer Coder
มุมมอง 1314 วันที่ผ่านมา
Find Center of Star Graph | Leetcode 1791 | Java | O (1) T.C. | 2 Approaches | Developer Coder
Balance a Binary Search Tree | Leetcode 1382 | Java | Developer Coder
มุมมอง 2714 วันที่ผ่านมา
Balance a Binary Search Tree | Leetcode 1382 | Java | Developer Coder
Binary Search Tree to Greater Sum Tree | Leetcode 1038 | Java | Developer Coder
มุมมอง 1521 วันที่ผ่านมา
Binary Search Tree to Greater Sum Tree | Leetcode 1038 | Java | Developer Coder
Minimum Number of K Consecutive Bit Flips | Leetcode 995 | Java | Developer Coder
มุมมอง 5321 วันที่ผ่านมา
Minimum Number of K Consecutive Bit Flips | Leetcode 995 | Java | Developer Coder
Leetcode 1438 | Longest Continuous Subarray with Absolute Diff Less Than or Equal to Limit | Java
มุมมอง 3721 วันที่ผ่านมา
Leetcode 1438 | Longest Continuous Subarray with Absolute Diff Less Than or Equal to Limit | Java

ความคิดเห็น

  • @ihavecrappyvids
    @ihavecrappyvids 2 วันที่ผ่านมา

    Great video , super helpful explanations , thanks!

    • @DeveloperCoder
      @DeveloperCoder 2 วันที่ผ่านมา

      Glad it was helpful!

  • @itipurwar2730
    @itipurwar2730 2 วันที่ผ่านมา

    helpful video

    • @DeveloperCoder
      @DeveloperCoder 2 วันที่ผ่านมา

      Thanks a lot! I’m glad you found it helpful!” 😊

  • @sakiraali554
    @sakiraali554 2 วันที่ผ่านมา

    Bhai mere code run nahi ho raha error aa raha hai

    • @vikadjaat1392
      @vikadjaat1392 2 วันที่ผ่านมา

      mera submission ke time error aa rha h . don't know what's wrong with my code though

    • @DeveloperCoder
      @DeveloperCoder 2 วันที่ผ่านมา

      can you please share your code? I will review from my side, if it's still not working.

    • @sakiraali554
      @sakiraali554 2 วันที่ผ่านมา

      @@DeveloperCoder okay

  • @divakarsanadhya1376
    @divakarsanadhya1376 15 วันที่ผ่านมา

    Keep it up bro 💪🏻💪🏻 you can do it ⭐⭐

  • @ashishanubhavmaharana6011
    @ashishanubhavmaharana6011 23 วันที่ผ่านมา

    4th ?

  • @DeveloperCoder
    @DeveloperCoder 26 วันที่ผ่านมา

    Time Complexity: Sorting the Positions Array: Sorting takes O(nlogn) time, where n is the number of baskets. Binary Search on the Answer: The range of possible minimum forces is from 1 to position[position.length−1]−position[0]. Let's denote this maximum possible distance as D. Binary search on this range takes O(logD) iterations. Feasibility Check:- For each mid value in the binary search, we perform a linear scan of the positions array to check if we can place all m balls with at least mid distance. This takes O(n) time. Combining these complexities, the overall time complexity of the algorithm is: O(nlogn+logD⋅n) Sorting the positions array: O(nlogn). Binary search iterations: O(logD). Feasibility check for each iteration: O(n). logD is effectively a constant factor (around 30 for base-2 logarithm). Therefore, the dominant term is O(nlogn) from the sorting step. Final Time Complexity O(nlogn+nlogD) Where: n is the length of the positions array. D is the difference between the maximum and minimum positions. Given that logD is constant in practical scenarios, the time complexity can be considered O(nlogn).

  • @DeveloperCoder
    @DeveloperCoder 26 วันที่ผ่านมา

    Example 1: Explanation: Sorting the Positions: The sorted positions array: [1, 2, 3, 4, 7]. Binary Search Setup: left = 1, right = 6 (since 7 - 1 = 6). Binary Search Execution: First Iteration: mid = 3. canPlaceBalls(position, 3, 3): Place first ball at position 1. Next valid position is 4 (since 4 - 1 >= 3). Next valid position is 7 (since 7 - 4 >= 3). Successfully placed all 3 balls: positions [1, 4, 7]. Return true. Update best = 3 and left = 4. Second Iteration: mid = 5. canPlaceBalls(position, 3, 5): Place first ball at position 1. Next valid position is 7 (since 7 - 1 >= 5). Only 2 balls placed successfully. Return false. Update right = 4. Third Iteration: mid = 4. canPlaceBalls(position, 3, 4): Place first ball at position 1. Next valid position is 7 (since 7 - 1 >= 4). Only 2 balls placed successfully. Return false. Update right = 3. End of Binary Search: left > right (since left = 4 and right = 3). The best minimum force found is 3.

  • @b.hemeswari7621
    @b.hemeswari7621 28 วันที่ผ่านมา

    In 14 th line your using a and b but in the program there is no a and b variables .I am not understanding that line

    • @DeveloperCoder
      @DeveloperCoder 28 วันที่ผ่านมา

      Thank you for asking. The part (a, b) -> a[0] - b[0] is a lambda expression that acts as the custom comparator. Here’s what it does: Parameters a and b: These are two elements (sub-arrays) from the jobs array that need to be compared. a and b represent two jobs, each being a sub-array of the form [difficulty, profit]. Comparison Logic: a[0] refers to the difficulty of job a. b[0] refers to the difficulty of job b. a[0] - b[0] calculates the difference in difficulty between job a and job b. When a[0] < b[0]: a[0] - b[0] is negative. The comparator returns a negative value. This means job a should come before job b in the sorted array. When a[0] == b[0]: a[0] - b[0] is zero. The comparator returns zero. This means the order of job a and job b relative to each other does not change. When a[0] > b[0]: a[0] - b[0] is positive. The comparator returns a positive value. This means job a should come after job b in the sorted array. Please let me know if you still have any questions.😊

    • @Zerocoment-zh6bq
      @Zerocoment-zh6bq 24 วันที่ผ่านมา

      Ap ny reply toh kafi acha dia ha .... nice

    • @Zerocoment-zh6bq
      @Zerocoment-zh6bq 24 วันที่ผ่านมา

      ​@@DeveloperCoderyou have give a nice and lengthy reply .... nice ....

  • @nanthags6447
    @nanthags6447 29 วันที่ผ่านมา

    nums = [1,2,31,33] n = 2147483647 Output generates 29 but expected is 28 What the error ??

    • @DeveloperCoder
      @DeveloperCoder 29 วันที่ผ่านมา

      Hi, I have executed the test case provided by you using the same code provided by me in this tutorial. I am getting output and expected both 28. Could you please double check the code again? There may be some minor mistakes in loops and conditions.

  • @bbiswajit
    @bbiswajit หลายเดือนก่อน

    ThankYou for your explanation ...🔥🔥🔥

    • @DeveloperCoder
      @DeveloperCoder หลายเดือนก่อน

      Glad it was helpful!

  • @kodurisaivishnu4916
    @kodurisaivishnu4916 หลายเดือนก่อน

    It is Better to Explain the intuition instead showing the solution!

    • @DeveloperCoder
      @DeveloperCoder หลายเดือนก่อน

      Since most people are waiting for solutions to complete the live contest during 1 hour window time, I shared solutions directly for all 4 problems. Once I have some free time, I'll definitely explain this in detail, like any other videos on my TH-cam channel where I explain the POTD (Problem of the Day) on Leetcode.

  • @user-yt8jd1oo7c
    @user-yt8jd1oo7c หลายเดือนก่อน

    why do you use publc static void main string but program is still run??

    • @DeveloperCoder
      @DeveloperCoder หลายเดือนก่อน

      If I understand it correctly, you are asking where public static void main line, right? We need to implement the solution method for the given problem. Input is already handled by the LeetCode platform, where the public static void main code is written. We don't need to write this on these platforms or during competitive exams. Inputs are taken by itself...we just need to write our main approach to solve that. public static void main(String[] args) { Solution solution = new Solution(); String[] words = {"dog", "cat", "dad", "good"}; char[] letters = {'a', 'a', 'c', 'd', 'd', 'd', 'g', 'o', 'o'}; int[] scores = {1, 0, 9, 5, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; int result = solution.maxScoreWords(words, letters, scores); System.out.println("Maximum score possible: " + result); } Hope this helps.....

  • @supremoluminary
    @supremoluminary หลายเดือนก่อน

    Wow. The Asian girl on the thumb has such a deep voice 😄

    • @DeveloperCoder
      @DeveloperCoder หลายเดือนก่อน

      Ah, you came after seeing her in thumbnail... caught you😉... sorry for disappointment 😂

  • @Muhaiminul_coding_club
    @Muhaiminul_coding_club 2 หลายเดือนก่อน

    cool man 😎 😎

  • @piragna5802
    @piragna5802 2 หลายเดือนก่อน

    The use of the double backslash shocked me haha

    • @DeveloperCoder
      @DeveloperCoder 2 หลายเดือนก่อน

      Hope, you are feeling good now 😅

  • @syedalifathima4061
    @syedalifathima4061 2 หลายเดือนก่อน

    Display font size is not clear sir

    • @DeveloperCoder
      @DeveloperCoder 2 หลายเดือนก่อน

      Sure, I will take care of this in the next videos. For this, please zoom the screen to see the code content. Thanks for letting me know. 😊 Keep coding and Keep learning.

  • @prateekkumar24
    @prateekkumar24 2 หลายเดือนก่อน

    great explanation, really appreciable.

    • @DeveloperCoder
      @DeveloperCoder 2 หลายเดือนก่อน

      Glad it was helpful!

  • @DeveloperCoder
    @DeveloperCoder 3 หลายเดือนก่อน

    Time complexity is going to be O(n) since we are running for loops 3 times. O(n) for frequency + O(n) for maxFrequency + O(n) for Maximum frequency count. O(n) + O(n) + O(n) = O(3n) ~ O(n). We are using greedy approach because if we don't pick max frequency first, than in that case we could not get minimum number of result value. We have to be greedy so that we can get best result.( Minimum Value ) Hope it helps, thanks for your time. Keep Coding.

  • @nativelearning
    @nativelearning 3 หลายเดือนก่อน

    It’s an awesome effort , I have few comments too It will be Good to convey how u identified or came up with greedy strategies What is naive approach and time complexity for the same Which helps in differing whether this video is made to show that u can solve this problem vs ur intention is to educate viewers

    • @DeveloperCoder
      @DeveloperCoder 3 หลายเดือนก่อน

      Time complexity is going to be O(n) since we are running for loops 3 times. O(n) for frequency + O(n) for maxFrequency + O(n) for Maximum frequency count. O(n) + O(n) + O(n) = O(3n) ~ O(n). We are using greedy approach because if we don't pick max frequency first, than in that case we could not get minimum number of result value. We have to be greedy so that we can get best result.( Minimum Value ) Hope it helps, thanks for your time. Keep Coding.

  • @keerthivasan1734
    @keerthivasan1734 4 หลายเดือนก่อน

    Superb bro🎉

  • @neelmanipandey4871
    @neelmanipandey4871 4 หลายเดือนก่อน

    best explaination sir