sachin
sachin @sachind977 ·
✅ LeetCode Day 43 > POTD 1: 263. Ugly Number > Difficulty: Easy > Approach: While loop with Maths > O(log n) Time | Space: O(1) [JAVA] Note: Continuously divided by 2, 3 & 5 and if the final result is 1, then it is an ugly number. #LeetCode #DSA
8
Anshh
Anshh @_ACE_77_ ·
💻 DSA Practice — Day 101 Solved 814 — Binary Tree Pruning 🌳 Interesting tree PB — removing unnecessary nodes & cleaning up the tree felt satisfying😄 Nice practice for recursion & conditional pruning logic💪 🔗 leetcode.com/u/Anshv8096/ #LeetCode #DSA #Trees #BinaryTreedv0LwJ
5
Saurabh Prajapati
Saurabh Prajapati @saurabhkals ·
Please checkout video shorts of solition youtube.com/shorts/6XIYUNi… #LeetCode #DailyChallenge
Saurabh Prajapati Saurabh Prajapati @saurabhkals ·
Have you solved your LeetCode problem today? 👀 🧠 Problem: Find Lexicographically Smallest String from LCP Matrix 💡 Approach (pseudo code): 1. Use Union-Find to group indices where lcp[i][j] > 0 2. Each connected component must have the same character 3. Assign smallest lexicographic characters to each component 4. Build the result string 5. Validate using LCP computation 6. Return result or "" if invalid ⚡ Optimization: Used path compression + union by rank HashMap for component → character mapping Can further optimize validation using DP (O(n²)) Drop your approach below ⬇️ #LeetCode #Coding #100DaysOfCode
10
Mayank
Mayank @MayankThakur779 ·
Day 10 of solving LeetCode Solved: • Subarray Sum Equals K • Longest Consecutive Sequence Learned how powerful HashMap and HashSet can be for optimizing solutions from brute force to O(n). These problems really improved my understanding of patterns in arrays. #LeetCode #DSA
6
Manan
Manan @yeahhmanan ·
Replying to @yeahhmanan
✅Day 22/100 – #100DaysOfDSA Solved: - Minimum Absolute Difference Between Two Values (LC Biweekly Contest) - Could think of the approach for the 2nd ques as well but could not code it properly. Turned out it involved quite much of maths. #DSA #LeetCode #100DaysOfCode📷
4
pragalbh
pragalbh @pragalbh357972 ·
Day 105/200 of solving DSA daily. Solved today : The Two Sneaky Numbers of Digitville. (hashset) #LeetCode #DSA
4
Rahul Meena
Rahul Meena @Kaiser_0912 ·
Day 28/100 Today’s progress: • LeetCode POTD: Find the String with LCP • Biweekly Contest: solved 2/4 1. Minimum Absolute Difference Between Two Values 2. Minimum XOR Path in a Grid • Practiced SQL joins Couldn’t solve POTD on my own. #100DaysOfCode #LeetCode
27
aniket more
aniket more @aniketm36165216 ·
I have an array of numbers. You can pick elements, but never pick two adjacent ones. Your goal is to maximize the sum. What problem is this, and what’s the approach? #coding #dsa #leetcode #ai #programming
1
8
aniket more
aniket more @aniketm36165216 ·
Solved a Biweekly contest problem today....Minimum Absolute Difference Between Two Values. O(N) approach: just track latest index of 1 & 2 and keep updating the min difference. Pretty straightforward, give it a try 👀 #softwareengineering #leetcode #dsa #codinga
9