Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • \$\begingroup\$ Suggested test case: [1,0,9,6,5,4,4,7], 21. \$\endgroup\$ Commented Dec 10, 2024 at 21:44
  • \$\begingroup\$ @Shaggy Added . \$\endgroup\$ Commented Dec 10, 2024 at 22:06
  • \$\begingroup\$ What's the source for this problem? \$\endgroup\$ Commented Dec 10, 2024 at 22:09
  • \$\begingroup\$ @xnor Sorry, should've added that. My inspiration for this was from Leetcode's "3Sum" problem. \$\endgroup\$ Commented Dec 10, 2024 at 22:12
  • 1
    \$\begingroup\$ Suggested test case: [1,1,2,2,3,3,4,4], 11 \$\endgroup\$ Commented Dec 11, 2024 at 0:53