Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ swap
Function
swap
javascript/0048-rotate-image.js:75–79 ·
view source on GitHub ↗
(matrix, row, col)
Source
from the content-addressed store, hash-verified
73
};
74
75
var
swap = (matrix, row, col) =>
76
([matrix[row][col], matrix[col][row]] = [
77
matrix[col][row],
78
matrix[row][col],
79
]);
Callers
1
transpose
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected