Skip to content

sfreed/8light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

8light

Project was built using eclipse and all of the Eclipse files are checked-in if you would like to download the project and run it via Eclipse. Otherwise, if you have MAven installed on your class path, you can go to the project directory and run: mvn test

Comments

  1. Challenge 1: I used regex to split the incoming string ito a list of elements (I don't know the regex by hearts, so I had to look it up). Then I iterated through the list and filtered out each nonnumeric item and appended the numeric items into a string using String Builder. O(n)<- performance but may use more memory as I am not sure about the StringBuilder.
  2. Challenge 2: This was intersting. While there is a very manual way of performing this, I chose to use streams to provide all of the distinct values and return them as a List. I think the goal in this challenge was to better investigate the use of generics than the actual algorithm itself. O(n)<- performance but may ne slower becasue of the use of reflection.
  3. Challenge 3: This challenge simple demonstrates the use of the previous 2 Challenges and pulling data from a Map. O(n)<- performance but may ne slower becasue of the use of reflection.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages