i want to start participating in contest.
but i can not make decide which language to pick up c++/java.
please help me to make decision.
thanks.
but i can not make decide which language to pick up c++/java.
please help me to make decision.
thanks.
Java is better, because you don't need to think about memory management, invalid pointers and arrays size
Java is good for it's wide functionality. However, it can often be somewhat messy — I think C++ is cleaner.
Why do you think using objects instead of primitive types is a drawback of Java? Just because you need to type Integer instead of int?If you feel that Java is too verbose, Ctrl + space is the help.HashMap, HashSet are the things which C++ doesn't possess, and in some cases they really can help you. Existence of StringBuilder, Comparator, java.awt.geom.*, BigInteger, BigDecimal cover the fact that java is verbose.Try to test C# List: it stores primitive types, but the speed is not much better than in Java.according to my testing it is between 1.5 and 2 time slower than java.(I tested it in codeforces.)