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
1 change: 0 additions & 1 deletion .eslintrc

This file was deleted.

23 changes: 10 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,22 +83,19 @@ This repository is a **comprehensive collection** of TypeScript algorithms and d

### 🔍 Algorithms

#### 🔎 Search Algorithms

- **[Binary Search](src/algorithms/search/binary-search/binary-search.ts)** - Efficient search in sorted arrays
- **[Linear Search](src/algorithms/search/linear-search/linear-search.ts)** - Simple sequential search

#### 🔄 Sorting Algorithms

- **[Quick Sort](src/algorithms/sort/quick/quick-sort.ts)** - Divide and conquer sorting algorithm
- **[Bubble Sort](src/algorithms/sort/bubble-sort/bubble-sort.ts)** - Simple comparison-based sort
- **[Bubble Sort Simple](src/algorithms/sort/bubble-sort/bubble-sort-simple.ts)** - Simplified bubble sort implementation
| Algorithm | Category | Description | Implementation |
| ---------------------- | -------- | ------------------------------------- | ------------------------------------------------------------------ |
| **Binary Search** | Search | Efficient search in sorted arrays | [View Code](src/algorithms/search/binary-search/binary-search.ts) |
| **Linear Search** | Search | Simple sequential search | [View Code](src/algorithms/search/linear-search/linear-search.ts) |
| **Quick Sort** | Sort | Divide and conquer sorting algorithm | [View Code](src/algorithms/sort/quick/quick-sort.ts) |
| **Bubble Sort** | Sort | Simple comparison-based sort | [View Code](src/algorithms/sort/bubble-sort/bubble-sort.ts) |
| **Bubble Sort Simple** | Sort | Simplified bubble sort implementation | [View Code](src/algorithms/sort/bubble-sort/bubble-sort-simple.ts) |

### 💻 Coding Challenges

#### 👉 Two Pointers

- **[Pair Sum Sorted](src/code-challanges/two-pointers/pair-sum-sorted.ts)** - Find pairs in sorted array that sum to target
| Challenge | Category | Description | Implementation |
| ------------------- | ------------ | --------------------------------------------- | ---------------------------------------------------------------- |
| **Pair Sum Sorted** | Two Pointers | Find pairs in sorted array that sum to target | [View Code](src/code-challanges/two-pointers/pair-sum-sorted.ts) |

### 🛠️ Utilities

Expand Down
41 changes: 41 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"files": {
"ignoreUnknown": false,
"includes": [
"**",
"!**/node_modules/**",
"!**/dist/**",
"!**/coverage/**",
"!**/*.config.js",
"!**/*.config.ts",
"!**/*.config.mts"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100
},
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5"
}
}
}
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"lint": "eslint ./src --ext .ts",
"prettier": "prettier \"**/*.+(json|ts)\"",
"format:check": "npm run prettier -- --check",
"format:fix": "npm run prettier -- --write",
"lint": "biome lint ./src",
"lint:fix": "biome lint --write ./src",
"format:check": "biome format --write=false ./src",
"format:fix": "biome format --write ./src",
"check": "biome check ./src",
"check:fix": "biome check --write ./src",
"test": "jest"
},
"keywords": [
Expand All @@ -22,8 +24,8 @@
"author": "Behzad Ali Mohammad Zad",
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "^2.3.7",
"@types/jest": "^30.0.0",
"eslint": "^9.39.1",
"jest": "^30.2.0",
"ts-jest": "^29.4.5",
"typescript": "^5.9.3"
Expand Down
Loading