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
|
1495 Discussions
|
Please Login in order to post a comment
public static String encryption(String s) { // Write your code here int size = s.length();
My Java solution with o(n * m) time complexity and o(n) space complexity:
Javascript
sample tes2: string length =8 rows =2 and cols =3 , floor and ceil rows *cols < L (8) readujust rows and cols such that rows *cols >= L and rows and rows*cols is minimu with multiple grid options Here we have two option 2*4 or 3*3, rows =2 and cols=4 is minimum area With this option it says wrong answer. The expected answer matches with 3*3 grid which not as per specs. mistake in problem