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

Tag

# #algorithm-solving

12 posts · 1 followers

[Fatima Jannet](https://hashnode.com/@fatimaJannet) · [Aug 30, 2024](https://hashnode.com/posts/learn-divide-conquer-algorithm/66d1aa2cc66bb9fa8ab7c30c)

### [Learn Divide & Conquer Algorithm](https://mahia.hashnode.dev/learn-divide-conquer-algorithm?utm_source=hashnode&utm_medium=feed)

Introduction to Divide & Conquer algorithm: solving problems by breaking them into manageable subproblems and combining solutions for optimal results

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

[Han](https://hashnode.com/@EunHaSu) · [Jul 22, 2024](https://hashnode.com/posts/leetcode-1518-water-bottles-java-solution/669e741f92e82acaed4b92f5)

### [LeetCode 1518. Water Bottles Java Solution](https://eunhanlee.hashnode.dev/leetcode-1518-water-bottles-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: LeetCode 1518. Water Bottles Description: We have numBottles water bottles. We can exchange numExchange empty bottles for one new full water bottle. The goal is to calculate the maximum number of water bottles we can dr...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-1518-water-bottles-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 18, 2024](https://hashnode.com/posts/leetcode-2582-pass-the-pillow-java-solution/66991fd250a513f00db1d083)

### [LeetCode 2582. Pass the Pillow Java Solution](https://eunhanlee.hashnode.dev/leetcode-2582-pass-the-pillow-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: https://leetcode.com/problems/pass-the-pillow/description/ Description: People are standing in a circle numbered from 1 to n. Person 1 holds a pillow and every hour they pass the pillow to the person to their right. If ...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-2582-pass-the-pillow-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 17, 2024](https://hashnode.com/posts/leetcode-2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points-java-solution/6697f12089f1c2258283d259)

### [LeetCode 2058. Find the Minimum and Maximum Number of Nodes Between Critical Points Java Solution](https://eunhanlee.hashnode.dev/leetcode-2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: LeetCode 2058. Nodes Between Critical Points Description: Given a singly linked list, we need to find the minimum and maximum distance between nodes that are local maxima (a value greater than its neighbors) or local mi...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-2058-find-the-minimum-and-maximum-number-of-nodes-between-critical-points-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 15, 2024](https://hashnode.com/posts/leetcode-1701-average-waiting-time-java-solution/66958bd4b01bfca5dce5c53c)

### [LeetCode 1701. Average Waiting Time Java Solution](https://eunhanlee.hashnode.dev/leetcode-1701-average-waiting-time-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: https://leetcode.com/problems/average-waiting-time/ Description: The task is to calculate the average waiting time for all customers, considering each customer's arrival time and cooking time. Each customer can start th...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-1701-average-waiting-time-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 11, 2024](https://hashnode.com/posts/leetcode-1598-crawler-log-folder-java-problem-solution/66902e58210dac663590ebbc)

### [LeetCode 1598. Crawler Log Folder Java Problem Solution](https://eunhanlee.hashnode.dev/leetcode-1598-crawler-log-folder-java-problem-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: LeetCode 1598 Description: Calculate the depth of the file system directory based on the given log array. "./" represents the current directory, and "../" represents the parent directory. Approach Idea: Traverse the ...

1 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-1598-crawler-log-folder-java-problem-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 9, 2024](https://hashnode.com/posts/leetcode-1823-find-the-winner-of-the-circular-game-java-solution/668cb8b394da15f15870f3dd)

### [LeetCode 1823: Find the Winner of the Circular Game Java Solution](https://eunhanlee.hashnode.dev/leetcode-1823-find-the-winner-of-the-circular-game-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: LeetCode 1823: Find the Winner of the Circular Game Description: There are n people standing in a circle, numbered from 1 to n. They play a game in which every k-th person is eliminated in a circular manner until only o...

3 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-1823-find-the-winner-of-the-circular-game-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 6, 2024](https://hashnode.com/posts/leetcode-2181-merge-nodes-in-linked-list-java-solution/6689aa3a4665388aff73137e)

### [LeetCode 2181. Merge Nodes in Linked List Java Solution](https://eunhanlee.hashnode.dev/leetcode-2181-merge-nodes-in-linked-list-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: https://leetcode.com/problems/merge-nodes-in-between-zeros/ Description: Given a single linked list, the task is to merge nodes according to specific conditions. Add node's values until it reaches 0. 0-3-4-0-5-3-0 to 7...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-2181-merge-nodes-in-linked-list-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 4, 2024](https://hashnode.com/posts/leetcode-1509-minimum-difference-between-largest-and-smallest-value-in-three-moves-java-solution/668714ee09c8cb824625b1eb)

### [LeetCode 1509. Minimum Difference Between Largest and Smallest Value in Three Moves Java Solution](https://eunhanlee.hashnode.dev/leetcode-1509-minimum-difference-between-largest-and-smallest-value-in-three-moves-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: Minimum Difference Between Largest and Smallest Value in Three Moves Description: You need to remove up to 3 numbers from an integer array to minimize the difference between the largest and smallest values of the remain...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-1509-minimum-difference-between-largest-and-smallest-value-in-three-moves-java-solution?utm_source=hashnode&utm_medium=feed)

[Han](https://hashnode.com/@EunHaSu) · [Jul 3, 2024](https://hashnode.com/posts/leetcode-2319-check-if-matrix-is-x-matrix-java-solution/6685c2e18da296f146aab020)

### [LeetCode 2319. Check if Matrix Is X-Matrix Java Solution](https://eunhanlee.hashnode.dev/leetcode-2319-check-if-matrix-is-x-matrix-java-solution?utm_source=hashnode&utm_medium=feed)

Problem Description Problem: Check if Matrix is X-Matrix Description: Determine if a given square matrix is an X-matrix. An X-matrix has all elements zero except those on the main diagonal and the anti-diagonal. Approach Idea: To check if each e...

2 min read · [eunhanlee.hashnode.dev](https://eunhanlee.hashnode.dev/leetcode-2319-check-if-matrix-is-x-matrix-java-solution?utm_source=hashnode&utm_medium=feed)
