Text files can be compressed to make them smaller and faster to send, and unzipping files on devices has a low overhead. The process of… Read More
Tag Archives: encoding-decoding
Given an array arr[] of length N (N > 1)containing positive integers, the task is to encrypt the numbers of the array into a single… Read More
Given two strings, S and T where S is a normal string and T is a compressed string, the task is to determine if the… Read More
Given two numeric string N and M, the task is to encode the given strings in the form “xAyB“, where: x is the count of… Read More
Given string str of size N consisting of lowercase English alphabets, the task is to encode the given string as follows: change every character of… Read More
A binary string S of length N is constructed from a string P of N characters and an integer X. The choice of the ith… Read More
Given an array of strings arr[] of size N and an encrypted string str, the task is to find the correct string from the given… Read More
Design a program to take a sentence as an input, and then encode it into Pig Latin. A Pig Latin is an encrypted word in… Read More
Given an encoded (or encrypted) string S of length N, an integer M. The task is to decrypt the encrypted string and print it. The… Read More
Given a string S and an integer R, the task is to encode the string by first filling each character in column wise manner from… Read More
Given string str of size N containing only lowercase English letters. The task is to encrypt the string such that the substrings having same prefix… Read More
Given a string str of length of N that is in the encoded form with alphabets and * . The task is to find the… Read More
Given a string str[] of size N, the task is to encode it in such a way that the last occurrence of each character occurs… Read More
Given a string S of size N representing a monoalphabetic cipher, the task is to print the top five possible plain texts that can be… Read More
One Time Pad algorithm is the improvement of the Vernam Cipher, proposed by An Army Signal Corp officer, Joseph Mauborgne. It is the only available… Read More