Skip to content

Instantly share code, notes, and snippets.

@avinal
Last active June 18, 2022 06:30
Show Gist options
  • Save avinal/5362324164429d92764f3e0ede26ab63 to your computer and use it in GitHub Desktop.
Save avinal/5362324164429d92764f3e0ede26ab63 to your computer and use it in GitHub Desktop.

Requirements

Basic

  • Proper project structure

  • Well formatted code with descriptive readme

  • Should solve normal, postfix and prefix expressions

  • Step by step printing of solution

  • Command line description

    # for prefix expressions
    calgo solve --prefix <expression-here>
    
    # for postfix expression
    calgo solve --postfix <expression-here>
    
    # for normal expression
    calgo solve <expression-here>

Medium

  • Conversion from one type to another

  • Step by step printing of conversion

  • Command line description

    # from and to can be pre, post or normal
    calgo convert --from=<type> --to=<type> <expression-here>

Advanced

  • Add a flag to enable or disable step by step output --step
  • Add unit tests for all the functions
  • Add an algorithm to determine the type of expression
    calgo determine <expression-here>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment