How to improve LeetCode Problem Solving in 5 min | 10X Better at Leetcode
Summary
TLDRThe video discusses strategies for improving problem-solving skills to land high-paying IT jobs in India. It highlights the challenges average engineers face, earning only 2-3 lakhs annually unless they enhance their problem-solving abilities. The speaker offers a 5-point formula for mastering competitive coding on platforms like LeetCode, CodeChef, and CodeForces. Key points include practicing time-bound solutions, learning efficient algorithms, focusing on problem-solving patterns, and using the 80/20 rule to target frequently asked interview questions. The video emphasizes quality over quantity in coding practice for career success.
Takeaways
- 🧑💻 India's IT sector struggles with average engineer salaries ranging between 200,000 to 300,000 INR, and to earn 2 to 2.5 million INR, one must excel in problem-solving.
- 💡 Improving problem-solving skills is essential for a better career, especially through platforms like LeetCode, CodeChef, Codeforces, and GeeksforGeeks.
- ⏳ Start by setting time limits. Spend 45 minutes attempting a problem before moving to review solutions from the top-rated ones on the discussion section.
- 📝 Don’t look for the most exotic or shortest solution, but instead, focus on approaches that can help you clear real interview questions.
- 🔍 Identifying patterns in data structures and algorithms (DSA) questions is crucial for solving problems and improving concepts.
- 📜 Solving random problems isn’t efficient; instead, follow a curated list like Blind 75, NeetCode 150, or company-specific recent interview questions.
- 🎯 The 80/20 rule for LeetCode is key: 20% of the problems are asked in 80% of interviews, so focus on the most frequent ones.
- 📊 Study the frequency of the types of questions asked in the last six months, focusing on the most common question patterns.
- ⚖️ Prioritize quality over quantity—solving many LeetCode questions doesn’t help unless the solutions improve your understanding of fundamental concepts.
- 🧠 Focus on medium-level questions, as most interview questions fall into this category, and avoid spending time on too easy or too hard problems.
Q & A
What is the current state of the IT sector in India according to the script?
-The script suggests that the IT sector in India is in a poor state, with average engineers not receiving job offers that pay more than 2 to 3 lakhs, and to earn 20-25 lakhs, one has to become a 'hacker' engineer.
What does the term 'hacker' engineer mean in the context of the script?
-In the script, a 'hacker' engineer refers to someone who has exceptional problem-solving skills and is capable of earning a high salary due to their ability to solve complex problems efficiently.
What are the five points mentioned in the script to improve problem-solving skills?
-The five points mentioned are: 1) Time Bound, 2) Find the Right Solution, 3) Look for Actual Solutions, 4) Understand Patterns, and 5) Follow the 80/20 rule.
Why is it important to read the problem statement and examples carefully according to the script?
-The script emphasizes that understanding the problem statement and examples is crucial because it helps in identifying the correct approach and matching it with the provided examples to ensure the solution is accurate.
What is the significance of the 80/20 rule in the context of the script?
-The 80/20 rule in the script refers to focusing on 20% of the problems that are asked in 80% of the interviews, which can significantly increase the chances of clearing interviews.
How does the script advise approaching the solutions section on platforms like LeetCode?
-The script advises not to look for the shortest or the exact solution but to find a solution that clears the review process, indicating a focus on understanding and learning from the process rather than just copying solutions.
What is the importance of identifying patterns in problem-solving as per the script?
-Identifying patterns is important because it helps in recognizing similar problem types and solving them efficiently, which is the basis of learning and improving problem-solving skills.
Why should one focus on medium difficulty problems according to the script?
-The script suggests focusing on medium difficulty problems because most interviews ask medium difficulty questions, and solving these can boost confidence and improve problem-solving skills without causing demotivation.
What is the advice given in the script regarding the quantity versus quality of problems solved?
-The script advises focusing on the quality of problems solved rather than the quantity, as solving a large number of problems without understanding them does not improve problem-solving skills.
How does the script suggest preparing for interviews?
-The script suggests preparing for interviews by following a curated list of problems instead of random ones, focusing on the frequency of questions asked in the last six months, and understanding the patterns of questions asked by specific companies.
What is the final advice given in the script for improving problem-solving skills?
-The final advice is to consistently practice solving problems, focus on understanding the concepts, and not just the count of problems solved, and to seek clarification if any point is not clear.
Outlines
💻 Enhancing Coding and Problem-Solving Skills
The speaker addresses the challenges faced by IT engineers in India, particularly the difficulty in securing high-paying jobs without becoming exceptional problem solvers. They introduce a five-point formula to improve problem-solving skills through consistent practice on platforms like LeetCode, CodeChef, and Codeforces. The speaker emphasizes the importance of understanding the problem, attempting to solve it on paper, and then comparing the solution with examples. They also stress the need to look for efficient and effective solutions, not just the shortest or most aggressive ones. The speaker encourages viewers to focus on learning patterns and solving multiple problems based on those patterns to improve their coding skills and problem-solving abilities.
🚀 Boosting Interview Success with Strategic Preparation
The speaker provides guidance on how to prepare for coding interviews effectively. They suggest starting with basic problems to build a strong foundation and then focusing on medium-difficulty problems, which are commonly asked in interviews. The speaker advises against solving too many hard problems initially, as they can be demotivating. They also discuss the importance of mental health and maintaining a consistent practice routine. The speaker recommends following a curated list of problems and focusing on the frequency of questions asked in the last six months to increase the chances of solving similar problems in future interviews. They conclude by encouraging viewers to practice regularly and consistently, and to seek clarification if any points are unclear, offering additional resources and a list of problem patterns for further study.
Mindmap
Keywords
💡IT Sector
💡Average Engineer
💡Problem Solving
💡Lead Code
💡CodeChef
💡Coding Forces
💡Pattern Recognition
💡Data Structures
💡80/20 Rule
💡Consistency
💡Quality over Quantity
Highlights
India's IT sector is struggling, with average engineers not getting jobs paying more than 2 to 3 lakhs.
To earn 20-25 lakhs, one must become a hotshot engineer, capable of problem-solving and improving.
The speaker has taken various coding platforms like LeetCode, CodeChef, CodeForces, and GFG to solve problems.
The speaker has identified five key points to significantly improve problem-solving skills.
The first point is understanding the time bound, which is crucial for problem-solving.
One must read and understand the problem statement thoroughly before attempting to solve it.
After understanding the problem, one should try to solve it on paper before implementing it in code.
If the approach doesn't fit within the constraints, one should try for 45 minutes and then move on.
The second point is to find the right solution by looking at the top solutions in the discussion section.
One should not look for the shortest solution but the one that clears the actual review process.
The speaker suggests focusing on simple and efficient approaches rather than the shortest solutions.
The speaker provides a list of multiple DSA patterns to understand and solve suggested problems.
The third point is to focus on basic problems to improve pattern recognition and problem-solving.
The fourth point is the 80/20 rule, which means focusing on 20% of the problems that cover 80% of the interviews.
One should prepare a curated list of problems instead of randomly picking topics for interviews.
The speaker emphasizes focusing on the frequency of questions asked in the last six months.
The fifth and most important point is to focus on quality over quantity when solving problems.
The speaker advises starting with medium difficulty questions and not getting demotivated by hard ones.
Consistent practice and solving problems regularly will improve problem-solving skills within 30 days.
Transcripts
इंडिया का आईटी सेक्टर इतना खराब है य
एवरेज इंजीनियर को 2 से 3 लाख से ज्यादा
की जॉब मिलती ही नहीं है और 20-25 लाख
कमाने के लिए तुमको बनना पड़ेगा एक हटके
इंजीनियर जिसके लिए तुम्हें करनी पड़ेगी
प्रॉब्लम सॉल्विंग इंप्रूव मैंने लीड कोड
कोड शेफ कोड फोर्सेस जीएफजी और पता नहीं
कौन-कौन से प्लेटफॉर्म पे 10 1200 डीए से
प्रॉब्लम्स करी है और मैंने निकाली है
पांच ऐसे पॉइंट जिसके थ्रू तुम अपनी
प्रॉब्लम सॉल्विंग एकदम स्काय रॉकेट कर
सकते हो और लीड क्ड सॉल्व करने में
तुम्हें मजा भी आने लगेगा और फोर्थ पॉइंट
तो सबसे इंपॉर्टेंट है बिकॉज़ उसके अंदर
मैं बताऊंगा किस वे में क्वेश्चन करने हैं
कितने क्वेश्चंस करने हैं किस टॉपिक वाइज
करने हैं तो चलिए शुरू करते हैं इस वीडियो
को हाय एवरीवन वेलकम बैक टू अनदर वीडियो
पूरे इंटरनेट पे दुनिया आपको बोल रही है
कि कंसिस्टेंट रहो लीड कोड रोज सॉल्व करो
कंटेस्ट दो अब सॉल्व करो बट किसी को कोई
फायदा नहीं हो रहा है क्योंकि आप लोग एक
इंपॉर्टेंट चीज तो भूले जा रहे हो कि
अप्रोच कैसे करनी है प्रॉब्लम को जिसके
लिए ये पांच पॉइंट का फार्मूला मैं लेकर
आया हूं और मैं 100% गारंटी दे रहा हूं
अगर ये आप फॉलो करोगे तो यू विल सी द
प्रोग्रेस आपको मजा आएगा लीड कोड सॉल्व
करने में और आपकी प्रॉब्लम सॉल्विंग भी
इंक्रीज हो जाएगी पहला पॉइंट बहुत ही
सिंपल है व्हिच इज टाइम बाउंड तो सबसे
पहली चीज आपको क्या करनी है लीड कोड की
किसी प्रॉब्लम पे जाना है और उसको दो बार
रीड करना है अच्छे से रीड करो उसे समझने
की कोशिश करो उसके बाद जाओ उसके
एग्जांपल्स पे और पेन पेपर उठा लो पेन
पेपर पे सॉल्व करके देखो कि आपका जो आंसर
आ रहा है एग्जांपल्स का वो मैच हो रहा है
या नहीं हो रहा है अगर वो मैच हो रहा है
तो आपकी जो अप्रोच है उसकी टाइम
कॉम्प्लेक्शन निकालो और उसे मैच करो
कंस्ट्रेंट से अगर आपका एल्गो फिट बैठता
है देन यू आर गुड टू गो टू इंप्लीमेंट द
क्वेश्चन और अगर अगर नहीं बैठता है तो 45
मिनट तक ट्राई करना है 45 मिनट्स का टाइमर
बिठा लो 45 मिनट्स के बाद सीधे आपको चल
जाना है पॉइंट टू के ऊपर व्हिच इज फाइंड द
राइट सॉल्यूशन अब सॉल्यूशंस के लिए आपको
क्या करना है डिस्कस सेक्शन में जाना है
या फिर सॉल्यूशंस के सेक्शन में जाना है
और वहां पे टॉप सॉल्यूशंस आपको देखने हैं
अब सबसे बड़ी गलती जो सब लोग करते हैं यू
हैव टू लुक फॉर अ सलूशन व्हिच विल लैंड यू
अ जॉब ऑफर इंस्टेड ऑफ अ एग्जॉटिक सॉल्यूशन
या फिर शॉर्टेस्ट सॉल्यूशन कोई भी
एग्जॉटिक या शॉर्टेस्ट सलूशन सही नहीं
होता है इंस्टेड वो सॉल्यूशन सही होता है
जो कि आपको एक्चुअल में एक इव्यू क्लियर
करा सके तो मेक श्यर करो एक सिंपल अप्रोच
और एक एफिशिएंट अप्रोच देखो और उसको पढ़ो
अच्छे से और इससे आपको क्या फायदा हो रहा
है आपको एक पैटर्न पता लग गया है आपने
पैटर्न
आइडेंटिफिकेशन
की जो सजेस्टेड प्रॉब्लम्स आती है उन्हें
सॉल्व करो और इसी तरीके से आप मल्टीपल
पैटर्स को भी अंडरस्टैंड कर सकते हो डीएसए
पैटर्स के बेसिस पे ही चलता है ना कि
लर्निंग के बेसिस पे और ऐसी लिस्ट मैंने
आपके लिए डिस्क्रिप्शन में ऐड कर दी जहां
पे आप मल्टीपल डीएसए के पैटर्स पढ़ सकते
हो और उनके रिलेटेड प्रॉब्लम सॉल्व कर
सकते हो ताकि आपकी प्रॉब्लम सॉल्विंग
इंक्रीज हो सके टॉपिक बाय टॉपिक करने
बैठोगे ना ये लिस्ट कभी खत्म नहीं होगी
इसलिए सबसे पहले आपको बेसिक प्रॉब्लम्स
करनी है जिससे आपके पैटर्न इंप्रूव होंगे
और उन्हीं पैटर्स के अराउंड कुछ
प्रॉब्लम्स हैं वो आपको सॉल्व करनी है फिर
ताकि आपके कांसेप्ट क्लियर हो जाए और कि
प्रॉब्लम सॉल्विंग इंप्रूव हो जाए और
एडिशनल प्रॉब्लम सॉल्व करने के लिए आपको
क्या करना है पॉइंट वन एंड टू फॉलो करना
है अब चलते हैं फोर्थ पॉइंट पे जो कि सबसे
ज्यादा इंपॉर्टेंट है व्हिच इज लीड कोड
8020 रूल इसका मतलब क्या है 20 पर ऑफ लीड
कोड प्रॉब्लम्स आर आस्ड इन 80 पर ऑफ द
इंटरव्यूज मतलब आपको सिर्फ 20 पर
प्रॉब्लम्स करनी है ताकि आप 80 पर
इंटरव्यूज को आराम से क्लियर कर सकते हो
उससे तो आपको करना क्या है अगर आपको कोई
इंटरव्यू आ रहा है एक हफ्ते में दो हफ्ते
में या आप यू नो नियर फ्यूचर में आपको
क्यूरेटेड लिस्ट फॉलो करनी है इंस्टेड ऑफ
रैंडम पिक अ टॉपिक और आप मल्टीपल
क्वेश्चंस उसमें सॉल्व कर रहे हो आपको
ब्लाइंड 75 उठा लो या फिर नीट कोड 150 उठा
लो या फिर आप उस पर्टिकुलर कंपनी के लीड
कोड डिस्कस में जाके लास्ट सिक्स मंथ के
सारे क्वेश्चन अच्छे से सॉल्व करो आपको
आईडिया लग जाएगा कि किस तरीके के
क्वेश्चंस इस ड्यूरेशन में इंटरव्यूज में
पूछे जा रहे हैं और आपकी प्रोबेबिलिटी बढ़
जाएगी अप टू 95 पर टू क्लियर दोज इंटरव्यू
वेरी इजली और इस दौरान इस प्रिपरेशन के
दौरान फ्रीक्वेंसी पे फोकस करो किस टाइप
के क्वेश्चंस कितनी ज्यादा फ्रीक्वेंसी
में पूछे जा रहे हैं कोई भी कंपनी एक सेट
ऑफ क्वेश्चंस एक सेट ऑफ टॉपिक्स को उठाती
है एक पर्टिकुलर ड्यूरेशन के लिए और उसी
क्वे टॉपिक्स के अराउंड जैसे फॉर एग्जांपल
google3 के अराउंड पी पे क्वेश्चंस बहुत
ज्यादा पूछ रहे थे बट अभी वो ग्राफ के ऊपर
ज्यादा क्वेश्चंस पूछ रहे हैं इट्स नॉट
कंफर्म बट ये एक पैटर्न जो कि ऑब्जर्व
किया है मैंने एंप्लॉयज में और फ्रेंड्स
में मेरे जो इंटरव्यूज दे रहे हैं अभी ठीक
है तो फोकस ऑन फ्रीक्वेंसी ऑफ क्वेश्चन
दैट आर बींग आस्ड इन द लास्ट सिक्स मंथ
एंड व्हिच टेक्स अट टू द फिफ्थ पॉइंट
व्हिच इज क्वांटिटी मत फोकस करो क्वालिटी
पे फोकस करो लीड कोड क्वेश्चंस का काउंट
बनाने से कोई फायदा नहीं होगा अगर आप
लर्निंग कर रहे हो आप सिर्फ लर्न करे जा
रहे हो जितने भी क्वेश्चन सॉल्व कर रहे हो
मेक श्यर करो कि आप क्वालिटी क्वेश्चंस कर
रहे हो ता जिससे आपके फंडामेंटल्स क्लियर
हो रहे हैं आपके कांसेप्ट क्लियर हो रहे
हैं इंस्टेड ऑफ अब यार काउंट ही बढ़ाना है
तो सलूशन में जाके कॉपी पेस्ट कर लो और
उससे आपका काउंट भी बढ़ जाएगा लेकिन क्या
उससे आपको फायदा हो रहा है क्या उससे आपकी
प्रॉब्लम सॉल्विंग इंक्रीज हो रही है
बिल्कुल भी नहीं सबसे पहले तो इजी
क्वेश्चंस करना छोड़ दो और मीडियम
क्वेश्चन पे सबसे ज्यादा फोकस करो और
हार्ड क्वेश्चंस भी बिल्कुल छोड़ दो आपको
सिर्फ मीडियम क्वेश्चंस पे फोकस करना है
बिकॉज़ मोस्ट इंटरव्यूज में सिर्फ मीडियम
क्वेश्चंस ही पूछे जाते हैं आपको शुरू
करना है उन क्वेश्च से जो कि बहुत कम
एक्यूरेसी वाले हैं ना उनसे तो बिलक बकल
शुरू नहीं करना है आपको शुरू करना है 6065
पर जिसकी एक्यूरेसी होती है बिकॉज़ वो आप
आराम से सॉल्व कर पाते हो थोड़ा सा दिमाग
लगाकर एंड आपको जाना है 40 35 पर की जो
एक्यूरेसी है ना उस वाले क्वेश्चंस तक ये
रेंज के क्वेश्चंस आपको करने हैं तो आपका
कॉन्फिडेंस भी बढ़ेगा आपकी प्रॉब्लम
सॉल्विंग भी बढ़ेगी और आप फालतू के
क्वेश्चन नहीं उठाओगे जिनसे आपका आपको
डिमोटिवेशन होगा और आपकी प्रॉब्लम
सॉल्विंग में कोई फर्क नहीं पड़ेगा मेंटल
हेल्थ आपकी बहुत ज्यादा इंपैक्ट होगी अगर
आपने फोकस करके सारे पॉइंट सुने तो आपकी
प्रॉब्लम सॉल्विंग अगले 30 दिन में
इंप्रूव हो जाएगी बट मेक श्यर आप
प्रैक्टिस रेगुलरली कर रहे हो
कंसिस्टेंटली क्वेश्चन सॉल्व कर रहे हो और
अगर नहीं समझ आया कोई भी पॉइंट तो कमेंट
करके मुझे बता दो मैं अच्छे समझा दूंगा
सारे जो रिसोर्सेस हैं पैटर्स की लिस्ट हो
गई वो सब मैंने और प्रॉब्लम्स की लिस्ट हो
गई वो सब मैंने डिस्क्रिप्शन में डाल दी
उसे चेक आउट कर लेना और ऐसे और वीडियोस के
लिए फॉलो करो कुशल विजय के चैनल को मिलते
हैं ऐसे किसी वीडियो में तब तक के लिए बाय
बाय टेक केयर
5.0 / 5 (0 votes)