Ad
Testing
Code
Diff
  • def replicate(times, num):
        if times <= 0: return []
        return [num] + replicate(times-1, num)
    replicate(8,5)
    • def replicate(times, num):
    • if times <= 0: return []
    • return [num] + replicate(times-1, num)
    • replicate(8,5)
Code
Diff
  • #include <utility>
    
    std::pair<int, int> foo() {
      return {1, 1};
    }
    
    • #include <utility>
    • std::pair<int, int> foo() {
    • return {0, 0};
    • return {1, 1};
    • }