Skip to content

Commit

Permalink
+ 2311 . four sets . minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
nuoxoxo committed Dec 11, 2023
1 parent a079e2d commit 211d3b9
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/includes/Aoc2310.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,20 +183,17 @@ var Aoc2310 = () => {
for (let coor of Seen) {
let [r, c] = coor
temp_Path_Unused_Pipes[r] =
temp_Path_Unused_Pipes[r].substring(0, c) + ' ' + temp_Path_Unused_Pipes[r].substring(c + 1)
temp_Path_Unused_Pipes[r].substring(0, c) +
' ' +
temp_Path_Unused_Pipes[r].substring(c + 1)
temp_Path_All_Pipes[r][c] = A[r][c]
}
temp_Path_Unused_Pipes[Start[0]] =
temp_Path_Unused_Pipes[Start[0]].substring(0, Start[1]) + '█' + temp_Path_Unused_Pipes[Start[0]].substring(Start[1] + 1)
temp_Path_Unused_Pipes[Start[0]].substring(0, Start[1]) +
'█' +
temp_Path_Unused_Pipes[Start[0]].substring(Start[1] + 1)
temp_Path_All_Pipes[Start[0]][Start[1]] = '█'

// get path 3 : all landlocked area
// let temp_Path_Landlock:string[][]= Deepcopy2DArray(A)
// for (let coor of UNION) {
// let [r, c] = coor
// temp_Path_Landlock[r][c] = '░'
// }

setPathUnusedPipes(temp_Path_Unused_Pipes)
setPathAllPipes(temp_Path_All_Pipes)

Expand Down

0 comments on commit 211d3b9

Please sign in to comment.