Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
3eb6fee
feat: PHASE 2 - Massive template system refactoring and modularization
sachinlala Sep 16, 2025
8ae3b97
fix: PHASE 2 - UI/UX regression fixes and dev script improvements
sachinlala Sep 16, 2025
ee3f9fd
fix: PHASE 2 - Critical UI/UX regression fixes
sachinlala Sep 16, 2025
f83a64e
fix: PHASE 2 - Final critical fix for file loading 404 errors
sachinlala Sep 16, 2025
69e0627
fix: Eliminate console 404 errors for optional script files
sachinlala Sep 16, 2025
ee8dc47
fix: Completely eliminate console 404 errors using file existence check
sachinlala Sep 16, 2025
24f5094
feat: Add placeholder -steps.js files for all algorithms
sachinlala Sep 16, 2025
e6f30d4
cleanup: Remove duplicate template files from Phase 2 refactoring
sachinlala Sep 16, 2025
667ff40
cleanup: Remove all unused legacy files and functions
sachinlala Sep 16, 2025
9e1c85d
Fix step file loading to prevent 404 console errors
sachinlala Sep 16, 2025
c6dc300
Update UI_UX.md documentation for Phase 2 system
sachinlala Sep 16, 2025
e122fa6
Add debug logging and error handling to universal loader
sachinlala Sep 16, 2025
f86c429
Fix accordion functionality conflicts and add debug logging
sachinlala Sep 16, 2025
f576b0f
Fix UI issues: theme toggle, debug logs, and data type switching
sachinlala Sep 16, 2025
9b08daa
Fix hamburger menu not working in universal loader pages
sachinlala Sep 16, 2025
e2a9404
Fix sorting algorithms URL path in sidebar navigation
sachinlala Sep 16, 2025
346800a
Fix hamburger menu functionality and implement centralized path confi…
sachinlala Sep 16, 2025
9178ad7
Fix subdirectory path calculation for correct navigation
sachinlala Sep 16, 2025
6002681
Fix missing SL logo and runDemo function issues
sachinlala Sep 16, 2025
2dcc360
Fix SortingUtils redeclaration conflicts in sorting algorithms
sachinlala Sep 16, 2025
e66dcd5
Add missing customDemoFunction to bucket-sort config
sachinlala Sep 16, 2025
5f06492
Add comprehensive debug logging to universal loader
sachinlala Sep 16, 2025
65d42c7
Add missing customDemoFunction to all algorithm configs
sachinlala Sep 16, 2025
0071368
Clean up debug logging for production release
sachinlala Sep 17, 2025
6a9dfb7
Fix critical bug in wiggle-sort-core.js
sachinlala Sep 17, 2025
1ee8d2f
Clean up remaining *-core.js files - remove unused parameters and red…
sachinlala Sep 17, 2025
076d0eb
Simplify binary search demo UI and fix remaining radix sort cleanup
sachinlala Sep 17, 2025
6bbe5ae
Clean up binary-search-core.js - remove redundant binarySearchSimple …
sachinlala Sep 17, 2025
197b08f
Improve insertion sort dropdown - simplify option text
sachinlala Sep 17, 2025
3a7c238
Fix dropdown rendering in dynamic template system
sachinlala Sep 17, 2025
92eebaf
Fix binary insertion sort visualization - legend and dark mode issues
sachinlala Sep 17, 2025
470f1d2
Fix binary insertion sort array cell colors - use CSS classes instead…
sachinlala Sep 17, 2025
f592b8a
Fix all 5 legend colors in binary insertion sort - ensure proper colo…
sachinlala Sep 17, 2025
595d7f6
feat: UI improvements
sachinlala Sep 17, 2025
d3bc380
doc improvemnt
sachinlala Sep 17, 2025
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
import com.sl.algorithms.core.list.ListNode;

/**
* <br>In-place quadratic-complexity sort algorithm, useful for small data-set.<br> <br><a
* href="https://www.hackerearth.com/practice/algorithms/sorting/selection-sort/tutorial/">Reference</a><br>
* <br><u>Approach</u>:&nbsp;Given a list, take the current element and exchange it with the
* smallest element on the right.<br> <br><u>Usage</u>:&nbsp;Small data-set / when 'write' operation
* is expensive.<br> <br><u>Inner Loop</u>:&nbsp;operates on the Unsorted portion.<br>
* <p>In-place quadratic-complexity algorithm, useful for small data-set.</p>
* <p>Given a list, take the current element and exchange it with the smallest element.</p>
* <p>Usage: Small data-set / when 'write' operation is expensive.</p>
* <p>Inner Loop: operates on the Unsorted portion.</p>
*/
@SuppressWarnings("unchecked")
public class SelectionSort<T extends Comparable> implements SortingEngine<T> {
Expand Down
21 changes: 16 additions & 5 deletions algorithms-js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,18 @@

### πŸš€ Quick Start

#### Option 0: Root-level dev helper
#### Option 0: algorithms-js dev helper (Recommended)

```bash
# From algorithms-js directory
cd algorithms-js
./dev.sh start # start http://localhost:8080
./dev.sh status # check status
./dev.sh stop # stop server
./dev.sh restart # restart server
```

#### Option 1: Root-level dev helper

```bash
# From repo root
Expand All @@ -27,7 +38,7 @@
./dev.sh stop # stop server
```

#### Option 1: Using root build script (Recommended)
#### Option 2: Using root build script

```bash
# Clone the repository
Expand All @@ -42,7 +53,7 @@ cd algorithms-js
npm start
```

#### Option 2: Using npm scripts directly
#### Option 3: Using npm scripts directly

```bash
# Clone the repository
Expand All @@ -56,7 +67,7 @@ npm start
npm run dev
```

#### Option 3: Manual server setup
#### Option 4: Manual server setup

```bash
# Using Python (recommended - no redirect issues)
Expand All @@ -70,7 +81,7 @@ npx live-server --port=8080 --no-browser

Then open: **http://localhost:8080**

#### Option 4: Using the helper script (with dependency checks)
#### Option 5: Using the helper script (with dependency checks)

```bash
# From repo root
Expand Down
303 changes: 0 additions & 303 deletions algorithms-js/TEMPLATE-SYSTEM.md

This file was deleted.

Loading