To solve this problem, we'll take 3 different approaches.
Enjoy the video ππ
Also written version https://losseff.xyz/katas/016-count-of-positives-sum-of-negatives/javascript/
To solve this problem, we'll take 3 different approaches.
Enjoy the video ππ
Also written version https://losseff.xyz/katas/016-count-of-positives-sum-of-negatives/javascript/
For further actions, you may consider blocking this person and/or reporting abuse
Juneiker -
Jemima M -
Sachin -
Prakhar Doneria -
Once suspended, andrew_losseff will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, andrew_losseff will be able to comment and publish posts again.
Once unpublished, all posts by andrew_losseff will become hidden and only accessible to themselves.
If andrew_losseff is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to Andrew βοΈ & β.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag andrew_losseff:
Unflagging andrew_losseff will restore default visibility to their posts.
Top comments (2)
With only a reduce:
EDITED: now should work
I like your approachπ Thanks for sharing itπ
I though about reduce, but for some reasons didn't give it a shot.
But this solution won't pass the tests. It'll always return [0, 0]
I assume you made a few typos, it happens to me all the time))
I'd change it like this:
I think it might look like this.