We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Dynamic Programming
- Knapsack
- Discussions
Knapsack
Knapsack
Sort by
recency
|
256 Discussions
|
Please Login in order to post a comment
that's weird in python3 compiler it always run the first case and stop it. hope to fix it soon!
In the Python 3 code, the tests section is incorrect as it doesn't utilize the function for all cases of
t
. Therefore, it needed to be corrected. I know it isn't a big deal but i was looking for error in my function :cThanks for all of your hardwork on this site; however, the Golang test arrays are broken. Here is a rough fix but could be refactored to HR's liking.
func main() { reader := bufio.NewReaderSize(os.Stdin, 16 * 1024 * 1024)
}
In c++, the handler code for main() is missing loops for all test cases.
P.S: You can use this code as main function