Linkedin 海投:
第二天就收到OA了
我是过了几天才提交的,可能是时间拖的太久了
原始PDF文档在附件,希望对大家有帮助
以下文字有点长,没有特别调格式仅供参考:
Backend Assessment - Blog Posts
In this assessment, you will write a simple backend JSON API. If you notice something
is not working (like the API, or any of the links in this document), please contact
.
This assessment will be evaluated based on the following criteria:
● Correctness: Is your solution complete and does it pass different test cases?
● Code Organization, Readability, & Maintainability: Is your code easy to read and
well organized?
● Code Performance: Is your code efficient? Did you use appropriate data
structures?
● Best Practices: Did you utilize good programming practices (write unit tests,
avoid anti-patterns)? Did you show a good grasp of your language/framework of
choice?
● Completion speed: A fast completion time comparable to the completeness of
your solution. This is the least important criteria.
We use the following rubric to evaluate your submission. Please note that if your
submission does not attempt to complete all of the requirements, we will be unable to
provide feedback on it.
Resources
If you are not familiar with how to set up a basic API, we recommend the following
resources:
● Python - Flask (Flask JSON API)
● Javascript - Node + Express
● Java - Spring Boot (JSON API)
● Ruby - Rails Jan API call on your server. Try
to implement a server side cache to our API. Two tips are 1) keep it simple, and 2) feel
free to use existing libraries/frameworks. Be sure to test your code after implementing
this to be sure it still works as expected.
Checklist
Before submitting your assessment, make sure you have:
❏ An /api/posts route that handles the following query parameters:
❏ tags (mandatory) : any number of comma-separated strings
❏ sortBy (optional) : one of “id”, “reads”, “likes”, “popularity”
❏ direction (optional) : one of “asc”, “desc”, defaults to “asc”
❏ Error handling: Return an error message if:
❏ tags parameter is missing
❏ sortBy or direction has an invalid value
❏ Testing without using our solution API route
❏ Caching (bonus)
Submission Details
Please submit your code in a compressed folder on the Hatchways platform. The max
submission size is 5MB.
|