Sudip Ghoshforimsudip's blogimsudip.hashnode.net·Sep 2, 2022Leetcode journey - Question 8 - String to Integer (atoi)Problem: Q8. String to Integer (atoi) Implement the myAtoi(string s) function, which converts a string to a 32-bit signed integer (similar to C/C++'s atoi function). The algorithm for myAtoi(string s) is as follows: Read in and ignore any leading wh...Discuss·11 likes·56 readsleetcode-solution
Aayush ShahforAayush's Blogaaaaayushh.hashnode.net·Jan 1, 2023Word PatternHello guys! Welcome back to the Leetcode Daily series. I apologize for the inconsistent blogs, I've been busy moving to a new city for my first-ever in-office internship! Wish me luck, tomorrow's my first day! We have a very simple problem ahead of u...Discuss·10 likesLeetcode Daily Solutionsleetcode
Aayush ShahforAayush's Blogaaaaayushh.hashnode.net·Jan 19, 2023Insert Interval Leetcode SolutionHello and welcome back to the Daily Leetcode Series! We'll be solving a very simple, but extremely logical problem today. Without further ado, let's get started. Understanding The Problem Let's take a look at the problem statement. You are given an ...Discuss·10 likesLeetcode Daily Solutionsleetcode
VaishalifordataStructuresvaishalionlc.hashnode.net·Apr 23, 2023Leetcode #2653 Sliding Subarray BeautyLINK TO THIS QUESTION In this article, I will be solving Sliding Subarray Beauty from Weekly Contest 342 on LeetCode using C++. It's a nice question to practice problem-solving skills. My approach to solving this question is simple and easy to follow...Discuss·39 readsleetcode
ShrishforLeetcode problemsleetcode.hashnode.net·Apr 23, 2023Leetcode 133 Clone GraphIt is highly recommended that you try solving the problem independently by reading the specifications at https://leetcode.com/problems/clone-graph/ before looking at the solution. This will help improve your problem-solving abilities. Graphs are a wi...Discussleetcode
Vidit ManiyarforVidit's Blogviditmaniyar.hashnode.net·Apr 22, 2023LeetCode 100: Same TreeGiven the roots of two binary trees p and q, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally identical, and the nodes have the same value. Approach: To solve this problem, we ...Discussleetcode
MadCoding7588forMadCoding7588's blogcrashcode.hashnode.net·Apr 21, 2023Merge Two Sorted Listshttps://youtu.be/4JRkYJ0zgDgDiscussLeetCode Daily Challengeleetcode
Dhayal RamforIdea -> Code -> Productdhayalram.hashnode.net·Apr 19, 2023Leetcode - 1372. Longest ZigZag Path in a Binary TreeQuestion / Problem: Leetcode Solution class Solution { int find(TreeNode root, int isLeft, int count){ if(root == null) return count; if(isLeft == 1) return Math.max(find(root.right,0,count+1), find(root.left,1,0)); ...Discussleetcode
TopGunforTop Gun 🚀ankushsrj.hashnode.net·Apr 19, 2023Revisiting LeetCode: Strategies for SuccessSome tips on how to revise LeetCode problems that you have attempted Review your initial solution: Take a look at the code you wrote initially and try to understand what it does. Identify the key data structures and algorithms you used and how you a...Discussleetcode
Chiagoziem Elgibbor forChiagoziem's Blogelgibbor.hashnode.net·Apr 11, 2023Merge two sorted lists. Leetcode 21 (a novel approach).Here is the problem statement: Given the heads of two sorted linked lists list1andlist2, Merge the two lists into one sorted list. The list should be made by splicing together the nodes of the first two lists. Return the head of the merged linked lis...Discuss·1 likeProgramming Blogs
Sean CoughlinforSean Coughlin's Blogscc33.hashnode.net·Apr 8, 2023How to Determine Valid ParenthesesThe Problem With this article, I will be covering the Leetcode Valid Parentheses problem. Leetcode describes the problem with the following. Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input stri...DiscussSWE Interview Preparationinterview
Sean CoughlinforSean Coughlin's Blogscc33.hashnode.net·Apr 5, 2023Find the Index of the First Occurrence in a String (Naive and KMP Solutions)Problem Let's take a look at the problem Find the Index of the First Occurance in a String. In this problem, you have two strings: a needle and a haystack. The goal is to return the index of the needle in the haystack or -1 if the needle does not exi...DiscussSWE Interview PreparationPython
Adarsh GogineniforAdarsh Gogineni's blogayydarsh.hashnode.net·Apr 5, 2023LeetCode #100: Same Tree - PythonI believe that regularly tackling LeetCode problems is an effective way to grow one's coding skills. Through this blog, my goal is to share my journey and insights with fellow enthusiasts, providing a deeper understanding of the problem-solving proce...Discussleetcode