MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/AskProgramming/comments/1jye67k/what_was_a_topic_in_csprogramming_that_when_you/mnedvbs
r/AskProgramming • u/UnluckyIntellect4095 • Apr 13 '25
274 comments sorted by
View all comments
1
anything that makes a naive O(n²) problem a O(n log n) one.
I was completely blown away by the performance difference on e.g. sorting algorithms once the problem size becomes big
1 u/TenYearsOfLurking Apr 16 '25 I should clarify: any solution that reduces the complexity category in relation to what my intiutive solution would be
I should clarify: any solution that reduces the complexity category in relation to what my intiutive solution would be
1
u/TenYearsOfLurking Apr 16 '25
anything that makes a naive O(n²) problem a O(n log n) one.
I was completely blown away by the performance difference on e.g. sorting algorithms once the problem size becomes big