Subrat Kumar Pattanaikblog-by-subrat.hashnode.dev·a day agoWhat if, I was greedy?What if, you were given an access to a particular stock? What if, you could know the price of that stock prior to a day through that access? What if, the stock price only changed everyday and not every second? What if, you could hold a single stoc...Discussalgorithms
Gulshan Kumarperfinsights.hashnode.dev·Jan 20, 2024Increasing Triplet SubsequenceGiven an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such indices exists, return false. LeetCode Problem - 334: Link | Click Here class Solution { public...DiscussJava Solutionarray
Akash Devakashdevblog.hashnode.dev·Sep 10, 2023Greedy Algorithms and Optimization ProblemsHey, dear readers! 👋 Welcome to the third article in my blog series. If you haven't read my previous articles, I recommend checking those out first. However, you can also start right here, as I'll be explaining everything from scratch. Introduction ...DiscussAlgorithms for Everyone: A Beginner’s Guide to Algorithm Design Techniquesgreedy
Allan N Kichekiche-allan.hashnode.dev·Aug 1, 2023Leetcode 1071. Greatest Common Divisor of StringsHello, Welcome to my August Challenge of Problem Solving and finding solutions to Leetcode's Data Structures and Algorithm questions. Here, I choose a question daily and try to solve it, and finally pen down my process of flow in solving the question...Discuss·8 likes·29 readsPython
Akash DevforCode Guruscodegurus.hashnode.dev·Jul 20, 2023How To Find Minimum Spanning Trees Using Kruskal's Algorithm: A Step-by-Step GuideIn this blog, we'll delve deep into Kruskal's algorithm and see how it works with an example. I'll also provide you with the algorithm and code so let's start. What's Kruskal's Algorithm Kruskal's algorithm is a greedy algorithm used to find the mini...Discuss·37 readsDSA
Nilesh Saininileshsaini.hashnode.dev·May 27, 2023Remove Linked List ElementsLinked lists are fundamental data structures widely used in programming and algorithmic problem-solving. One common task when working with linked lists is removing specific elements based on a given criterion. Problem Statement: Given the head of a ...Discuss·55 readslinked list
Nilesh Saininileshsaini.hashnode.dev·May 26, 2023Remove Duplicates from Sorted ListWhen working with sorted linked lists, a common challenge is removing duplicate nodes while preserving the original order of distinct elements. In this article, we will delve into solving the “Remove Duplicates from Sorted List” problem. We will expl...Discuss·38 readsJavaScript
Nilesh Saininileshsaini.hashnode.dev·May 9, 2023Valid Palindrome IIPalindrome is a fascinating concept. The beauty lies in its simplicity: a word, phrase, or sequence of characters that reads the same backwards as forward. However, what happens when we introduce a little twist to this classic definition? What if we ...Discuss·1 like·50 readsStrings
Peter Hrobardihjital.hashnode.dev·May 4, 2023Solve a puzzle with programmingSolving a logical puzzle with programming Solve the puzzle in a way that each symbol has its unique value. Guess the operation between the symbols in the cells and then add the cells together to get the number on the right and the bottom. I couple o...Discusspuzzle
Chau Dinh (Chris)chrisdinh.hashnode.dev·Jan 26, 2023[Vietnamese] A valid parenthesis string (JavaScript implement)Chào mọi người, trong bài viết đầu tiên sau Tết 2023, mình muốn bắt đầu bằng một cái gì nó nhẹ nhàng nên quyết định chọn một bài toán tin đã làm khó mình trong khoảng thời gian lúc trước khi đi phỏng vấn để mổ xẻ về thuật toán và cách mình suy nghĩ. ...Discuss·164 readsalgorithms