3 ms·
Sure, some can be bruteforced, but typically it's intentional. A good example of what I mentioned was an assignment this week. Last week, the input size was c
by DarkShikari 16y ago
Sure, some can be bruteforced, but typically it's intentional.
A good example of what I mentioned was an assignment this week. Last week, the input size was constrained to a thousand or so, and Floyd-Warshall was able to solve the problem. This week, it's the same problem, but with inputs up to ~50,000 in size. The old program, run on the new test cases, doesn't finish in a day.