This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Problem: Given a 2D array of integers, create a spiral_copy function | |
that copies the input matrix's values into a 1D array in spiral order, | |
clockwise. The function should return only that array and analyze the | |
time/space complexities after you have a solution. | |
Solution: Return a 1D spiral copy of the input matrix. | |
Approach: | |
1. Extract the width and height of the input matrix into separate variables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Dependencies: | |
# - Each machine must have openssh-server installed | |
# - Each machine must have key-based SSH authentication configured | |
# - Each machine must have | |
declare -a MACHINES=( | |
"localhost" | |
"nonexistent" |
OlderNewer