Computer Science, asked by daskrrish159, 2 months ago

write options which are given when you find a string in a program​

Answers

Answered by laksh080707
2

Answer:

Given a string ‘str’, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together.

Examples:

Input: str = "abcabcabc"

Output: true

The given string is 3 times repetition of "abc"

Input: str = "abadabad"

Output: true

The given string is 2 times repetition of "abad"

Input: str = "aabaabaabaab"

Output: true

The given string is 4 times repetition of "aab"

Input: str = "abcdabc"

Output: false

Pls Mark As Brainlist

Answered by lata40386
2

Answer:

hope it helps you if yes then please mark my answer as brainliest please

Attachments:
Similar questions