---
title: "Discussion on \"LeetCode 6348. Take Gifts From the Richest Pile\" | Hashnode"
description: "Discussion on \"LeetCode 6348. Take Gifts From the Richest Pile\". O(N) solution and three alternatives."
url: "https://hashnode.com/posts/leetcode-6348-take-gifts-from-the-richest-pile/63df873383e5009ecaa6ab1c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [LeetCode 6348. Take Gifts From the Richest Pile](https://hash.hupili.net/leetcode-6348-take-gifts-from-the-richest-pile?utm_source=hashnode&utm_medium=feed)

O(N) solution and three alternatives.

Feb 5, 2023 · 6 min read · hash.hupili.net  
Updated Feb 24, 2023  
Read the article

-   [#post](https://hashnode.com/tag/post)

## Written by

[HU, Pili](https://hashnode.com/@hupili)

@hupili

  
[View profile](https://hashnode.com/@hupili)

Ultra runner with a crypto problem

Just run the code, or yourself.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
