← All tags

#LearnToCode

4 uses
Posts
Post Mrinal

Successfully solved the Integer to Roman problem in JavaScript and got an Accepted result with all 3999/3999 test cases passed! 🎉

The approach uses a greedy algorithm with Roman numeral values arranged from largest to smallest, including special combinations such as: 1000 → M 900 → CM 500 → D 400 → CD 100 → C 90 → XC 50 → L 40 → XL 10 → X 9 → IX 5 → V 4 → IV 1 → I The algorithm repeatedly checks whether the current number is greater than or equal to a Roman numeral value. If it is, that symbol is added to the result and the…

8
1
Post Mrinal

Another LeetCode Problem Solved! | Roman to Integer

Consistency is the key to becoming a better programmer, and today I’m excited to share another successful milestone in my coding journey! 🎯I successfully solved the Roman to Integer problem on LeetCode using JavaScript, achieving an Accepted status with all 3999 test cases passed.🔍 What I Learned:The problem focuses on converting Roman numerals into their corresponding integer values. Roman numer…

5
Post Mrinal

Another coding problem successfully solved!

Today’s challenge was LeetCode – Zigzag Conversion, a great problem for practicing string manipulation, arrays, loops, and direction-based traversal in JavaScript. The problem gives us a string and a number of rows. We need to arrange the characters in a zigzag pattern and then read the characters row by row to generate the final string. For example: PAYPALISHIRING With numRows = 3, the character…

6

💻 Every Great Developer Started With "Hello, World!"

No one writes perfect code on day one.Every senior developer once struggled with:🐛 Bugs that made no sense.☕ Late-night debugging sessions.📚 Learning new frameworks.❌ Code reviews full of suggestions.🔄 Rewriting code they thought was "perfect."The difference wasn't talent.It was consistency.Technology evolves every day, and so do great developers. Whether you're writing your first line of code or…

2
1