Download citation...
What type of file do you want?
Plain Text
BibTeX
Citation preview
Question
Asked 22 May 2014
Olugbenga Oluwagbemi
Johns Hopkins University
Is recursive implementation faster in Java than in C++ ?
Is recursive implementation faster in Java than in C++ ? For instance; in the implementation recursive functions for Fibonacci sequences or that of Towers of Hanoi, which of the programming languages will run faster and under the shortest possible time? Java or C++ ?
Java
Data Structures
Algorithms
Software Engineering
Computer Programming
Adriel M. Ziesemer Jr.
Rio Grande do Sul Federal Institute of Education, Science and Technology
Use -O3 and everything will always be faster in C++, at least for an experienced programmer.
Use these cheats to optimize your code as you go:
http://www.tantalon.com/pete/cppopt/asyougo.htm
But don't try to optimize everything or your productivity, your code legibility, and you mental heath will suffer.
1 Recommendation
or
Discover by subject area
Join for free
Log in
For full functionality of ResearchGate it is necessary to enable JavaScript. Here are the
instructions how to enable JavaScript in your web browser
.