Code Monkey home page Code Monkey logo

challenge's Introduction

Coding Round Challenge

Question

Imagine we have a Product Listing website, powered up by this API (refer to the Routes section). Our website provides a platform for sellers to list their product and track the existing competition to optimize their price.

In order to empower our sellers, we are planning to build a new API endpoint which gives an average product price across all brand names, given a category. Say, for a smartphone category, we should see brands like Apple, Samsung etc. with their average prices.

Write a function in a language of your choice to support this API endpoint (you don't have to build the entire API, just the function). To test it, write unit tests using the provided JSON file (tests.json) that contains tuples of inputs and expected output.

Setting up the environment

  • Clone the repo:
git clone [email protected]:kluein/coding-round-challenge.git
  • Create a new branch:
git checkout -b your-name
  • Copy your the files you might have prepared for your environment (eg. requirements.txt, vitual env, and so on for Python).
  • Write your code using your language of preference.
  • Write unit tests using tests.json.
  • Commit and push your changes at the end of the interview:
git push --set-upstream origin your-name

challenge's People

Contributors

ssmlee04 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.