Skip to content

Commit 07b8587

Browse files
authored
Merge pull request #5 from behzadam/pair-sum
Pair sum
2 parents d259135 + 0ad6170 commit 07b8587

File tree

29 files changed

+190
-510
lines changed

29 files changed

+190
-510
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,19 @@ This repository is a **comprehensive collection** of TypeScript algorithms and d
8383

8484
### 🔍 Algorithms
8585

86-
#### 🔎 Search Algorithms
87-
88-
- **[Binary Search](src/algorithms/search/binary-search/binary-search.ts)** - Efficient search in sorted arrays
89-
- **[Linear Search](src/algorithms/search/linear-search/linear-search.ts)** - Simple sequential search
90-
91-
#### 🔄 Sorting Algorithms
92-
93-
- **[Quick Sort](src/algorithms/sort/quick/quick-sort.ts)** - Divide and conquer sorting algorithm
94-
- **[Bubble Sort](src/algorithms/sort/bubble-sort/bubble-sort.ts)** - Simple comparison-based sort
95-
- **[Bubble Sort Simple](src/algorithms/sort/bubble-sort/bubble-sort-simple.ts)** - Simplified bubble sort implementation
86+
| Algorithm | Category | Description | Implementation |
87+
| ---------------------- | -------- | ------------------------------------- | ------------------------------------------------------------------ |
88+
| **Binary Search** | Search | Efficient search in sorted arrays | [View Code](src/algorithms/search/binary-search/binary-search.ts) |
89+
| **Linear Search** | Search | Simple sequential search | [View Code](src/algorithms/search/linear-search/linear-search.ts) |
90+
| **Quick Sort** | Sort | Divide and conquer sorting algorithm | [View Code](src/algorithms/sort/quick/quick-sort.ts) |
91+
| **Bubble Sort** | Sort | Simple comparison-based sort | [View Code](src/algorithms/sort/bubble-sort/bubble-sort.ts) |
92+
| **Bubble Sort Simple** | Sort | Simplified bubble sort implementation | [View Code](src/algorithms/sort/bubble-sort/bubble-sort-simple.ts) |
9693

9794
### 💻 Coding Challenges
9895

99-
#### 👉 Two Pointers
100-
101-
- **[Pair Sum Sorted](src/code-challanges/two-pointers/pair-sum-sorted.ts)** - Find pairs in sorted array that sum to target
96+
| Challenge | Category | Description | Implementation |
97+
| ------------------- | ------------ | --------------------------------------------- | ---------------------------------------------------------------- |
98+
| **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) |
10299

103100
### 🛠️ Utilities
104101

biome.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": [
11+
"**",
12+
"!**/node_modules/**",
13+
"!**/dist/**",
14+
"!**/coverage/**",
15+
"!**/*.config.js",
16+
"!**/*.config.ts",
17+
"!**/*.config.mts"
18+
]
19+
},
20+
"formatter": {
21+
"enabled": true,
22+
"indentStyle": "space",
23+
"indentWidth": 2,
24+
"lineEnding": "lf",
25+
"lineWidth": 100
26+
},
27+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
28+
"linter": {
29+
"enabled": true,
30+
"rules": {
31+
"recommended": true
32+
}
33+
},
34+
"javascript": {
35+
"formatter": {
36+
"quoteStyle": "double",
37+
"semicolons": "always",
38+
"trailingCommas": "es5"
39+
}
40+
}
41+
}

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
"main": "dist/index.js",
88
"scripts": {
99
"build": "tsc",
10-
"lint": "eslint ./src --ext .ts",
11-
"prettier": "prettier \"**/*.+(json|ts)\"",
12-
"format:check": "npm run prettier -- --check",
13-
"format:fix": "npm run prettier -- --write",
10+
"lint": "biome lint ./src",
11+
"lint:fix": "biome lint --write ./src",
12+
"format:check": "biome format --write=false ./src",
13+
"format:fix": "biome format --write ./src",
14+
"check": "biome check ./src",
15+
"check:fix": "biome check --write ./src",
1416
"test": "jest"
1517
},
1618
"keywords": [
@@ -22,8 +24,8 @@
2224
"author": "Behzad Ali Mohammad Zad",
2325
"license": "MIT",
2426
"devDependencies": {
27+
"@biomejs/biome": "^2.3.7",
2528
"@types/jest": "^30.0.0",
26-
"eslint": "^9.39.1",
2729
"jest": "^30.2.0",
2830
"ts-jest": "^29.4.5",
2931
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)