User profile: JLBorges

User info
User name:JLBorges
History
Joined:
Number of posts:8290
Latest posts:

astronomical problem | recursion
[code]int b( int i ) // invariant: i > 0 { if( i < 2 ) return 1 ; // [b]base case 1: b_1 == 1[/b...

string reverse recursion
[code]std::string reverse( std::string str ) { if( str.size() < 2 ) return str ; else retur...

Writing readable code
> I'm a fan of the old Unix philosophies. Is there any convention from back then that still works to...

Forgetting something about member initializer lists
[code]struct Coord { private: int m_x,m_y; public: Coord(int x, int y) : m_x...

Help Sought
> What does mt19937 mean? [b]mt[/b] - pseudo random number generator using the [b]M[/b]ersenne [b]T...