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.
- Prepare
- Algorithms
- Implementation
- Encryption
- Discussions
Encryption
Encryption
Sort by
recency
|
1482 Discussions
|
Please Login in order to post a comment
JS
Easy solution
include
using namespace std;
int main() { string st; cin>>st;
// cout<
}
using nested loop in python:
def encryption(s): row, column = math.floor(math.sqrt(len(s))) , math.ceil(math.sqrt(len(s))) str = '' for x in range(column): for y in range(x, len(s), column): str = str + s[y] str = str + ' ' return str
Kotlin solution with O(n)