carinhopm / SmartConnect

Binary Search Tree Microservice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartConnect Student Challenge

This repo contains the solution for the parts 1 & 2 of the SmartConnect Student Challenge, consisting on the implementation of the operation insert for a Binary Search Tree (BST).

Technnical details

The challenge has been implemented using Python 3.6 as programming language. This implementation can be found in the file src/binarytree/insertion.py.

Within the folder tests it can be found the file test_insertion.py containing two tests:

  • Test A: which basically builds a simple BST with low values and check the correct position of the nodes just after the additions.
  • Test B: that builds a BST with 50 nodes with random keys for its nodes and checks that every node has a left child with a lower key and a right child with a higher key (in case it has children).

These tests are being runned by Travis-CI everytime a new commit is pushed. The Travis-CI configuration can be found in the file .travis.yml, which prepares the environment and runs the Python file setup.py containing the information to run the tests.

Part 3

I'm currently working on part 3 using the integration branch, still debugging...

About

Binary Search Tree Microservice


Languages

Language:Python 100.0%