+ 15
Writing methods to help us write code better and understand it more.
Here is your time to help! Post a method that helps you to code effectively, understand it more and win challenges. Help those who are new to programming. And discover new things!
4 Respuestas
+ 2
//C++
#include <iostream>
#include <string>
int join(int a, int b) {
string sA = to_string(a);
string sB = to_string(b);
return stoi(sA + sB);
}
+ 14
Nice! @Jacob
+ 14
Firstly, you need to practice. Make sure that you can understand the code before you write it. Use paper to practice.
Secondly, before challenging, look up at key points, such as Arrays, Variables, Methods etc...
Lastly, space your code. use comments to explain and remember things.
+ 10
Are you maybe struggling to get ideas? Well,this might help. Try writing on a piece of paper about your dream code. Search which language is easy for you to use, then write the code on paper. After that, write it in the code playground.