Git Product home page Git Product logo

jacobi-interview-assessment's Introduction

๐Ÿ“‹ Technical Assessment

This repository contains the solutions to three technical assessment tasks. Each solution is provided in a separate folder with the associated code and test cases.

๐Ÿ“‚ Repository Structure

๐Ÿš‚ Task 1: Train Composition

The Train Composition problem is implemented using a doubly linked list. The Train object has two methods attachWagonFromLeft and attachWagonFromRight, which take an integer (the wagon ID), and attach it to the left or right side of the train, respectively. It also has methods detachWagonFromLeft and detachWagonFromRight which remove and return the wagon ID from the left or right side of the train, respectively.

The tests ensure that the Train object behaves correctly when attaching and detaching wagons.

๐Ÿ—ƒ Task 2: SQL Queries

This task involves writing SQL queries for a relational database containing the tables CUSTOMER, SALES, and VIP. The queries are stored in a text file (queries.txt) and include:

  • A query that shows total sales by customer.
  • A query that creates a list of customers that are not VIPs.

โŒโญ• Task 3: Tic-Tac-Toe

This task involves implementing a Tic-Tac-Toe game in JavaScript. The Game class is able to keep track of a game's state and tell you if the game has been won or not. The game can be played on a board of any size. The move method allows a player with a given ID to make a move at specified x and y coordinates.

The tests ensure that the game behaves correctly when making moves, and that it correctly identifies winning conditions or a tie.

๐Ÿš€ Running the Tests

To run the tests for Task 1 and Task 3, follow these steps:

  1. Open a terminal or command prompt.
  2. Navigate to the directory containing the repository.
  3. Run npm install to install the necessary dependencies.
  4. Navigate to the specific task directory where you want to run the tests (e.g., Task 1 or Task 3).
  5. Run npm test <test-filename> to run the tests for that task. Replace <test-filename> with the appropriate test file name (e.g., trainComposition.test.js or tic-tac-toe.test.js).

๐Ÿ‘ค Author

Chinmay Tagade

jacobi-interview-assessment's People

Contributors

blaze10 avatar

Stargazers

pranav_zambre avatar

Watchers

 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.