Giter VIP home page Giter VIP logo

coding-challenge's Introduction

Taktile Coding Challenge

Your challenge is to implement fold in the language of your choice.

Description

fold is a higher order function that takes

  • a sequence of type A
  • a "starting" value of type B
  • a function (A, B) -> B

and returns a B. E.g., the sum of an array is a special case of fold, where

  • the sequence is an array of numbers
  • the starting value is 0
  • the function is +

You can find more information on Wikipedia.

Instructions

Fork this repository.

Implement fold in any language of your choice. Don't directly use the fold that is already part of your language (see the list on Wikipedia).

Send us a link to your fork within 1 week of being invited to participate on this challenge.

Timebox

Aim to use about 1 hour of time on the solution, don't use more than 2 hours. We give roughly equal weight to the each of the following:

  • Documentation
  • Packaging
  • Testing
  • Readability of code
  • Correctness of implementation
  • Performance
  • Generality
  • Correntness of types (if applicable)

Please don't stress if your solution isn't perfect. With a timebox of at most 2 hours, you most likely won't be able to check all the boxes above. This challenge is intended as an exercise in tradeoffs. We want to understand how you view the overall value and lifecycle of software.

coding-challenge's People

Contributors

dit7ya avatar imw avatar r-raymond 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.