---
title: "#greedy-algorithms articles | Hashnode"
description: "Explore 14 articles tagged #greedy-algorithms on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/greedy-algorithms"
---

Tag

# #greedy-algorithms

14 posts · 2 followers

[Sk Shoyeb](https://hashnode.com/@skshoyebjs) · [Sep 18](https://hashnode.com/posts/maximum-number-of-non-overlapping-substrings-java-solution-greedy/6aacbe1a35039607ed5ba109)

### [Maximum Number of Non-Overlapping Substrings | Java Solution | Greedy](https://skshoyebjavascript.hashnode.dev/maximum-number-of-non-overlapping-substrings-java-solution-greedy?utm_source=hashnode&utm_medium=feed)

Given a string s of lowercase letters, you need to find the maximum number of non-empty substrings of s that meet the following conditions: The substrings do not overlap, that is for any two substrin

3 min read · [skshoyebjavascript.hashnode.dev](https://skshoyebjavascript.hashnode.dev/maximum-number-of-non-overlapping-substrings-java-solution-greedy?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Jun 7](https://hashnode.com/posts/fractional-knapsack/6a25f3ca3cc34fb654ff7b5a)

### [Fractional Knapsack](https://chetan77.hashnode.dev/fractional-knapsack?utm_source=hashnode&utm_medium=feed)

Problem Given two arrays, val\[\] and wt\[\] , representing the values and weights of items, and an integer capacity representing the maximum weight a knapsack can hold, determine the maximum total value

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/fractional-knapsack?utm_source=hashnode&utm_medium=feed)

[Nireus79](https://hashnode.com/@nireus79) · [May 29](https://hashnode.com/posts/the-quality-controller-agent-why-greedy-algorithms-corrupt-systems/6a194089dcebc3138e8a6c3e)

### [The Quality Controller Agent: Why Greedy Algorithms Corrupt Systems.](https://nireus79.hashnode.dev/the-quality-controller-agent-why-greedy-algorithms-corrupt-systems?utm_source=hashnode&utm_medium=feed)

And How to Fix Them...

18 min read · [nireus79.hashnode.dev](https://nireus79.hashnode.dev/the-quality-controller-agent-why-greedy-algorithms-corrupt-systems?utm_source=hashnode&utm_medium=feed)

[Chetan Datta](https://hashnode.com/@chetan77) · [Nov 18, 2025](https://hashnode.com/posts/assign-cookies/691bd10a6a335ed1ccc52788)

### [Assign Cookies](https://chetan77.hashnode.dev/assign-cookies?utm_source=hashnode&utm_medium=feed)

Problem Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor g\[i\], which is the minimum size of a cookie that the child will be content with;...

2 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/assign-cookies?utm_source=hashnode&utm_medium=feed)

[Pranav Zambare](https://hashnode.com/@pranavZambare) · [Jul 15, 2025](https://hashnode.com/posts/comprehensive-guide-to-codechef-starter-194-mastering-mark-all/68763064e784665db8c1320e)

### [Comprehensive Guide to Codechef Starter 194: Mastering 'Mark All](https://bytesized-pranav.hashnode.dev/comprehensive-guide-to-codechef-starter-194-mastering-mark-all?utm_source=hashnode&utm_medium=feed)

Learn strategies to solve Codechef Starter 194: 'Mark All' with insights, code attempts, and efficient solutions for minimizing total operation costs

4 min read · [bytesized-pranav.hashnode.dev](https://bytesized-pranav.hashnode.dev/comprehensive-guide-to-codechef-starter-194-mastering-mark-all?utm_source=hashnode&utm_medium=feed)

[Paul Ishaili](https://hashnode.com/@mrpaulishaili) · [Jun 24, 2025](https://hashnode.com/posts/algorithm-design-the-ultimate-guide-for-developers/685ae00839dc6c70db1dbb32)

### [Algorithm Design: The Ultimate Guide for Developers](https://devpacademy.hashnode.dev/algorithm-design-the-ultimate-guide-for-developers?utm_source=hashnode&utm_medium=feed)

Comprehensive guide to algorithms for IT students & engineers. Covers recursion, DP, greedy methods, and optimization techniques with code examples.

13 min read · [devpacademy.hashnode.dev](https://devpacademy.hashnode.dev/algorithm-design-the-ultimate-guide-for-developers?utm_source=hashnode&utm_medium=feed)

[kasumbi phil](https://hashnode.com/@kasumbi) · [Jun 12, 2025](https://hashnode.com/posts/solving-the-activity-selection-problem-with-greedy-algorithms/684aeb998d4efa48d03c3f70)

### [Solving the Activity Selection Problem with Greedy Algorithms](https://kasumbidatastructures.hashnode.dev/solving-the-activity-selection-problem-with-greedy-algorithms?utm_source=hashnode&utm_medium=feed)

🚀 What I Learned Today Today, I explored one of the classic greedy algorithm problems — the Activity Selection Problem. This problem taught me how to use the greedy approach to solve scheduling tasks efficiently. 💡 Problem Statement You are given ...

2 min read · [kasumbidatastructures.hashnode.dev](https://kasumbidatastructures.hashnode.dev/solving-the-activity-selection-problem-with-greedy-algorithms?utm_source=hashnode&utm_medium=feed)

[Adiam Ahmed](https://hashnode.com/@AdiamAhmed) · [May 16, 2025](https://hashnode.com/posts/best-time-to-buy-and-sell-stock/6826a4aa0df085626c35be45)

### [Best Time to Buy and Sell Stock](https://adiamvsleetcode.hashnode.dev/best-time-to-buy-and-sell-stock?utm_source=hashnode&utm_medium=feed)

Solving it using Brute Force to Greedy Genius

8 min read · [adiamvsleetcode.hashnode.dev](https://adiamvsleetcode.hashnode.dev/best-time-to-buy-and-sell-stock?utm_source=hashnode&utm_medium=feed)

[Fatima Jannet](https://hashnode.com/@fatimaJannet) · [Aug 27, 2024](https://hashnode.com/posts/learn-greedy-algorithm/66cde021bed8da974b55dc16)

### [Learn Greedy Algorithm](https://mahia.hashnode.dev/learn-greedy-algorithm?utm_source=hashnode&utm_medium=feed)

In the previous blog, I mentioned I would create a separate blog on the Greedy Algorithm, and here it is. This is the blog! Let's get started! What is Greedy Algorithm? Imagine a pile of both good bricks and broken pieces. Now, you are told to build ...

7 min read · [mahia.hashnode.dev](https://mahia.hashnode.dev/learn-greedy-algorithm?utm_source=hashnode&utm_medium=feed)

[Palak Bansal](https://hashnode.com/@KanpuriyaCoder) · [Jul 10, 2024](https://hashnode.com/posts/greedy-algorithm-jump-game/668e08e5dbfd5b5f424dd9c1)

### [Greedy Algorithm - Jump Game](https://palakbansal.hashnode.dev/greedy-algorithm-jump-game?utm_source=hashnode&utm_medium=feed)

Jump Game

1 min read · [palakbansal.hashnode.dev](https://palakbansal.hashnode.dev/greedy-algorithm-jump-game?utm_source=hashnode&utm_medium=feed)
