From d0b1971332dee020cb7add08492554fa8316f8dd Mon Sep 17 00:00:00 2001 From: Denis Dalecki Date: Tue, 9 May 2023 21:55:49 +0200 Subject: [PATCH] code diagram --- .github/workflows/diagram.yml | 16 ++++++++++++++++ README.md | 17 ++--------------- rust/README.md | 17 ++++++++++++++++- 3 files changed, 34 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/diagram.yml diff --git a/.github/workflows/diagram.yml b/.github/workflows/diagram.yml new file mode 100644 index 0000000..5ef5162 --- /dev/null +++ b/.github/workflows/diagram.yml @@ -0,0 +1,16 @@ +name: Create diagram +on: + workflow_dispatch: {} + push: + branches: + - main +jobs: + get_data: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@master + - name: Update diagram + uses: githubocto/repo-visualizer@main + with: + excluded_paths: "ignore,.github" diff --git a/README.md b/README.md index 8089841..b3587d1 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,5 @@ # Leetcode -My leetcode solutions in Rust +My leetcode solutions - -## Usage - -Every directory under `problems/` is a cargo project which contains some basic test cases. - -The whole project is a cargo workspace, -so all solutions can be tested using `cargo test` from repository root - - -## Common - -The workspace contains a `common` crate which is used in tests -and also contains leetcode-compatible definitions of common data structures, -like `TreeNode` and `ListNode` +![Visualization of this repo](./diagram.svg) diff --git a/rust/README.md b/rust/README.md index d7c84d1..8089841 100644 --- a/rust/README.md +++ b/rust/README.md @@ -1,3 +1,18 @@ # Leetcode -My leetcode solutions +My leetcode solutions in Rust + + +## Usage + +Every directory under `problems/` is a cargo project which contains some basic test cases. + +The whole project is a cargo workspace, +so all solutions can be tested using `cargo test` from repository root + + +## Common + +The workspace contains a `common` crate which is used in tests +and also contains leetcode-compatible definitions of common data structures, +like `TreeNode` and `ListNode`