[Solved] CCC A password with size N

$25

File Name: CCC_A_password_with_size_N.zip
File Size: 244.92 KB

SKU: [Solved] CCC A password with size N Category: Tag:
5/5 - (1 vote)

A password with size N Solved

A password with size N can be found by searching the text for the frequent substring with N characters.

Given the size of the password and the encoded message, determine the password following the strategy given above.

To illustrate your task. consider the following example in which the password size is three (N: 3) and the text message is just baababacb. The password would then be aba, because filis is the substring with size 3 that appears most often in the whole text (it appears twice) while the other six different substrings appear only once

(baa; aab; bab: bac; acb).

Input:

A text message and the length Of the password (1

Output:

Your program should print as output a line with the password string

Sample Input:

3

Sample Output:

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CCC A password with size N
$25