---
title: "Discussion on \"LeetCode Challenge #1: Kids With the Greatest Number of Candies\" | Hashnode"
description: "Discussion on \"LeetCode Challenge #1: Kids With the Greatest Number of Candies\". Problem statement:\nGiven the array candies and the integer extraCandies, where candies[i] represents the number of candies that the ith kid has.\nFor each kid check if there is a way to distribute extraCandies among the kids such that he or she can ha..."
url: "https://hashnode.com/posts/leetcode-challenge-1-kids-with-the-greatest-number-of-candies/5ec54bbd6bace2452f98e876"
---

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

Discussion

# [LeetCode Challenge #1: Kids With the Greatest Number of Candies](https://blog.lo-victoria.com/leetcode-challenge-1-kids-with-the-greatest-number-of-candies?utm_source=hashnode&utm_medium=feed)

Problem statement: Given the array candies and the integer extraCandies, where candies\[i\] represents the number of candies that the ith kid has. For each kid check if there is a way to distribute extraCandies among the kids such that he or she can ha...

May 20, 2020 · blog.lo-victoria.com  
Read the article

-   [#leetcode](https://hashnode.com/tag/leetcode)
-   [#challenge](https://hashnode.com/tag/challenge)
-   [#java](https://hashnode.com/tag/java)

## Written by

[Victoria Lo](https://hashnode.com/@victoria)

@victoria · Singapore

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

A nerd in books, tea, games and software.

I'm a solutions engineer lead, GitHub Star, Director of WomenDevsSG, and co founder of ragTech. I work at the intersection of tech, systems, and leadership, and this blog is where I share my journey through all three. Expect honest reflections, real experiences, and thoughts that are still forming rather than polished career advice.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
