+ 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!

22nd Dec 2017, 7:14 AM
Edwin Pratt
Edwin Pratt - avatar
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); }
23rd Dec 2017, 2:06 AM
Jacob Pembleton
Jacob Pembleton - avatar
+ 14
Nice! @Jacob
23rd Dec 2017, 9:39 PM
Edwin Pratt
Edwin Pratt - avatar
+ 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.
24th Dec 2017, 5:47 PM
Edwin Pratt
Edwin Pratt - avatar
+ 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.
28th Dec 2017, 7:42 PM
Edwin Pratt
Edwin Pratt - avatar