No I don't want the brute force code, but your code is inefficient in that it uses 3 tries to actually get the correct pin. You only have to test twice:
[1234, 5678, 1337]
And to test do:
[1234, 5678]
If one of the pins works
[1234]
If both pins were incorrect it is the third.
Yeah I know it's one request under hundreds/thousands, but I needed to get that out of my system.
Thanks for the source thought.
No I don't want the brute force code, but your code is inefficient in that it uses 3 tries to actually get the correct pin. You only have to test twice:
And to test do:
If one of the pins works
If both pins were incorrect it is the third.
Yeah I know it's one request under hundreds/thousands, but I needed to get that out of my system. Thanks for the source thought.