#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

me_sajeeb's tweet image. 🔢 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

Kushal_Koradia's tweet image. ✅ 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

ajeetkrup401's tweet image. 🔥 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

SumitKumar9128's tweet image. 🧵 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++

B_Furqan07's tweet image. ✅ 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++

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

Nik_Coding10's tweet image. 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
Nik_Coding10's tweet image. 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
Nik_Coding10's tweet image. 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

shery_shukla's tweet image. 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

DPrakash90053's tweet image. 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

JAI_KUMAR_007's tweet image. 🔤 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

B_Furqan07's tweet image. 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

DPrakash90053's tweet image. 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

SumitKumar9128's tweet image. 🧵 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

Kushal_Koradia's tweet image. ✅ 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

No results for "#hashmap"
No results for "#hashmap"
No results for "#hashmap"
Loading...

Something went wrong.


Something went wrong.


United States Trends