Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 702 Bytes

File metadata and controls

28 lines (17 loc) · 702 Bytes

Java interview tasks

Build and test

./gradlew test

Tasks

Task 1

Implement findOddNumbers. Add tests. Think about all corner cases.

Task 2

Implement hasDuplicateChars. Add tests. Think about all corner cases.

Task 3

Implement mapBy. Add tests. Think about all corner cases. Tha about duplicates? Try to implement two versions of the algorithm - classic with for loop and the version with streams (hint: use new SimpleEntry<> (import java.util.AbstractMap.SimpleEntry), Collectors.toMap)

Task 4

Please try introduce new class or interfaces to build right hierarchy for vehicles. Hint: inheritance, composition, aggregation, composition.