err0rgod·Feb 15How I Learned Linked List in 5 daysIn everyones’s DSA journey there are always certain restarts where we always start from arrays and this process fully kills our motivation…
Vikassinghyadav·Sep 19, 2024Best Time to Buy and Sell Stock: I,II,III & IVBest Time to Buy and Sell Stock-I:
Utkarsh Barde·Sep 9, 2024Leetcode POTD: 2326. Spiral Matrix IVYou are given two integers m and n, which represent the dimensions of a matrix.
Gismet_Majidov·Sep 5, 2024Binary search: Part 4 — Solving LeetCode 1870. Minimum Speed to Arrive on TimeWe continue our series of Binary search. In this article, we will solve another nice LeetCode problem similar to the problems in the…
Utkarsh Barde·Sep 5, 2024Leetcode 2028. Find Missing ObservationsYou have observations of n + m 6-sided dice rolls with each face numbered from 1 to 6. n of the observations went missing, and you only…
Runa Alam·Aug 20, 2024Swift Essentials for LeetCode: Arrays (Part 2)Welcome to the Swift Essentials for LeetCode: Array series! In this post, we’ll dive into the following key topics:
Muhammad Osama·Aug 12, 2024Counting Seniors from a List of DetailsIn many data processing tasks, you might encounter situations where you need to extract and analyze specific information from strings in a…
bytePudding·Jul 24, 2024LeetCode 735 : Asteroid CollisionTime complexity of this algorithm takes O(n) because we are iterating over the asteroids array. meanwhile, stack calculation such as pop()…
Jyothi·May 20, 2024Squares of a sorted arrayThis is an easy two pointer approach problem. Below is the solution: