Sha256: ce5bd497fd9785beee4272d06c8c75dd40d396ee3a46f506d3d3897acfe756df

Contents?: true

Size: 146 Bytes

Versions: 51

Compression:

Stored size: 146 Bytes

Contents

class Leap {
  bool leapYear(int year) {
    if (year % 4 != 0) {
      return false;
    }

    return year % 100 != 0 || year % 400 == 0;
  }
}

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.179 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.178 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.177 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.176 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.175 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.174 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.173 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.172 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.171 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.170 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.169 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.167 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.166 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.165 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.164 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.163 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.162 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.161 tracks/dart/exercises/leap/lib/example.dart
trackler-2.2.1.160 tracks/dart/exercises/leap/lib/example.dart