Hence no need for greping.
If the first occurrence was really required, I'd rather store it in the hash.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: LeetCode Problem #1 - Two Sum - Improve and/or discuss.
by LanX
in thread LeetCode Problem #1 - Two Sum - Improve and/or discuss.
by kcott
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |