Arnav Guptaarnav.tech·Jan 23, 2025Evaluating SotA LLM Models trying to solve a net-new LeetCode style puzzleI am sure a lot of you would have seen this particular meme template. It has given rise to entire genre of tiktoks where girls are amazed at how much calculation guys do to pick which stall to go to in a crowded row of urinals. I actually even made ...10 likes·348 readsllm
Raphael Smithprogrammingthestreets.hashnode.dev·Jan 21, 202530 Days of LeetCode: Day 11 - Decoding the Longest Substring ChallengeToday, let's break down another LeetCode challenge that uses terms that might be unfamiliar or confusing. As always, understanding the problem is half the battle! The Original Challenge Here's how LeetCode presents the problem: Given a string s, fin...JavaScript
Raphael Smithprogrammingthestreets.hashnode.dev·Jan 19, 202530 Days of LeetCode: Day 10 - Decoding Jump Game II from LeetCode LanguageToday, let's explore how to translate a LeetCode challenge from its formal language into something more digestible. Sometimes the biggest challenge is understanding what the problem is actually asking us to do; and for me, this either means overthink...JavaScript
Raphael Smithprogrammingthestreets.hashnode.dev·Jan 18, 2025One Week of LeetCode: The Good, the Bad, and the Not So UglyAfter a week of daily LeetCode challenges, patterns in my problem-solving approach have emerged. Like any developer, I have strengths to build on and areas that need work. Let's break down what I've learned about my coding style. The Good: Strong Ana...JavaScript
Raphael Smithprogrammingthestreets.hashnode.dev·Jan 18, 202530 Days of LeetCode: Day 9 - The Jump GameToday's LeetCode challenge taught me an important lesson about the gap between understanding a problem and implementing it correctly. While I grasped about 70% of the core concepts, my solution revealed some crucial misunderstandings about how to imp...JavaScript
Vimal Murugesannextwithme.hashnode.dev·Jan 17, 2025Merge Two Strings (Leetcode 75 series).You are given two strings word1 and word2. Merge the strings by adding letters in alternating order, starting with word1. If a string is longer than the other, append the additional letters onto the end of the merged string. Return the merged string....leetcode
Raphael Smithprogrammingthestreets.hashnode.dev·Jan 17, 202530 Days of LeetCode: Day 8 - When Building on Previous Solutions BackfiresToday's LeetCode challenge taught me an important lesson about pattern recognition: sometimes seeing similarities to a previous problem can lead you down the wrong path. While yesterday's stock trading problem and today's shared some characteristics,...JavaScript
Tapan Rachchhtapanrachchh.hashnode.dev·Jan 17, 20252425. Bitwise XOR of All Pairingsclass Solution: def xorAllNums(self, num1: List[int], num2: List[int]) -> int: l1 = len(num1) l2 = len(num2) c1 = l1 % 2 c2 = l2 % 2 ans = 0 x = [] if c1: x += num2 if...Python
Raphael Smithprogrammingthestreets.hashnode.dev·Jan 16, 202530 Days of LeetCode: Day 7 - Rethinking Stock Trading ProfitToday's LeetCode challenge taught me a valuable lesson about how tracking state can be more effective than manipulating arrays. The problem seemed straightforward: find the maximum profit you could make by buying and selling a stock once. However, my...JavaScript
Tapan Rachchhtapanrachchh.hashnode.dev·Jan 15, 20252429. Minimize XORclass Solution: def minimizeXor(self, num1: int, num2: int) -> int: bits1 = bin(num1).count('1') bits2 = bin(num2).count('1') if bits2 < bits1: check = "1" replaceWith = "0" else: ...leetcode