JOIN
Get Time
forums  Revision History
Search My Post History  |  My Watches  |  User Settings
Forums TopCoder Cookbook Algorithm Competitions - Rewriting Phase Re: 2.1. Parsing String Input Revision History (1 edit)
Re: 2.1. Parsing String Input (response to post by Nickolas)
I'm sorry but: now it looks even worse=) Though is it correct now.

Personally I prefer not to mess with manual dynamic allocation in olympic programming=) Only C++ containers and fixed-size arrays.

I think you can leave it as it is now. Coders who prefer C-style would do it in proper way themselves. The key idea is to show strtok, not C string and deallocation routines=)
Re: 2.1. Parsing String Input (response to post by Nickolas)
I'm sorry but: now it looks even worse=) Though is it correct now.

Personally I prefer never to mess with manual dynamic allocation in olympic programming=) Only C++ containers and fixed-size arrays.

I think you can leave it as it is now. Coders who prefer C-style would do it in proper style themselves. The key idea is to show strtok, not C string and deallocation routines=)