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.
- Caesar Cipher
- Discussions
Caesar Cipher
Caesar Cipher
Sort by
recency
|
128 Discussions
|
Please Login in order to post a comment
public static String caesarCipher(String s, int k) { // Write your code here char[] strChar = s.toCharArray(); StringBuilder sb = new StringBuilder(); k = k%26;
Python:
Python best solution
If you’re looking for solutions to the 3-month preparation kit in either Python or Rust, you can find them below: my solutions
Rust best solution
If you’re looking for solutions to the 3-month preparation kit in either Python or Rust, you can find them below: my solutions
A hint before I show my python solution: Look into how the .maketrans() and .translate methods in import string work. They make creating a cipher like this much easier
Also you use import string you can then use "string.ascii_lowercase" to generate a string of the lowercase letters a-z and "string.ascii_uppercase" to generate a string of the uppercase letters A-Z