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
|
1464 Discussions
|
Please Login in order to post a comment
Any idea why I'm gettin "Wrong Answer" even when my output is the same as the expected? I checked whitespaces at the end by selecting the text.
My solution in Java language:
JS Solution :
String code= new String(); s=s.replace(" ", ""); int l=s.length(); double t=Math.sqrt(l); int r =(int)t; int c = 0; if((t-r)==0){c=r;} else c=r+1; if(r*c
for(int i=0;i
} return code; }
C