#hashmap search results
🔢 LeetCode: Count Special Triplets ✅ Fix middle, count 2×middle on both sides! Multiply left×right frequencies for each position. ⚡ O(n) with hash map 🎯 i+j=2k relationship 💡 Left-right split trick #LeetCode #CPlusPlus #HashMap #100DaysOfCode
✅ Day 117 of #150DaysOfDSA 📍 LC 3162: Sum of Elements With Frequency Divisible by K Counted frequencies of each element, then summed those whose counts are divisible by k. Simple frequency-mapping logic → clean O(n) implementation. #Arrays #HashMap #Implementation #BruteForce
🔥 Cracked Majority Element using Map! 🧠 Count frequencies in O(n) time 📦 Simple but not optimal — let’s optimize next with Boyer-Moore Voting Algo for O(1) space! #JavaScript #LeetCode #HashMap #Coding #Optimization #100DaysOfCode
🧵 Day 311 of #geekstreak2025 ✅ GFG POTD: Count Unique Vowel Strings 🧠 Counted frequency of each vowel in the string, then multiplied all frequencies × factorial of distinct vowels count. Used hashmap + frequency logic — worked clean! #dsa #hashmap #math #string #potd
✅ Day 120 — K Different Subarrays 🧠 Trick: Exactly K = atMost(K) - atMost(K-1) 📦 Sliding window + hashmap 📈 0 ms AC on a HARD problem! #LeetCode #SlidingWindow #HashMap #100DaysOfCode #C++
eu amo usar hashtags porra #relatable #hashtags #hashmap #vaitomando #noprocedimento #calendula01032025 #teefodeclothing
Explored unordered_map in C++ today! Solved LC 242 (Valid Anagram), LC 1 (Two Sum), and LC 1207 (Unique Occurrences). Maps are super helpful for frequency-based problems. New language learning coming soon 👀 #DSA #LeetCode #HashMap #Cplusplus #CodeNewbie
Day 29 of #30DayOfCodingChallenge with #Java - Learning #HashMap in Java - solving hashmap and hashset questions on gfg . . #DSA #coding #java #programming
LeetCode 1347 – Min Steps to Make Anagram Used two HashMaps to compare char frequencies It’s all about balancing what one string has vs. what the other needs ⚖️ #LeetCode #HashMap #Java #DSA #100DaysOfCode #CodingJourney #TechTwitter
🔤 First Unique Character in a String Track character frequency & their indices → first index with frequency 1 = answer ✅ 🧠 TC: O(n) 📦 SC: O(n) 💡 Code is in the comments! #DSA #HashMap #Queue #Leetcode #100DaysOfCode
Day 127 – LeetCode 229 ✅ 🗳️ Majority Element II Count frequency of each number If freq > ⌊n/3⌋, include in result 🔁 Used hash map for counting ⚡ Simple & effective #LeetCode #C++ #HashMap #MajorityElement
LeetCode 451 – Sort Characters by Frequency Used HashMap to count & MaxHeap (PriorityQueue) to sort chars by freq 🔁 Loved how data structures fit together to solve this! 🔥 #LeetCode #PriorityQueue #HashMap #Java #DSA #TechTwitter #100DaysOfCode
🧵 Day 287 of #geekstreak2025 ✅ GFG POTD: Check if Frequencies Can Be Equal 🧠 Counted character frequencies using a map, then checked if removing one char or reducing one freq makes all remaining freqs equal. Smart map math! 🔁 #dsa #hashmap #frequency #string #potd
✅ Day 106 of #150DaysOfDSA 📍 LC 2364: Count Number of Bad Pairs Count total pairs using n*(n-1)/2. Use a hashmap to track nums[i] - i values and count good pairs. Bad pairs = Total pairs - Good pairs. ⏱ O(n) | O(n) #HashMap #Math #150DaysOfDSA
Something went wrong.
Something went wrong.
United States Trends
- 1. #WWENXT 13.7K posts
- 2. #BTCCBestCEX 1,290 posts
- 3. #RHOSLC 3,296 posts
- 4. Lamar Wilkerson N/A
- 5. AJ Dybantsa 2,443 posts
- 6. Raptors 8,639 posts
- 7. Clemson 10.3K posts
- 8. Rob Wright N/A
- 9. Jalen Brunson 1,956 posts
- 10. Desmond Bane 3,710 posts
- 11. Letang N/A
- 12. Bruce Thornton N/A
- 13. With a 10B N/A
- 14. Slept 20.4K posts
- 15. Karlsson N/A
- 16. Je'Von 4,425 posts
- 17. Eileen Higgins 19.7K posts
- 18. The TGE 12.6K posts
- 19. #LetsGoPens N/A
- 20. Scottie Barnes 2,201 posts