Skip to content

Conversation

@shivabhusal
Copy link

@shivabhusal shivabhusal commented Nov 27, 2025

This PR adds Ruby implementations for all existing algorithms across sections including Sorting, Data Structures, Graphs, Linked Lists, Bit Manipulation, and Dynamic Programming.

Changes include:

  • Added .rb versions of all algorithm files.
  • Updated frontend Tabs in each section to include a Ruby tab alongside Python, JavaScript, Java, and previously C++.
  • Tweaked component code to correctly display Ruby content and language highlighting.
  • Ensured that all examples and tabs render correctly without breaking existing functionality.
  • Changes base URL so that contributors can also deploy to their pages for preview
    • auto supports any repo(even main repo)

This improves multi-language support and allows users to view and run Ruby implementations for all algorithms.

Live Preview: https://shivabhusal.github.io/leetcode-cheatsheet/

Suggestion for reviewer: There are a lot of files changed so better to go through the file-explorer in left sidebar.

@shivabhusal shivabhusal force-pushed the main branch 2 times, most recently from bb439d9 to 09838b0 Compare November 27, 2025 07:54
@jwl-7
Copy link
Owner

jwl-7 commented Nov 27, 2025

I will review this in a few days when I get back to my computer. Thank you for your contribution!

<meta property="og:image" content="https://jwl-7.github.io/leetcode-cheatsheet/favicon/android-chrome-512x512.png" />
<meta property="og:url" content="https://jwl-7.github.io/leetcode-cheatsheet/" />
<meta property="og:image" content="/leetcode-cheatsheet/favicon/android-chrome-512x512.png" />
<meta property="og:url" content="/leetcode-cheatsheet/" />
Copy link
Author

@shivabhusal shivabhusal Nov 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

converts URL to relative path

export default defineConfig({
plugins: [react()],
base: "https://jwl-7.github.io/leetcode-cheatsheet/",
base: "/leetcode-cheatsheet/",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uses relative path

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants