Python Solution 

def snail_sort(matrix):
new_list = []

while matrix:
new_list.extend(matrix.pop(0))
if not matrix:
continue

for i in range(len(matrix)):
new_list.append(matrix[i].pop())
if not matrix:
break
if not matrix:
continue

new_list.extend(reversed(matrix.pop()))
if not matrix:
continue

for i in range(len(matrix) - 1, -1, -1):
new_list.append(matrix[i].pop(0))
if not matrix:
break
return new_list

MATRIX = [
[1, 2, 3, 4, 5],
[16, 17, 18, 19, 6],
[15, 24, 25, 20, 7],
[14, 23, 22, 21, 8],
[13, 12, 11, 10, 9],
]

snail_sort(MATRIX)

Show thread

Server Info

After an upgrade to the QOTO services all services are now up and running again. Downtime was ~5 minutes.

The following qoto services were updated:

NextCloud - cloud.qoto.org

GitLab - git.qoto.org

GitLab pages (including user hosted pages) - https://*.qoto.io

FunkWhale - audio.qoto.org

PeerTube - video.qoto.org

Discourse - discourse.qoto.org

The learnings thus from the study can be scrutinized and implemented to propel the wheel towards a road that leads to a free-thinking Utopia.

Show thread

Has anybody thought of or is anyone interested in studying/discussing the language, the words used in the print, electronic media & by general public regarding the communication of Ayodhya verdict?

Language & imagery are important. The words used, the images propagated can be studied to understand the behavior, modus operandi of populism, herd mentality, deindividuation (in this case, its very inception) & propaganda and how it incites reaction.

Hi all, subjects of the STEM community; My name is Abhijith. I've a degree in Mechanical Engineering, my interests are in Mechanical Design, System Dynamics & control. I also study language, words, speech and its applications and effects. I'll be writing about my experiments and understandings of these and above all looking forward to learn, engage in discussions and contribute to the community for a better world.

Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.