Giter Site home page Giter Site logo

acmefarmersmarket's Introduction

ACMEFarmersMarket

A C++ project

Use command line argument -t to run unit tests.

See Below for details:

Candidate Evaluation Assignment Senior C++ Developer Scenario ACME Farmers Market has an online store through which various products are listed and organized by category. The category layout is a tree structure. Each node can only have 1 parent and is capable of having 0 to n children. Objective Create a console app in C++ that will:

  1. Read the attached text file, and create a tree data structure.
  2. Implement the interface below and provide the correct results to each function. Assumptions • Each line is a node. The format is: ‘parent name’ | ‘new node name’. • The input file is structed to build your tree as it is read. The parent to the new node will be the most recent occurrence of that name. // Interface // Print out all nodes with 0 children PrintLeaves(); // Find and print out node by name. If multiple with the same name return both. Find(std::string name); // Print out the full tree structure to the screen. PrintTree() Sample print output. Each level of the tree has an additional ‘-‘. TOP
  • FRUIT -- RED --- APPLE --- STRAWBERRIES -- GREEN --- GRAPES -- YELLOW --- BANANA Sample output for Find(BANANAS) TOP-FRUITS-YELLOW-BANANAS

acmefarmersmarket's People

Contributors

donaldpherman avatar

Watchers

 avatar Nick Velasco avatar

Forkers

compg33k

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.