Giter Club home page Giter Club logo

coding-problem-artefacts's Introduction

Coding Problem Artefacts

This is a repository which includes the instructions and artefacts required for solving the Backend Geektrust coding problems. Please only submit source files while submitting the solution.

This document covers following aspects of code evaluation.

  • Correctness
  • Unit tests
  • Build

Languages we support

If you are solving the coding problem in any one of the languages given below, then follow the instructions from their respective ReadMe files by clicking on the link

Correctness

We expect your program to take the location to the text file as parameter. Input needs to be read from a text file, and output should be printed to the console. The text file will contain only commands in the format prescribed by the respective problem.

Please see the read me files of the language you have choosen for more details.

Unit tests

Unit tests are written to ensure that your public methods are working correctly. We recommend you to write unit tests. Please see the read me files of the language you have choosen for more details.

You can also submit your solution without unit tests.

Build

Build files help in automating the execution and testing for the solution. When you are writing your solution in a programming language that supports build & dependency management, we want you to add a build file to your solution, so that we can build, execute and test it.

You are also free to write code without any build file too, but that will affect your evaluation.

Support for other languages

Apart from these we also support Clojure, C++, Erlang, Groovy, Kotlin, PHP & Scala for our coding problems. However these do not have automated code correctness checks. If you language of choice is one of these, please make sure:

  • Your application is a command line application.
  • Your main file to execute is named as geektrust.<file ext>
  • It takes in a command line argument which is the location of the text file containing the commands that needs to be executed by your program.
  • After processing, it should print only the output related to each command in the file.

For e.g, if you re solving in PHP, and your input file is /tmp/input1.txt then the command for executing your code should be:

php geektrust.php /tmp/input1.txt

For e.g , in case of family problem, if the input file passed in has these commands

ADD_CHILD Chitra Aria Female 
GET_RELATIONSHIP Lavnya Maternal-Aunt 
GET_RELATIONSHIP Aria Siblings

then your solution should print.

CHILD_ADDITION_SUCCEEDED 
Aria 
Jnki Ahit

coding-problem-artefacts's People

Contributors

dhanush avatar clairsebastian avatar hyperl0gl0g avatar krishnannair avatar lukasimha2 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.