post #71 of 71
I take literally no credit for this, as I just "translated" Chris++' code above to C++:

CPP (Click to show)
Code:
int r(int n, int i = 0){
    if(n < 10)
         return i * 10 + n;
    else
        i = i * 10 + (n%10);
    return r(n / 10, i);
}

By the time I figured it out, "WeirdSexy" had already posted a CPP solution that would be similar to mine, therefore I just translated Chris++' code for "teh lulz". Doesn't really count, but ohwell.
Edited by bruflot - 7/16/12 at 3:22pm
Citra ♥
(15 items)
 
Big Mac
(10 items)
 
 
CPUMotherboardGraphicsRAM
[Intel] Core i7 2600K [Asus] P8Z68-V Pro [Gainward] Geforce 9800 GTX+ [Corsair] Vengeance 16GB @ 1600 
Hard DriveHard DriveCoolingOS
[Kingston] HyperX 120GB SSD [Intel] 520 series 60GB [Corsair] H80 [Canonical] Ubuntu 12.10 
MonitorKeyboardPowerCase
[BenQ] XL2420T [Corsair] Vengeance K60 Performance [OCZ] ZX 850W [CM] Storm Enforcer 
MouseAudioOther
[Razer] Mamba 4G 2012 [Beats] urBeats [NZXT] 24/8/6 pin extensions 
CPUMotherboardGraphicsRAM
[Intel] Core i5-3210M [Apple] Proprietary [Intel] HD 4000 [Hynix] H5TC2G83CFR DDR3L 8GB 
Hard DriveOSMonitorKeyboard
[Samsung] 128GB SSD [Apple] OS X 10.8.2 ML 13" 2560x1600 Retina [Apple] Backlit Keyboard 
CaseMouse Pad
[Apple] Unibody [Apple] Trackpad 
  hide details  
Reply
Citra ♥
(15 items)
 
Big Mac
(10 items)
 
 
CPUMotherboardGraphicsRAM
[Intel] Core i7 2600K [Asus] P8Z68-V Pro [Gainward] Geforce 9800 GTX+ [Corsair] Vengeance 16GB @ 1600 
Hard DriveHard DriveCoolingOS
[Kingston] HyperX 120GB SSD [Intel] 520 series 60GB [Corsair] H80 [Canonical] Ubuntu 12.10 
MonitorKeyboardPowerCase
[BenQ] XL2420T [Corsair] Vengeance K60 Performance [OCZ] ZX 850W [CM] Storm Enforcer 
MouseAudioOther
[Razer] Mamba 4G 2012 [Beats] urBeats [NZXT] 24/8/6 pin extensions 
CPUMotherboardGraphicsRAM
[Intel] Core i5-3210M [Apple] Proprietary [Intel] HD 4000 [Hynix] H5TC2G83CFR DDR3L 8GB 
Hard DriveOSMonitorKeyboard
[Samsung] 128GB SSD [Apple] OS X 10.8.2 ML 13" 2560x1600 Retina [Apple] Backlit Keyboard 
CaseMouse Pad
[Apple] Unibody [Apple] Trackpad 
  hide details  
Reply