Web appOpen in Telegram

PostReverse an array

26 June 2025
<
</> ᴍᴜᴋᴇsʜ </>
Reverse an array import numpy as np def Reversed(numbers:np.array): # Reverse an array start = 0 last = len(numbers)-1 while (start < last): temp = numbers[last] numbers[last] = numbers[start] numbers[start] = temp start+=1 last-=1 numbers=np.array([2,4,6,8,10,12,14,16]) Reversed(numbers) for item in range(0,len(numbers)): print(numbers[item],end=" ") # time complexbilty: 0(n) # space complexbilty: 0(1) Output: 16 14 12 10 8 6 4 2
4 · 2.9K ·

Nearby in the feed

<</> ᴍᴜᴋᴇsʜ </>Floyd`s Triangle Pattern. def floyd_triangle(n): count=1 for i in range(0, n+1): for j in range(0, i): print(count,end=" ") count+=1 print() floyd_trian<</> ᴍᴜᴋᴇsʜ </>0-1 Triangle Pattern def zero_one_triangle(num): """ Purpose: for triangle pattern """ for i in range(1,num+1): for j in range(1,i+1): # print(i+j) if (
this message
रराम सियाराम सियाराम जय जय राम 🙏 तुम साथ हो जो मेरे, किस चीज की कमी है ।String functions https://t.me/Python_Codes_Pro/86 20 Questions on python loops: https://t.me/Python_Codes_Pro/135रराम सियाराम सियाराम जय जय राम 🙏 तुम साथ हो जो मेरे, किस चीज की कमी है ।Join Coding https://t.me/addlist/2UhsQW_cGzkxMzg1
PPython Codes Basic to AdvancePython Codes Basic to Advance@Python_Codes_Pro · channel · Tech
2 562subscribers425posts in the index
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog · Search · How we count