Day 29 of solving problems on Codewars, and today’s challenge was “Fix String Case” (7 kyu). 💻 It focused on analyzing characters in a string and deciding whether the final output should be uppercase or lowercase based on the majority. A small problem, but a great reminder of how attention to detail matters in programming. Every challenge helps sharpen logic and improve code clarity. One step closer to becoming a stronger developer, one problem at a time. 🔍 #100DaysOfCode #Codewars #JavaScript #ProblemSolving #CodingJourney #LearnToCode #DeveloperGrowth #Consistency
Fixing String Case on Codewars (7 kyu)
More Relevant Posts
-
Leetcode Day 1 : Problem 1 (Merge Sorted Array) Just solved my first LeetCode problem. It was the classic "Merge Sorted Array" sounds simple, right? But here's what I actually learned: JavaScript's .sort() doesn't sort numbers by default, it sorts them as strings. [1, 10, 2] becomes [1, 10, 2] not [1, 2, 10]. A one-line bug that would fail silently. Reassigning an array variable (arr = []) doesn't modify the original. LeetCode wants in-place changes. That took me a moment. I was filtering out zeros thinking they were empty slots, but 0 is a perfectly valid element. Hidden test cases would've caught me. Three bugs. One "easy" problem. Tons of learning. The real lesson? Passing the visible test cases doesn't mean your code is correct. Always think about edge cases. If you've been putting off starting DSA Interview questions like I was just open problem 1 and start. The first step is the hardest. #DSA #LeetCode #JavaScript #CodingJourney #Programming
To view or add a comment, sign in
-
-
Day 2- of Leetcode 30 days of javascript. Problem 2620 The problem statement was to return a function inside a parent function, and when the parent function is called, it should return in subsequent ascending +1 result. i,e n, n+1, n+2 for any value of n. This problem was based on closures and lexical scope of higher ordered function. There are many approach for this problem but I tried by setting a counter n - 1 and then incrementing it by 1, ie counter += 1. I am open to advice and please comment on how can I improve. #Leetcode #coding #javascript #Logic #growth #programming #higherorderfunction #closures #lexicalscope #scope
To view or add a comment, sign in
-
-
LeetCode Day 3 : Problem 189 (Rotate Array) Just solved another LeetCode problem. It was "Rotate Array", sounds simple, right? But here's what I actually learned: My first solution used pop() and unshift() in a loop. It worked but was O(n×k), every unshift shifts the entire array one step, and I was doing it k times. On a large array that's painfully slow. I forgot to handle the case where k is larger than the array length. Rotating a 3 element array by 6 steps is the same as rotating by 0. One line fix, k = k % nums.length. Always think about edge cases before submitting. The optimal fix? The Reverse Trick. Reverse the entire array, then reverse the first k elements, then reverse the rest. Three reverses. One pass. O(n) time, O(1) space. Hard to believe it works until you trace through it yourself. Six problems in. The pattern is clear, there is always a brute force solution and a clever one. The clever one usually involves looking at the problem from a completely different angle. The real lesson? If your solution involves a loop inside a loop, always ask yourself if there is a smarter way. #DSA #LeetCode #JavaScript #CodingJourney #Programming
To view or add a comment, sign in
-
-
In today in class, got a great explaination by Suraj Kumar Jha core Object-Oriented Programming (OOP) concepts in JavaScript. We covered prototypes & constructor functions, modern class features (new, static, private, super), as well as getters and setters. Also revisited key OOP principles like inheritance, polymorphism, encapsulation, and abstraction. Strengthening these fundamentals is helping me better understand how JavaScript works under the hood and write more structured, scalable code #JavaScript #OOP #WebDevelopment #LearningJourney
To view or add a comment, sign in
-
-
📚 New article just published on SYUTHD! 🔖 Mastering Local-First Frameworks: The 2026 Guide to Building With PGLite and CRDTs 🏷️ Category: JavaScript Frameworks 📖 Full article → https://lnkd.in/gMuajsA2 👉 Follow our page for more tech tutorials: https://lnkd.in/gsJDptPM 💬 Telegram: https://t.me/nisethtechno 👍 Facebook: https://lnkd.in/gsKv3Dyn #JavaScriptFrameworks #Tech #Tutorial #Programming #TechBlog #2026
To view or add a comment, sign in
-
Sharing beginner-friendly notes on how JavaScript really works behind the scenes🧠 Covered core concepts like Memory Heap, Call Stack, Execution Context, Event Loop, Web APIs, Microtasks vs Macrotasks, async/await, and the order of execution with practical examples. Also explained stack overflow, garbage collection, and priority rules for smooth async programming. A practical guide to understanding JavaScript’s runtime architecture and why your code behaves the way it does. Feedback and suggestions are welcome! #JavaScript #EventLoop #Coding #Programming #Learning
To view or add a comment, sign in
-
Understanding Sets, Maps, and Objects in JavaScript: When and How to Use Each Learn the differences between JavaScript's Set, Map, and plain Object data structures, their performance characteristics, and real‑world use cases. This tutorial walks you through practical examples, best practices, and guidelines for choosing the right structure for your code. Read the full article 👇 https://lnkd.in/gpUYsFux #JavaScript #WebDevelopment #Programming #Tech #Coding #JavaScriptSet #JavaScriptMap #DataStructures #FrontendDevelopment #JSBestPractices #DigitalTransformation #FutureOfWork
To view or add a comment, sign in
-
-
LeetCode Day 1 : Problem 2 (28 - Remove Element) Just solved my second LeetCode problem. It was "Remove Element" , sounds straightforward, right? But here's what I actually learned: Using .filter() creates a brand new array. It can never modify the original, doesn't matter how you use it. LeetCode checks the original, so it saw nothing changed. Reassigning an array (nums = nums.filter(...)) is not the same as modifying it. Same trap as Problem 1, and I fell for it again. The fix? Two Pointer pattern, one pointer reads every element, another only moves when a valid element is found. No new array created, original gets modified directly. Two problems. Same core lesson showing up again, never create a new array when LeetCode asks for in-place changes. The real lesson? Some bugs don't show up in your own tests. Always ask yourself "am I modifying the original or just creating something new?". #DSA #LeetCode #JavaScript #CodingJourney #Programming
To view or add a comment, sign in
-
-
🚀 JavaScript Fundamentals Series — Part 9 Once you understand objects, the next step is Object-Oriented Programming. OOP helps structure complex programs using: • Classes • Objects • Encapsulation • Reusable code In this guide I explain how JavaScript implements OOP and how it helps organize applications. Full guide 👇 https://lnkd.in/d37XSu8V #javascript #softwareengineering #webdevelopment
To view or add a comment, sign in
-
Chai aur TypeScript – Day 12 🚀 Today I learned about OOP (Object-Oriented Programming) in TypeScript. 🔑 Key Learnings: • Classes & constructors for object creation • Access modifiers → public, private, protected • readonly → properties cannot be changed • Getters & setters → controlled access • static → belongs to class, not instance • abstract → blueprint for other classes • Composition → alternative to inheritance 💡 Big Insight: TypeScript makes OOP more structured and type-safe #ChaiAurTypescript #TypeScript #JavaScript #LearningInPublic #DeveloperJourney #ChaiCode Hitesh Choudhary Chai Aur Code
To view or add a comment, sign in
-
Explore related topics
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