You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
MC Banhammer Posted:
Uh, I don’t think that’s actually what you want to do. The idea is we want to break the streak when pwning the a forum that was already in your streak, right? Consider this example:
1. Forum A 2. Forum B 3. Forum C 4. Forum D 5. Forum A 6. Forum E
If you delete all the past history as soon as your find a repeated forum, your algorithm will not necessarily yield the longest streak. In this example, your algorithm calculates the longest streak as ABCD, and the current streak would be AE.
The way I see it, the longest streak here should be BCDAE. So instead of clearing out all the history once you pwn a duplicate forum, you’d just delete the first match and everything earlier than that. entchen edited this message on 11/17/2008 3:35AM |
|
Posted On: 11/17/2008 3:32AM | View entchen's Profile | # |