We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I did but not in java, here is the code in python:
def encryption(s):
new_s=""
arr=[]
lenght=len(s)
n=math.floor(math.sqrt(len(s)))
m=math.ceil(math.sqrt(len(s)))
i=0
j=0
while i
return new_s
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Encryption
You are viewing a single comment's thread. Return to all comments →
I did but not in java, here is the code in python: def encryption(s): new_s="" arr=[] lenght=len(s) n=math.floor(math.sqrt(len(s))) m=math.ceil(math.sqrt(len(s))) i=0 j=0 while i