2 051
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
Matrix rotation
a,b=list(map(int,input().split()))
c=(list(map(int,input().split())))
d=[]
for i in range(a):
d.append(c[0:a])
c=c[a:]
n=[]
def abc(ii):
global n,d
if ii==0:
return 0
else:
k=[]
for i in range(a):
m=[]
for j in range(a-1,-1,-1):
m.append(d[j][i])
k.append(m[::-1])
n.append(k[::-1])
d=n[-1]
abc(ii-1)
abc(b)
for i in d:
print(*i,sep=" ",end=" ")
09 May 2021, 07:12
Hi Gunda Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates β€οΈ
ππ
@offcampusjobs_0
@offcampusjobs_0
11 Feb 2022, 21:08
Hi Shaik Join Our Channel for daily Off-Campus Job Updates β€οΈ
ππ
@offcampusjobs_0
@offcampusjobs_0
09 Jan 2022, 05:03
Hi code Welcome to this Community. Join Our Channel for daily Off-Campus Job Updates β€οΈ
ππ
@offcampusjobs_0
@offcampusjobs_0
03 Dec 2022, 03:52
Mr. [
1701911458] is sending a spam message.
Action: Warn (1/3) β08 May 2021, 16:11
Hi THE , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel β
ππ
@offcampusjobs_0
@offcampusjobs_0
02 Apr 2021, 07:09
I did not clicked on submit button for last coding questions
However my code compiled and was correct
Is there any problem ?
17 Jan 2022, 02:38
Hi Divya , Welcome to this Community for 2022 Batch Daily Off Campus Jobs Updates join this channel β
ππ
@offcampusjobs_0
@offcampusjobs_0
03 Apr 2021, 03:30
π·*Join The Telegram Group*
Future is the initiative by *We Are with You Charitable Trust* where people from different fields who achieved sucess in their lives speak about different topics that youth want. The topics can vary from different areas like Entrepreneurship, Higher education, Social Entrepreneurship, Civils preparation, handling depression and anxiety, managing finances and many more.
πΈFor more updates join the *Telegram Group* πππππππhttps://t.me/joinchat/E5aRHzFQPVo0ODQ1
Regards
We Are with You Charitable Trust
27 Apr 2021, 07:53
Doraemon:
Data Stucture and Algorithm
Handwritten Notes available
β€οΈβ€οΈβ€οΈβ€οΈ
https://imojo.in/dsapdf
01 Sep 2021, 13:21
