Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: LeetCode Problem #1 - Two Sum - Improve and/or discuss.

by NetWallah (Canon)
on Jan 24, 2022 at 04:00 UTC ( [id://11140773]=note: print w/replies, xml ) Need Help??


in reply to Re^4: LeetCode Problem #1 - Two Sum - Improve and/or discuss.
in thread LeetCode Problem #1 - Two Sum - Improve and/or discuss.

What LanX is saying is : since you are now sorting the output of twosum as a part of your "is_deeply" compare, you no longer need to duplicate tests , and you can revert to your original set of tests that have the results in increasing-index order.

                "If you had better tools, you could more effectively demonstrate your total incompetence."

  • Comment on Re^5: LeetCode Problem #1 - Two Sum - Improve and/or discuss.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11140773]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found