petersr@lemmy.worldtoLinux@lemmy.ml•Linux Kernel 6.8 Reaches End of Life, Users Should Upgrade to Linux Kernel 6.9
4·
1 month agoStuxnet would like a chat with you
Stuxnet would like a chat with you
Sounds like you should find a new product to use.
Let me take a stab at it:
Problem: Given two list of length n, find what elements the two list have in common. (we assume that there are not duplicates within a single list)
Naive solution: For each element in the first list, check if it appears in the second.
Bogo solution: For each permutation of the first list and for each permutation of the second list, check if the first item in each list is the same. If so, report in the output (and make sure to only report it once).