Top Tweets for #gfg160daysofcoding
Finally received my #gfg160daysofcoding Challenge T-shirt 🎉👕
After waiting patiently, the reward is finally here! 🥳💚
Hard work + consistency always pays off ✨
Thank you @geeksforgeeks
#gfg160 #geekstreak2025 #DSA

🚀Day 93 of GFG 160Days Challenge
Problem-
>> Coin change(count Ways)
-----------------------------------
>> GFG POTD
@geeksforgeeks #gfg160daysofcoding #LearnInPublic #CodingChallenge

Day 23 of #100DaysOfCode
Solved the Merge Overlapping Intervals problem
Approach:
Sort intervals by start time
Merge if overlapping, else push new
Time Complexity: O(n log n)
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 22 of #100DaysOfCode
Solved the Inversion Count problem 🔄
Brute Force → O(n²) ❌
Optimized → Merge Sort (O(n log n)) ✅
Counted inversions while merging → Clean & efficient! ⚡
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 21 of #100DaysOfCode 🚀
Solved the H-Index Problem 📚
🔹 Approach: Sort in descending order
🔹 Check max h such that citations[i] >= i+1
🔹 Clean O(n log n) solution ✅
#CPP #DSA #ProblemSolving #gfg160daysofcoding
![SHUBH_CODE11's tweet photo. Day 21 of #100DaysOfCode 🚀
Solved the H-Index Problem 📚
🔹 Approach: Sort in descending order
🔹 Check max h such that citations[i] >= i+1
🔹 Clean O(n log n) solution ✅
#CPP #DSA #ProblemSolving #gfg160daysofcoding https://t.co/B3KgakMIbA](https://pbs.twimg.com/media/G0QADj9WkAARetn.jpg)
Day 20 of #100DaysOfCode
Solved the classic Dutch National Flag Problem 🎯
Array with only {0,1,2}?
Instead of sorting → use 3 pointers (low, mid, high) 👉 One-pass, O(n), O(1) space ⚡
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 160 ✅ | #GFG160DaysOfCoding
📌 Find 2 Unique Numbers (Others Twice)
🔹 XOR all → gives xor of 2 uniques
🔹 Extract rightmost set bit → partition array
🔹 XOR in groups → get both numbers
⏱ O(N) | 💾 O(1)
#BitManipulation #XOR #Arrays #DSA #GeekStreak2025

Day 19 of #100DaysOfCode 🎯
Solved the String Rotation Check problem in C++ ✨
👉 Trick: If s2 is a rotation of s1, then s2 will always be a substring of s1+s1.
Efficient & clean ✅
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 18 of #100DaysOfCode
Solved Minimum chars to add at front to make a string palindrome 🎯
Naive checks → Too slow ❌
KMP LPS trick → Perfect fit ✅
🕒 O(n) | 🗂 O(n)
Passed all test cases 🚀
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 159 ✅ | #GFG160DaysOfCoding
📌 Find Unique Number (All Others Twice)
🔹 XOR all elements → duplicates cancel out
🔹 Remaining = the unique number
⏱ O(N) | 💾 O(1)
#BitMagic #XOR #Arrays #DSA #geekstreak2025

Day 17 of #100DaysOfCode
Solved the Pattern Searching Problem on GfG 🎯
Naive approach → TLE ❌
Rabin–Karp → Hash collisions ⚠️
✅ Final solution: Z-Algorithm (O(n+m)) 🔥
Efficient & clean → Passed all 1115/1115 test cases ✅
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 16 of #100DaysOfCode
Problem: First Non-Repeating Character 🧩
Approach: Count freq of each char, then pick the first with freq=1!
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 157 ✅ | #GFG160DaysOfCoding
📌 Find Duplicate (1..N-1)
✨ XOR trick :-
ans ^= i ^ arr[i];
All cancel out → leftover = duplicate
⏱ O(N) | 💾 O(1)
#BitMagic #XOR #Arrays #DSA #GeekStreak2025
![GouravXDev's tweet photo. Day 157 ✅ | #GFG160DaysOfCoding
📌 Find Duplicate (1..N-1)
✨ XOR trick :-
ans ^= i ^ arr[i];
All cancel out → leftover = duplicate
⏱ O(N) | 💾 O(1)
#BitMagic #XOR #Arrays #DSA #GeekStreak2025 https://t.co/nFzi4tGa0b](https://pbs.twimg.com/media/Gz1U0R7bAAAjLJX.png)
🚀 Day 15 of #100DaysOfCode
Problem: Check if two strings are Anagrams 🔄
✅ Approach: Count character frequencies (ASCII)
⏱️ Time: O(n)
📦 Space: O(1)
Efficient & clean!
#CPP #DSA #ProblemSolving #gfg160daysofcoding

Day 156 ✅ | #GFG160DaysOfCoding
📌 Maximum XOR of Two Numbers in Array
🔹 Build Trie of binary forms
🔹 Query each num for opposite bits → max XOR
🔹 Track best across all pairs
⏱ O(N·logM) | 💾 O(N·logM)
#Trie #BitManipulation #XOR #DSA #GeekStreak2025

DAY 157
Approach: Find only repetitive element from 1 to n-1 using Trie
TC:O(n)
SC:O(1)
#gfg160daysofcoding #GFG

Completed Day 26 of #gfg160daysofcoding. Problem Solved - Count the number of overlapping intervals.
Complexity Achieved -
-⏱Time Complexity - O(n*logn)
-🌌Space Complexity - O(1)
#DSA #ProblemSolving @geeksforgeeks

Day 155 ✅ | #GFG160DaysOfCoding
📌 Implement Trie
🔹 Node → children[] + isLeaf
🔹 Ops: Insert | Search | Prefix
⏱ O(L) / op | 💾 O(ΣL)
#Trie #PrefixTree #Strings #DSA #GeekStreak2025
![GouravXDev's tweet photo. Day 155 ✅ | #GFG160DaysOfCoding
📌 Implement Trie
🔹 Node → children[] + isLeaf
🔹 Ops: Insert | Search | Prefix
⏱ O(L) / op | 💾 O(ΣL)
#Trie #PrefixTree #Strings #DSA #GeekStreak2025 https://t.co/7faFwRSgeW](https://pbs.twimg.com/media/Gzrk4TcaIAA3B2J.png)
Day 14 of #100DaysOfCode
🧩 Problem: Add two binary strings & return the sum.
✨ Key idea:
Start from the last index of both strings.
Keep track of carry.
Build result & remove leading zeros.
#DSA #CPP #ProblemSolving #gfg160daysofcoding

Trends for you
Most Popular Users

Elon Musk 
@elonmusk
241.5M followers

Barack Obama 
@barackobama
118.8M followers

Cristiano Ronaldo 
@cristiano
114.5M followers

Donald J. Trump 
@realdonaldtrump
111.8M followers

Narendra Modi 
@narendramodi
107.1M followers

Rihanna 
@rihanna
98.7M followers

NASA 
@nasa
92.3M followers

Justin Bieber 
@justinbieber
91.8M followers

KATY PERRY 
@katyperry
90M followers

Taylor Swift 
@taylorswift13
84M followers

Lady Gaga 
@ladygaga
75.5M followers

Virat Kohli 
@imvkohli
73.5M followers

Kim Kardashian 
@kimkardashian
70.9M followers

YouTube 
@youtube
68.8M followers

Neymar Jr 
@neymarjr
66.5M followers

Bill Gates 
@billgates
65.3M followers

Selena Gomez 
@selenagomez
63.1M followers

The Ellen Show
@theellenshow
62.2M followers

CNN 
@cnn
61.7M followers

X 
@x
60.7M followers









![GouravXDev's tweet photo. Day 157 ✅ | #GFG160DaysOfCoding
📌 Find Duplicate (1..N-1)
✨ XOR trick :-
ans ^= i ^ arr[i];
All cancel out → leftover = duplicate
⏱ O(N) | 💾 O(1)
#BitMagic #XOR #Arrays #DSA #GeekStreak2025 https://t.co/nFzi4tGa0b](https://pbs.twimg.com/media/Gz1U0RgaoAAvevx.png)





![GouravXDev's tweet photo. Day 155 ✅ | #GFG160DaysOfCoding
📌 Implement Trie
🔹 Node → children[] + isLeaf
🔹 Ops: Insert | Search | Prefix
⏱ O(L) / op | 💾 O(ΣL)
#Trie #PrefixTree #Strings #DSA #GeekStreak2025 https://t.co/7faFwRSgeW](https://pbs.twimg.com/media/Gzrk4TYbcAEj6YQ.png)
![GouravXDev's tweet photo. Day 155 ✅ | #GFG160DaysOfCoding
📌 Implement Trie
🔹 Node → children[] + isLeaf
🔹 Ops: Insert | Search | Prefix
⏱ O(L) / op | 💾 O(ΣL)
#Trie #PrefixTree #Strings #DSA #GeekStreak2025 https://t.co/7faFwRSgeW](https://pbs.twimg.com/media/Gzrk4TIbAAADRkn.png)