Skip to content

Roshankumar350/Advant-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdvantDay1

Advant Day 1 solution.

Functional

  • Solution for Part 1
  • Solution for Part 2

AdvantDay2

Advant Day 2 solution.

Functional

  • Solution for Part 1
  • Solution for Part 2

AdvantDay4

Advant Day 4 solution by considering design.

Functional

  • Solution for Part 1
  • Solution for Part 2

Non Functional

  • Protocol with default implementation ( Has - A Relationship with struct Problem1 )

  • Retroactive modeling for

  1. Collection's API :
    a. func getPassportFieldInHashTable() throws -> [PassportField: String] where Self.Element == String

  2. String's API:-
    a. func getStringComponent(for givenCharacterSet: CharacterSet) -> [String]
    b. func getInteger()-> Int?

  • Enum PassportField for type-safty better than String

enum PassportField: String, CaseIterable { case byr case iyr case eyr case hgt case hcl case ecl case pid case cid case none }

  • API documentation for locally reason about code.

  • Error Handling

AdvantDay5

Advant Day 5 solution

Functional

  • Solution for Part 1
  • Solution for Part 2

AdvantDay6

Advant Day 6 solution

Functional

  • Solution for Part 1
  • Solution for Part 2

About

Advant Code 2020 Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages