Mastering JavaScript & DSA Fundamentals through Code Challenges

Day 113: Deep Dive into Core JavaScript & DSA Fundamentals! I spent today drilling into fundamental programming concepts, using multiple approaches for each problem to maximize my understanding and coding flexibility. This is the crucial prep work before jumping back into advanced Data Structures and Algorithms. 🎯 Today's Focus Areas: String Manipulation: Implemented String Reversal using four distinct methods: Built-in methods (.split(), .reverse(), .join()) Iterative for loop Recursion with substring() Recursion with slice() (and noted the difference between slice and substring on negative indices!) Mathematical Logic: Factorial Finder: Solved iteratively and recursively. Sum of Digits: Solved using string conversion, iterative while loop, and recursion. Power Calculation and Simple Interest Calculation. Conditional & Array Logic: Created a precise function to check for a Leap Year (year % 4 == 0 && year % 100 !== 0 || year % 400 == 0). Found the Biggest Number in an array without using the .sort() method, then compared it with Math.max(). Implemented robust Palindrome Checkers (for individual words and for finding all palindromic substrings). Wrote functions for Vowel/Consonant Counting, Finding Factors, and Calculating Average. Determined the Smallest of Three Numbers using conditional operators and Math.min(). It's been a great exercise in code efficiency and algorithmic thinking. Feeling much more confident and ready to accelerate into my DSA curriculum soon! #JavaScript #DSA #CodingChallenge #ProblemSolving #FullStack #Day113 #LearningInPublic

To view or add a comment, sign in

Explore content categories