Algorithm
Decode the Slanted Ciphertext
Solution
class Solution:
def decodeCiphertext(self, encodedText: str, rows: int) -> str:
cols = len(encodedText) // rows
res = []Time Complexity
O(N)
Space Complexity
O(N)
class Solution:
def decodeCiphertext(self, encodedText: str, rows: int) -> str:
cols = len(encodedText) // rows
res = []