Timeline for Is this a good way to check for an anagram if sorting is not allowed?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2022 at 19:03 | comment | added | greybeard |
I think isMatched a bit indirect - where you set it, you know you want the current iteration of the outer loop to end immediately. Label the outer for : a labelled continue works without any flag.
|
|
Jun 15, 2022 at 0:14 | comment | added | RileyDan | That's a really good answer! Thank you for the feedback, and great solution! I was actually trying to not use the sort method and what not because I wanted it to be as fast as possible, using as little resources as possible, and I think your solution is what I was trying to get at! | |
Jun 15, 2022 at 0:12 | vote | accept | RileyDan | ||
Jun 14, 2022 at 21:30 | history | answered | iSR5 | CC BY-SA 4.0 |