MikeyforLeet Code Solutionsleetcodesolver.hashnode.dev·Sep 22, 202311. leetcode solution using JavaScript11. Container With Most Water You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the i<sup>th</sup> line are (i, 0) and (i, height[i]). Find two lines that together with the x-axis form ...Discuss·32 readsleetcode-solution

Luqman Shabanluqmanshaban.blog·Sep 21, 2023Mastering Data Structures and Algorithms: Planting Flowers with No Adjacent BloomsIntroduction: In our ongoing journey through the exciting world of Data Structures and Algorithms (DSA), we have encountered a diverse range of challenges, from sorting algorithms to graph traversal. Today, we are continuing our exploration with a un...DiscussLeetCode 75datastructure

MikeyforLeet Code Solutionsleetcodesolver.hashnode.dev·Sep 19, 2023287 Leetcode Solution using JavaScript287. Find the Duplicate Number LeetCode Solution using JS Let's look at the problem statement: Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive. There is only one repeated number in nums, r...Discussleetcode-solution

MikeyforLeet Code Solutionsleetcodesolver.hashnode.dev·Sep 17, 2023238 Leetcode Solution JavaScriptQuestion : 238. Product of Array Except Self Medium Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product of any prefix or suffix of nums is guaranteed ...Discuss238 leetcode solution using JavaScript

Himanshu Guptawritetoconnect.hashnode.dev·Sep 16, 2023#100 days of LeetCodeDay 1 of 100 100daysofcode Majority Element Majority Element II Two Sum //1. Majority Element class Solution { public: int majorityElement(vector<int>& nums) { map<int, int> m; for(int i=0; i<nums.size(); i++){ m...Discuss·1 likecoding

Mahesh Kamalakarmaheshkamalakar.hashnode.dev·Sep 15, 2023Day02 : Solving the "Check if Array Is Sorted and Rotated" Problem in JavaIntroduction Welcome to Day 2 of the 30-Day LeetCode Challenge! Today, we're diving into the "Check if Array Is Sorted and Rotated" problem. This problem asks us to determine if an array was originally sorted in non-decreasing order and then rotated ...Discussleetcode

Mahesh Kamalakarmaheshkamalakar.hashnode.dev·Sep 14, 2023Day01 : Solving LeetCode's "Valid Palindrome" Problem in JavaIntroduction LeetCode is a popular platform for honing your coding skills and problem-solving abilities. One of the fundamental problems you might encounter is checking whether a given string is a palindrome. In this blog post, we'll tackle the "Vali...Discussleetcode

Jyotirmoy Barmanjyotirmoy.dev·Sep 12, 2023Evaluate Reverse Polish Notation - Leetcode 150Problem - Leetcode You are given an array of strings tokens that represent an arithmetic expression in a Reverse Polish Notation. Evaluate the expression. Return an integer that represents the value of the expression. Note that: The valid operators ...DiscussDS-And-Algoleetcode

Ved Asolevedasole.hashnode.dev·Sep 8, 2023Leetcode 9 — Palindrome Number ProblemQuestion Link: Palindrome Number Problem Statement : Given an integer x, return true if x is a palindrome*, and false otherwise*. Example 1: Input: x = 121 Output: true Explanation: 121 reads as 121 from left to right and from right to left. Example...Discuss·1 likeJava

Harshed Abdullaharshedabdulla.hashnode.dev·Sep 3, 2023Mastering Algorithms: 28 Days of LeetCode AdventuresOn the first day of my 28-day LeetCode journey, I found myself back in my hometown, amidst the bustling atmosphere of home renovation work taking place in our house. Despite the day's busy schedule, I was determined to embark on my coding journey. By...Discuss·1 likeleetcode