We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Greedy
- Luck Balance
- Discussions
Luck Balance
Luck Balance
Sort by
recency
|
921 Discussions
|
Please Login in order to post a comment
Here is my c++ solution, you can watch the explanation here : https://youtu.be/7L1lI6JScR8
Haskell
What the actual f? I understand the need to decorate the abstract CS problem with some story. But why not have the story take place in a reality that we all share and can relate to instead of authors' weired nightmares. Obfiscuating the meaning of the problem with bizare fantasies isn't making it more interesting or challenging in a productive way
def luckBalance(k, contests): important = [luck for luck, importance in contests if importance == 1] unimportant = [luck for luck, importance in contests if importance == 0]