LogFAQs > #970077839

LurkerFAQs, Active DB, DB1, DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, Database 11 ( 12.2022-11.2023 ), DB12, Clear
Topic List
Page List: 1
TopicI know what a Linked List is
warlock7735
12/11/22 2:31:35 AM
#17:


[LFAQs-redacted-quote]


Best i can think of in that scenario is double iteration wit a worst case of nsquared. Iterate forwards so you don't check for a combination you've already checked. Technically the run time would be something along the lines of nC2, but setting that up would still quirk out to about nsquared.

---
CE Mafia Archive
https://www.dropbox.com/sh/u3gaka98zsp3m0e/AADYBrilDyGYhlAbpEnac5d_a?dl=0
... Copied to Clipboard!
Topic List
Page List: 1