10
donuts
7y

I haven't touched algorithms for many months but needed to create a matching algorithm today.

It has to match using variations of the original key and output the keys that can't be matched.

The feeling in my head felt like I was turning rusty gears n sort of just stumbling through...

I used an N^2 approach but afterwards it just felt wrong... And it took me like an hour of hacking to do it....

Actually I just realized it's an N approach! because all possible matches would be hit by iterating from one of the lists of possible names!

I suddenly feel so proud of my subsconcious...

But still something doesn't feel right...

Comments
  • 3
    Wait... Nvm because I need to generate the list of possible matches it's actually N*M....
Add Comment