Skip to content

Commit e651db1

Browse files
committed
refactor: refine LeetCode 83 UI node arrow logic and fix JS documentation formatting
1 parent 97db7cc commit e651db1

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

  • Algorithm/Other/leetcode/83. Remove Duplicates from Sorted List/Claude 4.6 extended
  • JavaScript/2627. Debounce/Claude Code Sonnet 4.5 extended
  • public/Algorithm/Other/leetcode/83. Remove Duplicates from Sorted List/Claude 4.6 extended

Algorithm/Other/leetcode/83. Remove Duplicates from Sorted List/Claude 4.6 extended/README_React.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,11 @@ <h3 class="outfit font-bold text-teal-800 text-lg mb-3">アプローチ比較</h
806806
const isActive = highlight && highlight.includes(i);
807807
// find next non-skipped node
808808
let hasNext = false;
809+
let nextIdx = -1;
809810
for (let j = i + 1; j < allNodes.length; j++) {
810811
if (!allNodes[j].skip) {
811812
hasNext = true;
813+
nextIdx = j;
812814
break;
813815
}
814816
}
@@ -859,7 +861,7 @@ <h3 class="outfit font-bold text-teal-800 text-lg mb-3">アプローチ比較</h
859861
<line
860862
x1={nx + BOX + 4}
861863
y1={28 + BOX / 2}
862-
x2={nx + BOX + ARR - 4}
864+
x2={xPositions[nextIdx] - 4}
863865
y2={28 + BOX / 2}
864866
stroke="#64748b"
865867
strokeWidth="2"

JavaScript/2627. Debounce/Claude Code Sonnet 4.5 extended/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ def throttle(fn: Callable, t: float) -> Callable:
507507
if should_call:
508508
fn(*args, **kwargs)
509509

510-
return throttled```
510+
return throttled
511+
```
511512

512513
### Q6. LeetCodeで提出できる?
513514

public/Algorithm/Other/leetcode/83. Remove Duplicates from Sorted List/Claude 4.6 extended/README_React.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,11 @@ <h3 class="outfit font-bold text-teal-800 text-lg mb-3">アプローチ比較</h
806806
const isActive = highlight && highlight.includes(i);
807807
// find next non-skipped node
808808
let hasNext = false;
809+
let nextIdx = -1;
809810
for (let j = i + 1; j < allNodes.length; j++) {
810811
if (!allNodes[j].skip) {
811812
hasNext = true;
813+
nextIdx = j;
812814
break;
813815
}
814816
}
@@ -859,7 +861,7 @@ <h3 class="outfit font-bold text-teal-800 text-lg mb-3">アプローチ比較</h
859861
<line
860862
x1={nx + BOX + 4}
861863
y1={28 + BOX / 2}
862-
x2={nx + BOX + ARR - 4}
864+
x2={xPositions[nextIdx] - 4}
863865
y2={28 + BOX / 2}
864866
stroke="#64748b"
865867
strokeWidth="2"

0 commit comments

Comments
 (0)