Skip to content

[Help Wanted] [Easy] Add Postfix and Prefix expressions to "database" #3

Description

@AjayLiu

This website has buttons where the user can generate random Postfix and Prefix expressions. So far, the "database" (which is stored in typescript objects) only contains 3 example expressions:

From randomPostorders.ts:

const randomPostorders: string[] = [
    "3 7 * 9 + 2 /",
    "3 16 8 / 2 * +",
    "7 1 2 + 3 - *",
];
export default randomPostorders;

Anyone who'd like to help contribute could create a fork, clone, and submit a pull request under this issue. Below are the two files to help add to:
https://github.com/AjayLiu/notation-visualizer/blob/main/src/data/randomPostorders.ts
https://github.com/AjayLiu/notation-visualizer/blob/main/src/data/randomPreorders.ts

Feel free to ask any questions here, looking forward to merging your pull request!

Note: Make sure the Postfix/Prefix expressions are space-separated, only have numeral operands, and only contain the following operators: +, -, *, /, ^.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions