Skip to content

Instantly share code, notes, and snippets.

View phamleduy04's full-sized avatar
🏫
Working from school :)

Duy Pham Le phamleduy04

🏫
Working from school :)
View GitHub Profile
@phamleduy04
phamleduy04 / index.js
Last active April 23, 2024 04:36
Transpose matrix js
const matrix = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[10, 11, 12]
];
const transposeMatrix = (matrix) => {
const rows = matrix.length;
const cols = matrix[0].length;
<!-- Sample file: https://app.any.run/tasks/2903a16a-f0f8-4113-bfc7-cf7dc3bb530c -->
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<EnvironmentSettingsResponse xmlns="http://tempuri.org/">
<EnvironmentSettingsResult xmlns:a="BrowserExtension" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:BlockedCountry xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<a:BlockedIP xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<b:string>52.149.194.33</b:string>
<b:string>52.149.194.33</b:string>