T.Rowe Price Software Engineer Interview Question

T.Rowe Price

Question

Expected Completion time of 30-60 minutes depending on experience

  1. Write a method or function in the major programming language of your choice that returns the longest word in a sentence and its length. For example, “The cow jumped over the moon.” should return “jumped” and 6.
  2. Write unit tests, reworking code as needed
  3. Add a method that returns the shortest word and length with unit tests
  4. Create a README documenting any assumptions you made and including instructions on how to build and execute your tests.
  5. Share your code using GitHub or similar.

Answer

https://github.com/petmar/parsing

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *