Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/detect-changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .github/workflows/detect-changes.yml
name: Detect Changes and Trigger Workflow

on:
workflow_dispatch:
push:
branches:
- main # Change this to the branch you want to monitor
pull_request:
branches:
- main # Trigger on pull request to the branch

jobs:
trigger-workflow:
runs-on: ubuntu-latest

steps:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Trigger workflow in another repository
env:
GITHUB_TOKEN: ${{ secrets.SEPTEMBER_2024 }}
run: |
echo "Changes detected. Workflow Triggered!"
curl -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer $GITHUB_TOKEN" \
https://api.github.com/repos/yashksaini-coder/Update-Leetcode-Gist/actions/workflows/main.yml/dispatches \
-d '{"ref":"main"}'
51 changes: 51 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
37 changes: 37 additions & 0 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Generate Table of Contents

on:
push:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs at 00:00 UTC every day

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "20"

- name: Install dependencies
run: npm install
working-directory: scripts

- name: Run index.js
run: node index.js
working-directory: scripts

- name: Commit and push if changed
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git add .
git diff --quiet && git diff --staged --quiet || (git commit -m "Update README with table of contents" && git push)
working-directory: ${{ github.workspace }}
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
scripts/node_modules/
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
104 changes: 5 additions & 99 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,104 +36,10 @@

---

## Project Structure
## Solutions

---
<!-- SOLUTIONS TABLE BEGIN -->

<!-- SOLUTIONS TABLE END -->

<!-- START_STRUCTURE -->
```
├── 1240-stone-game-ii
│ ├── README.md
│ └── stone-game-ii.java
├── 1325-path-with-maximum-probability
│ ├── README.md
│ └── path-with-maximum-probability.java
├── 145-binary-tree-postorder-traversal
│ ├── README.md
│ └── binary-tree-postorder-traversal.java
├── 1556-make-two-arrays-equal-by-reversing-subarrays
│ ├── README.md
│ └── make-two-arrays-equal-by-reversing-subarrays.java
├── 1615-range-sum-of-sorted-subarray-sums
│ ├── README.md
│ └── range-sum-of-sorted-subarray-sums.java
├── 1691-minimum-number-of-days-to-disconnect-island
│ ├── README.md
│ └── minimum-number-of-days-to-disconnect-island.java
├── 2035-count-sub-islands
│ ├── README.md
│ └── count-sub-islands.java
├── 2067-maximum-number-of-points-with-cost
│ ├── README.md
│ └── maximum-number-of-points-with-cost.java
├── 2163-kth-distinct-string-in-an-array
│ ├── README.md
│ └── kth-distinct-string-in-an-array.java
├── 2255-minimum-swaps-to-group-all-1s-together-ii
│ ├── README.md
│ └── minimum-swaps-to-group-all-1s-together-ii.java
├── 264-ugly-number-ii
│ ├── README.md
│ └── ugly-number-ii.java
├── 2727-number-of-senior-citizens
│ ├── README.md
│ └── number-of-senior-citizens.java
├── 273-integer-to-english-words
│ ├── README.md
│ └── integer-to-english-words.java
├── 2803-modify-graph-edge-weights
│ ├── README.md
│ └── modify-graph-edge-weights.java
├── 3276-minimum-number-of-pushes-to-type-word-ii
│ ├── README.md
│ └── minimum-number-of-pushes-to-type-word-ii.java
├── 40-combination-sum-ii
│ ├── README.md
│ └── combination-sum-ii.java
├── 476-number-complement
│ ├── README.md
│ └── number-complement.java
├── 564-find-the-closest-palindrome
│ ├── README.md
│ └── find-the-closest-palindrome.java
├── 592-fraction-addition-and-subtraction
│ ├── README.md
│ └── fraction-addition-and-subtraction.java
├── 624-maximum-distance-in-arrays
│ ├── README.md
│ └── maximum-distance-in-arrays.java
├── 650-2-keys-keyboard
│ ├── 2-keys-keyboard.java
│ └── README.md
├── 664-strange-printer
│ ├── README.md
│ └── strange-printer.java
├── 719-find-k-th-smallest-pair-distance
│ ├── README.md
│ └── find-k-th-smallest-pair-distance.java
├── 776-n-ary-tree-postorder-traversal
│ ├── README.md
│ └── n-ary-tree-postorder-traversal.java
├── 789-kth-largest-element-in-a-stream
│ ├── README.md
│ └── kth-largest-element-in-a-stream.java
├── 870-magic-squares-in-grid
│ ├── README.md
│ └── magic-squares-in-grid.java
├── 890-lemonade-change
│ ├── README.md
│ └── lemonade-change.java
├── 921-spiral-matrix-iii
│ ├── README.md
│ └── spiral-matrix-iii.java
├── 984-most-stones-removed-with-same-row-or-column
│ ├── README.md
│ └── most-stones-removed-with-same-row-or-column.java
├── 999-regions-cut-by-slashes
│ ├── README.md
│ └── regions-cut-by-slashes.java
├── LICENSE
├── README.md
└── structure.txt
```
<!-- END_STRUCTURE -->
<br>
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: August Leetcode Daily 2024
author: Yash Kumar Saini
description: A Repository to maintain my August Leetcode Coding session 2024
show_downloads: false
google_analytics:
remote_theme: pages-themes/cayman@v0.2.0
plugins:
- jekyll-remote-theme
38 changes: 38 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
{% include head-custom.html %}

{% seo %}
</head>

<body>

<header>
<div class="container">
<a id="a-title" href="{{ '/' | relative_url }}">
<h1>{{ site.title | default: site.github.repository_name }}</h1>
</a>
<h2>{{ site.description | default: site.github.project_tagline }}</h2>

<section id="downloads">
{% if site.show_downloads %}
<a href="{{ site.github.zip_url }}" class="btn">Download as .zip</a>
<a href="{{ site.github.tar_url }}" class="btn">Download as .tar.gz</a>
{% endif %}
<a href="{{ site.github.repository_url }}" class="btn btn-github"><span class="icon"></span>View on GitHub</a>
</section>
</div>
</header>

<div class="container">
<section id="main_content">
{{ content }}
</section>
</div>
</body>
</html>
Loading