Filter
Exclude
Time range
-
Near
Day 39: Exam Time, Still Showing Up. (#344) Reverse String Learned in-place swap technique; clean, efficient, O(1) space. Even on hectic days, the streak doesn’t break. That’s discipline. That’s commitment #LeetCode #DSA #ReverseString #InPlaceSwap @LeetCode
2
10
Day 17/100 Study – 30m. Day was packed with a special engagement. Still showed up. Coded reverse string (iterative). Learned recursive version too. Didn’t fully click. Will revisit tomorrow. #day17 #dsa #recursion #reverseString #100daysofcode #consistency #learning #devrel
3
7
152
Day 2/30: Reverse String In Place | #30DayDSAChallenge Today’s focus is on strings and in place operations, and this one teaches an important mindset shift. 👀 📌 The Problem: Given a string, reverse it in place. Example: Input: "hello" Output: "olleh" ❌ The Naive Approach: Create a new string or array and reverse it. This works, but it uses extra space. Can we do it without extra memory? ✅ The Optimal Solution: Two Pointer Technique The idea is simple but powerful. Instead of creating a new string, we use two pointers: • One starting at the beginning • One starting at the end At each step: • Swap the characters • Move both pointers toward the center This continues until the pointers meet. 💻 JavaScript Implementation: function reverseString(s){ let left = 0; let right = s.length - 1; // Move pointers toward center while (left < right){ // Swap characters [s[left], s[right]] = [s[right], s[left]]; // Move pointers left ; right --; } return s; ⏱️ Complexity: Time: O(n) Space: O(1) 🎯 Why This Matters: This problem introduces the two pointer pattern, which appears everywhere: • String manipulation • Array problems • Palindrome checks • Sliding window techniques It also reinforces an important principle: Not every problem needs extra space. Sometimes, pointer movement is enough. Key Takeaway: Simple problems teach powerful patterns. Mastering these basics makes harder problems feel lighter. Day 2 done ✅ 28 more days to go.
1
1
3
110
31 Oct 2025
int main() { string str = "ETR"; string rev = reverseString(str); cout << rev; return 0; }
Without Googling 🚫 Name a vampire who isn’t Dracula.
2
2
176
Reverse String Solved! Solved using two methods: 1️⃣ Recursion 2️⃣ Iterative: Swap characters in a loop from start to end of the string. #DSA #Java #Coding #Recursion #LeetCode #ReverseString
2
57
🔄 DSA Daily – Day 30 (02.09.2025) Solved Reverse String ✅ Sometimes, looking backward is progress too 😉✨ 🎉 30🚀 Next stop: 50 💯 #Day30 #DSA #LeetCode #Java #ReverseString #ProblemSolving #Milestone
5
45
𝐈𝐭’𝐬 𝐃𝐚𝐲 𝟖 𝐨𝐟 𝐭𝐡𝐞 #𝐏𝐲𝐭𝐡𝐨𝐧𝐂𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞 🐍 Today’s snippet might look simple — but are you thinking? 🤔 𝐃𝐫𝐨𝐩 𝐲𝐨𝐮𝐫 𝐚𝐧𝐬𝐰𝐞𝐫 𝐛𝐞𝐥𝐨𝐰 𝐚𝐧𝐝 𝐭𝐚𝐠 𝐚 𝐟𝐫𝐢𝐞𝐧𝐝 who needs to test their Python skills too! 👇 #100DaysOfCode #CodeDaily #PythonFun #CSharpCorner #devchallenge #reversestring #python #pythonchallenge #pythonsofinstagram
2
5
499
𝐈𝐭’𝐬 𝐃𝐚𝐲 𝟖 𝐨𝐟 𝐭𝐡𝐞 #𝐏𝐲𝐭𝐡𝐨𝐧𝐂𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞 🐍 Today’s snippet might look simple — but are you thinking? 🤔 𝐃𝐫𝐨𝐩 𝐲𝐨𝐮𝐫 𝐚𝐧𝐬𝐰𝐞𝐫 𝐛𝐞𝐥𝐨𝐰 𝐚𝐧𝐝 𝐭𝐚𝐠 𝐚 𝐟𝐫𝐢𝐞𝐧𝐝 who needs to test their Python skills too! 👇 #100DaysOfCode #CodeDaily #PythonFun #CSharpCorner #devchallenge #reversestring #python #pythonchallenge #pythonsofinstagram
2
5
1,787
𝐈𝐭’𝐬 𝐃𝐚𝐲 𝟖 𝐨𝐟 𝐭𝐡𝐞 #𝐏𝐲𝐭𝐡𝐨𝐧𝐂𝐡𝐚𝐥𝐥𝐞𝐧𝐠𝐞 🐍 Today’s snippet might look simple — but are you thinking? 🤔 𝐃𝐫𝐨𝐩 𝐲𝐨𝐮𝐫 𝐚𝐧𝐬𝐰𝐞𝐫 𝐛𝐞𝐥𝐨𝐰 𝐚𝐧𝐝 𝐭𝐚𝐠 𝐚 𝐟𝐫𝐢𝐞𝐧𝐝 who needs to test their Python skills too! 👇 #100DaysOfCode #CodeDaily #PythonFun #CSharpCorner #devchallenge #reversestring #python #pythonchallenge #pythonsofinstagram
2
5
486
🚀 Day 12 #100DaysOfCode 🧠 Today's Focus: Solved 🔁 reverseString() ➗ lcmOfTwo() 🔑Takeaways: • String tricks • Logic formulas • Handling edge cases 💡 🔗 Github Code : shorturl.at/ygxao ⏱️ Coding Time : shorturl.at/fLACo #CodeNewbie #BuildInPublic
4
119
#LSPPDay5 of #60DaysOfLearning2025 "Python For AI"-Day 5 Today's learnings: -Loops and Funtions in python Practiced:PrimeChecker,FactorialChecker,MenuDriven Calculator,ReverseString CheckGitHubrepo:github.com/SandeshKhadka23/6… #LearningWithLeapfrog
3
35
Just made my first open-source contribution to [30 Seconds of Code]! 🚀 Added a Python reverseString snippet — small step, big milestone! 🙌 Excitedto keep learning and contributing! 💻✨ #OpenSource #FirstContribution #Python #GSoC2026 #DevCommunity #100DaysOfCode #BuildInPublic
1
90
🙃 string reverseString(string s, int left = 0) { int right = s.size() - left - 1; if (left >= right) return s; swap(s[left], s[right]); return reverseString(s, left 1); } int main() { cout << reverseString("India"); return 0; }

*Two pointer 🫣 int main() { string s = "India"; int left = 0, right = s.size() - 1; while (left < right) { swap(s[left], s[right]); left ; right--; } cout << s << endl;
1
2
60
🚀 JavaScript Trick: Reverse a string in one line! const reverseString = str => str.split("").reverse().join(""); 🔄 Try it out & let me know where you'd use it! #JavaScript #Coding #WebDev #100DaysOfCode
4
77
17 Jan 2025
Day 11 #CodeChallenge: Solved 'Reverse String' on LeetCode. A simple yet elegant problem using two pointers. #ReverseString #LeetCode
4
236
26 Dec 2024
package main import ( "fmt" "strings" ) func reverseString(input string) string { // Use a builder because... why not? (Weird but works) var builder strings.Builder builder.Grow(len(input)) // Iterate backward over the input string for i := len(input) - 1; i >= 0; i-- { builder.WriteByte(input[i]) } // Convert builder to a string return builder.String() } func main() { str := "weird" fmt.Printf("Original: %s, Reversed: %s\n", str, reverseString(str)) }
1
1
25
REVERSE A STRING! Write a function that takes a string & returns it reversed. (e.g., "Hello, World!" → "!dlroW ,olleH") Share your code & learn from others! Let's celebrate coding & support each other! #DonClemTech#ReverseString #Programming #CodeNewbie #CodingCommunity
3
3
5
80
Day 22 of the #75daysofleetcode challenge! 🔄 Solved #ReverseStringII and #ReverseString today. Reversing strings and moving forward with #DSA skills! 💪 #LeetCode #Challenge #CodingJourney #100DaysOfCode #CodeNewbie #programming
7
25
const reverseString = (s) => s.split('').reverse().join(''); Moment of truth… Output: 'olleh' 🙃
4 Oct 2024
Can You Reverse a String?🤔 Day 83 of proving doing a 100 LeetCodes in a 100 Days is easy! #leetcodehashtag #100dayschallengehashtag #interviewquestions
1
3
159
Day 8 of my #geekstreak2024 challenge with @DeutscheBank! Solved an easy one today: "Reverse Words in a String" based on '.' delimiter on @geeksforgeeks 🔄 Used stringstream for the win! 🚀 #DeutscheBank #codingstreak #problemSolving #POTD #ReverseString
2
15