Describe a programming challenge that you’ll always remember
It was in university, and we have a course about error correction and correction codes and we have one project (assignment) that we have to solve by the end of the semester. In this assignment we have to develop correction code with selected parameters. Our lecturer told as that anybody who solve assignment and wrote a program implement this code and will be able to encode/decode message using this code, would have A on exam. (only few people from our group decided to try to write this program, myself included).
At first I almost forget about assignment because it was other courses that I also attend, but when end of the semester become closer, I remember about assignment and start doing it. And then I realize that its actually need more time than I thought, because of different mathematical calculations that you have to do before you will be able to write a program. So I spent some time doing this calculations, and exam is getting closer and closer when it was only couple of days before the exam I finished first version of the program, but it has a bug - memory leak so it failed on test. (I need to say that we have a way to verify the program it have to pass all test that was made by our lecturer, and we have a system where we have to submit our solution (program) and it runs through all this test).
So I start looking for that leak and because finding a like is not easy thing to do in C++ I even print all source code on paper to go through it with pen, but then a fall asleep with all this papers because I was pretty tired and don't have enough sleep last few days. Fortunately after sleep I found this leak pretty soon (I don't remember exactly, but problem was that I didn't have delete statement after I allocate memory. (it is actually pretty common problem when you program in C++). I fixed this issue, but my solution still failed few test. And then it was actually last night before exam (exam would start at 10am same day). I fixed last issues that I had in my code and finally all test pass (I don't remember exact time but it was something between 1-3am). I found that my solution is the fastest on even faster than solution from our lecturer (I remember this good feeling that I did a good job and was able to solve assignment and did it even better than others.. At the morning I went to the university and got my 'A' grade. ( Only 5-6 people form our group get was able to write a program other did the usual exam ).