🚀 LeetCode Progress Update Just solved LeetCode 2828 – Check if a String Is an Acronym of Words ✅ 💡 Key Idea: Compared the first character of each word with the corresponding character in the given string — simple logic, but a great reminder that clarity beats complexity! 🧠 What I learned: Importance of index-based comparison Writing clean and readable conditions Thinking in terms of patterns, not just code ⚡ Result: Accepted with 1 ms runtime 💻 Consistency is the goal — one problem at a time! 🔥 #LeetCode #100DaysOfCode #Python #CodingJourney #ProblemSolving #Consistency #DataStructures
LeetCode 2828: Check if String Is Acronym of Words
More Relevant Posts
-
🚀 LeetCode Progress Update – Problem Solved! ✅ Problem: Remove Trailing Zeros From a String 💡 Approach: Used reverse traversal to find the first non-zero digit and sliced the string accordingly. 🔍 Key Learning: Efficient string manipulation can avoid unnecessary conversions. Traversing from the end helps solve trailing-based problems quickly. 💻 Code Insight: Instead of removing zeros one by one, I identified the breakpoint and sliced the string — making it optimal and clean. ⏱️ Performance: Runtime: 3 ms ⚡ Beat: 66%+ users Memory: 19.23 MB 📈 Consistency is key — one problem closer to mastery! #LeetCode #CodingJourney #Python #ProblemSolving #DSA #100DaysOfCode
To view or add a comment, sign in
-
-
Day 64 of the #three90challenge 📊 Today I learned about Functions in Python — a key concept for writing clean and reusable code. Instead of repeating the same logic multiple times, functions allow us to define it once and reuse it whenever needed. What I practiced today: • Creating functions using def • Passing inputs (parameters) • Returning outputs using return • Writing reusable and organized code Example thinking: Instead of writing the same code again and again, functions help turn it into a single reusable block. Example: def calculate_total(a, b): return a + b print(calculate_total(5, 10)) This makes code more efficient, readable, and scalable. From writing code → to structuring it better 🚀 GeeksforGeeks #three90challenge #commitwithgfg #Python #DataAnalytics #LearningInPublic #Consistency #Upskilling #PythonBasics
To view or add a comment, sign in
-
🌟 New Blog Just Published! 🌟 📌 Fast Python Project Setup 2026 with uv, Ruff, Ty, and Polars 🚀 📖 Starting a new Python project used to feel like assembling a jigsaw puzzle before you could write any code. You had to pick an environment manager, a dependency locker, a formatter, a linter, and a...... 🔗 Read more: https://lnkd.in/dZDzhD8G 🚀✨ #uv #ruff #polars
To view or add a comment, sign in
-
Day 1 of my LeetCode journey 🚀 🧩 Problem: Minimum Distance to the Target Element (1848) 💡 Approach: Looped through the array and tracked the minimum absolute difference whenever the target appeared. 📚 What I learned today: • How to iterate through a list efficiently • Using abs() to compute absolute difference • Tracking minimum values during iteration • Initializing variables correctly using infinity • Better understanding of loops and conditional checks in Python 🛠 Language Concepts Used: • for-loop • if condition • abs() function • min() logic / running minimum ⏱ Time Complexity: O(n) 📦 Space Complexity: O(1) 🔗 GitHub: https://lnkd.in/gZ23dWkV #LeetCode #Python #DSA #100DaysOfCode #LearningInPublic
To view or add a comment, sign in
-
-
🚀 Day 44 of My Coding Journey Today I explored Python Regular Expressions and learned how to find the start and end indices of substrings, even when they overlap! 🔍 💡 Key Takeaways: ✨ start() and end() help locate exact positions of matches ✨ Regular finditer() doesn’t capture overlapping patterns ✨ Using lookahead (?=...) allows us to detect overlapping matches 📌 Example: String: aaadaa Substring: aa Output: (0, 1) (1, 2) (4, 5) 🔥 This was a great reminder that small details (like overlapping cases) can make a big difference in problem-solving. Consistency is key — one step every day! 💙 #Day44 #CodingJourney #Python #Regex #ProblemSolving #LearningEveryday #Consistency
To view or add a comment, sign in
-
-
Understanding closures and variable scoping is what separates a good Python developer from a great one. 💻 In this video, I break down the "Late Binding" behavior in Python lambdas. It’s a common pitfall when creating functions inside loops, leading to bugs that are incredibly hard to track down in large codebases. Key Takeaway: Default arguments are evaluated at definition time, but closures capture variables by reference. To fix this, we use the i=i trick to force early binding. Have you ever encountered this "Late Binding" bug in your production code? #PythonProgramming #SoftwareDevelopment #CleanCode #ComputerScience #TechEducation #BackendDeveloper
To view or add a comment, sign in
-
Day 55 of #GeekStreak60 🚀 Today’s problem was simple yet essential — removing spaces from a string. 🧠 Core Idea Clean the string by eliminating all whitespace. 💡 What I Did → Used Python’s built-in replace() method → Replaced all spaces with an empty string for a clean result 📚 What I Learned Even the simplest problems strengthen fundamentals and highlight how powerful built-in functions can make code clean, readable, and efficient ✨ ✅ Day 55 complete Consistency > Complexity 💪 #GeekStreak60 #GeeksforGeeks #NPCI #Day55 #ProblemSolving #Python #CodingJourney
To view or add a comment, sign in
-
-
Cool new blog post: why async Python is secretly deterministic. We dive into how the Python event loop really works and show that even though async tasks may interleave, they always start execution in a predictable order, making it easier to build concurrent async workflows.
To view or add a comment, sign in
-
-
💻 Day 20 of #100DaysOfCode Today was all about strengthening the basics 🔁 ✔️ Revised loops (for loop & while loop) ✔️ Solved 20+ practice questions ✔️ Focused on improving logic and speed Real progress comes from repetition and consistency. Building a strong foundation step by step 🚀 #Python #CodingJourney #Consistency #LearnToCode
To view or add a comment, sign in
-
I used to juggle pip, virtualenv, pyenv, poetry, and pipx just to set up a Python project. Then I discovered uv - and I haven't looked back. uv is an extremely fast Python package and project manager (written in Rust ⚡) that replaces all of them with a single tool - 10-100x faster than pip. Whether you're starting a fresh project or migrating an existing one, this carousel walks you through everything - from the old way to the new way, command by command. Swipe through ➡️ #Python #SoftwareEngineering #BackendEngineering #uv #DevTools #AIEngineering #FastAPI
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development