Skip to content

Commit 5029052

Browse files
thuva4codex
andcommitted
Apply repository updates
Co-authored-by: Codex <codex@openai.com>
1 parent 7da835f commit 5029052

File tree

4,599 files changed

+279634
-19482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,599 files changed

+279634
-19482
lines changed

.bsp/scala.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "scala",
3+
"argv": [
4+
"/Users/thuvarakantharmarajasingam/Library/Caches/Coursier/arc/https/github.com/scala/scala3/releases/download/3.8.2/scala3-3.8.2-x86_64-apple-darwin.tar.gz/scala3-3.8.2-x86_64-apple-darwin/libexec/scala-cli",
5+
"--cli-default-scala-version",
6+
"3.8.2",
7+
"--repository",
8+
"file:///Users/thuvarakantharmarajasingam/Library/Caches/Coursier/arc/https/github.com/scala/scala3/releases/download/3.8.2/scala3-3.8.2-x86_64-apple-darwin.tar.gz/scala3-3.8.2-x86_64-apple-darwin/maven2",
9+
"--prog-name",
10+
"scala",
11+
"--skip-cli-updates",
12+
"bsp",
13+
"--json-options",
14+
"/Users/thuvarakantharmarajasingam/Desktop/Projects/Algorithms/.scala-build/ide-options-v2.json",
15+
"--json-launcher-options",
16+
"/Users/thuvarakantharmarajasingam/Desktop/Projects/Algorithms/.scala-build/ide-launcher-options.json",
17+
"--envs-file",
18+
"/Users/thuvarakantharmarajasingam/Desktop/Projects/Algorithms/.scala-build/ide-envs.json"
19+
],
20+
"version": "1.12.2",
21+
"bspVersion": "2.1.1",
22+
"languages": [
23+
"scala",
24+
"java"
25+
]
26+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Algorithm Request
2+
description: Request a new algorithm to be added to the repository
3+
title: "[Algorithm Request] "
4+
labels: ["algorithm-request"]
5+
body:
6+
- type: input
7+
id: algorithm-name
8+
attributes:
9+
label: Algorithm Name
10+
description: The name of the algorithm you'd like added
11+
placeholder: e.g., Tarjan's Bridge Finding Algorithm
12+
validations:
13+
required: true
14+
15+
- type: dropdown
16+
id: category
17+
attributes:
18+
label: Category
19+
description: Which category does this algorithm belong to?
20+
options:
21+
- sorting
22+
- searching
23+
- graph
24+
- dynamic-programming
25+
- trees
26+
- strings
27+
- math
28+
- greedy
29+
- backtracking
30+
- divide-and-conquer
31+
- bit-manipulation
32+
- geometry
33+
- cryptography
34+
- data-structures
35+
validations:
36+
required: true
37+
38+
- type: dropdown
39+
id: difficulty
40+
attributes:
41+
label: Difficulty
42+
description: How difficult is this algorithm to implement?
43+
options:
44+
- beginner
45+
- intermediate
46+
- advanced
47+
validations:
48+
required: true
49+
50+
- type: textarea
51+
id: description
52+
attributes:
53+
label: Description
54+
description: Describe the algorithm and what problem it solves
55+
placeholder: Explain what this algorithm does, its use cases, and why it should be included.
56+
validations:
57+
required: true
58+
59+
- type: input
60+
id: related-algorithms
61+
attributes:
62+
label: Related Algorithms
63+
description: Any related algorithms already in the repository?
64+
placeholder: e.g., dijkstra, bellman-ford
65+
validations:
66+
required: false
67+
68+
- type: textarea
69+
id: references
70+
attributes:
71+
label: References
72+
description: Links to papers, textbooks, or articles about this algorithm
73+
placeholder: |
74+
- https://en.wikipedia.org/wiki/...
75+
- Introduction to Algorithms, Chapter X
76+
validations:
77+
required: false
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Bug Report
2+
description: Report a bug in an algorithm implementation or the website
3+
title: "[Bug] "
4+
labels: ["bug"]
5+
body:
6+
- type: textarea
7+
id: description
8+
attributes:
9+
label: Describe the Bug
10+
description: A clear and concise description of what the bug is
11+
validations:
12+
required: true
13+
14+
- type: textarea
15+
id: reproduce
16+
attributes:
17+
label: Steps to Reproduce
18+
description: Steps to reproduce the behavior
19+
placeholder: |
20+
1. Go to '...'
21+
2. Run '...'
22+
3. See error
23+
validations:
24+
required: true
25+
26+
- type: textarea
27+
id: expected
28+
attributes:
29+
label: Expected Behavior
30+
description: What you expected to happen
31+
validations:
32+
required: true
33+
34+
- type: input
35+
id: algorithm
36+
attributes:
37+
label: Affected Algorithm
38+
description: Which algorithm is affected (if applicable)?
39+
placeholder: e.g., algorithms/sorting/bubble-sort
40+
validations:
41+
required: false
42+
43+
- type: dropdown
44+
id: area
45+
attributes:
46+
label: Area
47+
description: What area of the project is affected?
48+
options:
49+
- Algorithm implementation
50+
- Website / visualization
51+
- Documentation
52+
- Build / validation scripts
53+
- Other
54+
validations:
55+
required: true
56+
57+
- type: textarea
58+
id: additional
59+
attributes:
60+
label: Additional Context
61+
description: Any other context, screenshots, or error messages
62+
validations:
63+
required: false

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Contributing Guide
4+
url: https://github.com/Thuva4/Algorithms_Example/blob/master/CONTRIBUTING.md
5+
about: Read the contributing guide before opening an issue or PR
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Feature Request
2+
description: Suggest an improvement or new feature for the project
3+
title: "[Feature] "
4+
labels: ["enhancement"]
5+
body:
6+
- type: textarea
7+
id: problem
8+
attributes:
9+
label: Problem
10+
description: Is your feature request related to a problem? Describe it.
11+
placeholder: I'm always frustrated when...
12+
validations:
13+
required: true
14+
15+
- type: textarea
16+
id: solution
17+
attributes:
18+
label: Proposed Solution
19+
description: Describe the solution you'd like
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: alternatives
25+
attributes:
26+
label: Alternatives Considered
27+
description: Any alternative solutions or features you've considered
28+
validations:
29+
required: false
30+
31+
- type: textarea
32+
id: additional
33+
attributes:
34+
label: Additional Context
35+
description: Any other context or screenshots about the feature request
36+
validations:
37+
required: false

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Language Implementation Request
2+
description: Request a new language implementation for an existing algorithm
3+
title: "[Implementation] "
4+
labels: ["implementation-request"]
5+
body:
6+
- type: input
7+
id: algorithm-name
8+
attributes:
9+
label: Algorithm Name
10+
description: The name of the algorithm that needs a new implementation
11+
placeholder: e.g., Bubble Sort
12+
validations:
13+
required: true
14+
15+
- type: input
16+
id: algorithm-path
17+
attributes:
18+
label: Algorithm Path
19+
description: Path to the algorithm directory
20+
placeholder: e.g., algorithms/sorting/bubble-sort
21+
validations:
22+
required: true
23+
24+
- type: dropdown
25+
id: language
26+
attributes:
27+
label: Language
28+
description: Which language implementation is needed?
29+
options:
30+
- Python
31+
- Java
32+
- C++
33+
- C
34+
- Go
35+
- TypeScript
36+
- Kotlin
37+
- Rust
38+
- Swift
39+
- Scala
40+
- "C#"
41+
validations:
42+
required: true
43+
44+
- type: textarea
45+
id: additional-context
46+
attributes:
47+
label: Additional Context
48+
description: Any notes about the implementation (special considerations, edge cases, etc.)
49+
validations:
50+
required: false

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## What type of PR is this?
2+
3+
- [ ] New algorithm
4+
- [ ] New language implementation for existing algorithm
5+
- [ ] Bug fix
6+
- [ ] Documentation update
7+
- [ ] Other
8+
9+
## Description
10+
11+
<!-- Briefly describe what this PR does and why. -->
12+
13+
## Checklist
14+
15+
- [ ] Ran `npm run validate` and it passes
16+
- [ ] All required files present (`metadata.yaml`, `README.md`, `tests/cases.yaml`)
17+
- [ ] At least 5 test cases including edge cases
18+
- [ ] Code follows naming conventions from [CONTRIBUTING.md](../CONTRIBUTING.md)
19+
- [ ] Implementation is standalone (no external dependencies)
20+
- [ ] README follows template format with all required sections
21+
- [ ] `metadata.yaml` has all required fields (name, slug, category, difficulty, complexity, etc.)
22+
23+
## Testing
24+
25+
<!-- How can a reviewer verify your changes? -->

.github/workflows/deploy.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 20
26+
cache: npm
27+
28+
- run: npm ci
29+
30+
- name: Build data
31+
run: npm run build:data
32+
33+
- name: Build web app
34+
run: npm run build
35+
36+
- uses: actions/upload-pages-artifact@v3
37+
with:
38+
path: web/dist
39+
40+
deploy:
41+
needs: build
42+
runs-on: ubuntu-latest
43+
environment:
44+
name: github-pages
45+
url: ${{ steps.deployment.outputs.page_url }}
46+
steps:
47+
- id: deployment
48+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)