Ujjwal Sharmaujjwalsharma.hashnode.dev·Jul 7, 2024Water bottle Problem (Leetcode POTD)Problem Link Click Here Approach We need to calculate the maximum number of full water bottles we can consume right so let's consider one test case Total filled bottled = 15, Exchange Rate = 4 So initially we will consume 15 bottles now these bott...Discussleetcode
Teja Illaakadurga.hashnode.dev·Jul 4, 2024Must do Leetcode Problems for interviewsHi there, These are the must-do coding interview problems for interviews that will help you to Crack coding interviews. Two Sum Longest Substring Without Repeating Characters Median of Two Sorted Arrays Container With Most Water Merge k Sorted L...DiscussLeetcode-grinding
Ujjwal Sharmaujjwalsharma.hashnode.dev·Jul 3, 2024Rotate the array by K placesQuestion link - https://leetcode.com/problems/rotate-array/ Approach 1 Brute Force approach Create a temporary vector that will store the number of arrays present to be rotated. Now we need to normalize the rotation because for example if the size ...DiscussDailyDoseOfDSA
Yousef Waelyousefwael02.hashnode.dev·Jul 2, 2024Intersection of Two Arrays || - LeetCode 350 - Beats 100%Problem Statement Given two unsorted arrays nums1 and nums2, it is required to find their intersection. For example, if nums1 = {4,9,5} and nums2 = {9,4,9,8,4} their intersection would be {4,9}. The result can be in any order. Approach in C++ The arr...Discussleetcode
Sean Coughlinblog.seancoughlin.me·Jun 28, 2024Mastering LeetCode: Solving the "Product of Array Except Self" ProblemIntroduction Solving algorithmic problems is a critical skill for any aspiring software engineer, and LeetCode offers a treasure trove of challenges to hone this skill. One such problem is the "Product of Array Except Self," a classic problem that te...DiscussSWE Interview Preparationleetcode
Ishan Bhusariishanbhusari.hashnode.dev·Jun 12, 2024129. Detailed Solution for Solving "129. Sum Root To Leaf Numbers"(Note: I think it's a testament nowadays to not copy answers directly from ChatGPT. On that note, I'd like to inform the readers that the below answer has not been derived from ChatGPT nor has it been proofread or even checked grammatically by the so...Discussdata structures
Karthik Shettykarthikshetty.hashnode.dev·Jun 5, 2024Squares of a Sorted Array | JavaScript | LeetCodeHere is a solution for an array problem called "Squares of a Sorted Array" using JavaScript. Problem: Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order. Now let u...Discussleetcodedaily
Kenny Carnealblog.kennycarneal.com·Jun 3, 2024Leetcode 2486. Append Characters to String to Make SubsequenceIntuition Get the length of the subsequence (if any) and subtract it from the length of t to find out how many characters we have to append (if any) Approach Keep a count of the length of the subsequence while iterating through s and then subtract th...DiscussLeetCode journeyleetcode
Subhradeep Sahasubhradeepsaha.hashnode.dev·May 15, 2024Solving a Leetcode problem daily — Day 11 | Find Minimum in Rotated Sorted Arrayhttps://blog.devgenius.io/solving-a-leetcode-problem-daily-day-11-find-minimum-in-rotated-sorted-array-86cea074a138 Here is the Leetcode problem —153. Find Minimum in Rotated Sorted Array Problem Statement Suppose an array of length n sorted in a...DiscussSolving a Leetcode problem daily153
Umang Srivastavaoutlierchronicles.hashnode.dev·May 13, 2024861. Score After Flipping MatrixProblem Statement You are given an m x n binary matrix grid. A move consists of choosing any row or column and toggling each value in that row or column (i.e., changing all 0's to 1's, and all 1's to 0's). Every row of the matrix is interpreted as a ...Discuss·10 likesLeetCode Dailyleetcode