Hello and welcome back brave human being,

You are given an array and an integer.

In one operation, you can pick two numbers from the array whose sum equals k and remove them from the array.

Return the maximum number of operations you can perform on the array.

Remember: LeetCode problem a day keeps unemployment away!

Cheers to your success,

Denisse

What type of content would you like to see?

Help me improve this newsletter

Login or Subscribe to participate

Need motivation to be consistent?

Add this problem to your log and when the challenge is done send it to me! You’ll be in for a treat.

Reply

Avatar

or to participate

Keep Reading