Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
code diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaletski committed May 9, 2023
1 parent e7959dc commit d0b1971
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/diagram.yml
Original file line number Diff line number Diff line change
@@ -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"
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)
17 changes: 16 additions & 1 deletion rust/README.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit d0b1971

Please sign in to comment.