Unfortunately I am a CS graduate. I have the working knowledge of algorithms and stuffs like that. But my confidence in programming is becoming littler every day. The problem is not that I don't know how to code. I have significant knowledge of the syntax of a couple of languages - C, java, python, ruby etc. But the problem is that I seem to have stuck at the same point because of some obstacles.
For instance, I tried to solve the problems in acm online judge. I select even the silliest problems which I would not otherwise consider. But even for those silly problems I am consistently getting wrong answers. So my confidence is becoming lower. Moreover, I tried to implement the B-tree in C using all those pointers and I am getting all those segmentation faults even though I successfully implemented in java. I have fixed segmentation faults before but this time it has become elusive and made me really frustrated.
Above all, I am a really slow coder and have the urge to improve the coding speed. So this is kind of a vicious circle. All these are making me really unhappy and want me to quit but I can't quit because I have already got my education in CS and I really like programming despite all these (because of the satisfaction it gives when it produces a workable thing). Now what I can do about improving my confidence?