Saturday, 18 January 2014

Big integer in C++

I am not a big fan of code ppl write in coding competitions as it looks ugly. Too much is compromised for efficiency. One case in point is using big integer in C++. Some of the problems expect the use of big integer class. As there is no standard big integer in C++, one is left with 2 options. Write your own or copy somebody elses. But as one is allowed to submit only one file, it means everything will be dumped in that single file. I have decided to write my own when need arises. Only including the functions that I need.

Basically, a short way, at least for these competitions is to take every integer as a vector of intgeres (representing digits) and then do the operations as one did in school. Create the result digit by digit. Define operators for comparison on vector<int>. 

Tuesday, 14 January 2014

Too much on my plate?

If you try and do everything, you may endup messing everything. Currently, I am trying to do the following: I am doing four courses this sem - Algo2, MFML,DS,SI. I am doing networks course on courseera. I am trying to participate in an ongoing ML competition. I have to build a better webpage work on the video player. I also like to take part in competitive programming and not to forget the research for which I have 4 credits this semester. This seems too much for a semester. Seems like I will have to drop networks. Shit, I so wanted to do that course.  May be in summers then....phew!!!! Need an internship as well.....but on the priority list for now is Assignment 1 solutions for Algo2, readup on that competition, research work...read those goddamn papers.
Anyway, Ruskin bond is an amazing writer, his stories are a constant pacifier in this urge to follow your passion thing. God,human beings are too many people in one.
Yes before I forget, I am also growing fat (85 Kg today...sob sob) and losing hair rapidly. I am also having shit days of depression, I think.

Wednesday, 8 January 2014

Thought on that video player

It seems like a really good idea to me. I will use it all the time if such service was ever provided. We need to make it and let the campus use it. Talk to swapnil about this. Definitely!