Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raukuma authored Mar 8, 2022
1 parent 909c478 commit 99cb274
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# familygraph
Extended Family and relationship within members

Exercise 1
Exercise **1**
Please implement code and data structures that read the files

src/test/java/resources/people.csv
src/test/java/resources/relationships.csv
and use them to build an in-memory data structure that represents the people in the file and their relationships with each other.
Exercise 2 - Validate correct people loaded
Exercise **2** - Validate correct people loaded
Write a test to validate that you have loaded the expected number of people.

Exercise 3 - Validate correct relationships loaded
Exercise **3** - Validate correct relationships loaded
Write a test to validate that the following people have the correct expected number of connections to other people

Bob (**4** relationships)
Expand All @@ -21,4 +21,4 @@ Exercise **4** - Write a method that calculates the size of the extended family
Write a method which, when passed the object representing a particular person, returns an int representing the size of their extended family including themselves. Their extended family includes anyone connected to them by a chain of family relationships of any length, so your solution will need to work for arbitrarily deep extended families. It should not count their friends. Write tests that validate this returns the correct result for the families of:

Jenny (**4** family members)
Bob (**4** family members)
Bob (**4** family members)

0 comments on commit 99cb274

Please sign in to comment.