From Java to C++
Goals
To get started coding in C++ based on your Java knowledge.
Setup
Go to HackerRank.com and create a Developers account if you don’t already have one (you don’t need to use your real name if you don’t want to!).
Reference this cheat sheet for the code from the video.
Exercises
Complete each of the following HackerRank exercises.
- Solve Me First (Make sure your language is set to C++14)
- Input and Output
- Pointer (you will need the
<cmath>
library andabs()
function) - Arrays
Extra
If you have extra time, try out other HackerRank C++ activities to get more practice. We’ll continue to check in on C++ in the coming weeks, so getting more practice will be helpful.
You can also learn a bit/refresh about Git, which we’ll be using in a basic capacity for submitting assignments.