Wiley Edge Graduate Recruitment screening assessment. Coding Solutions in Java, C++, Python#code
Wiley Edge Graduate Recruitment process! screening assessment.
Exeter Caption Contest is a competition open to all writers worldwide. The entrants will have one day to compose and
submit a caption that will be based on the theme posted on the competition page
Robin, a creative writer had penned two captions for the contest but he unknowingly misplaced them. After searching long, he managed to locate his captions, but some letters in them have become unreadable. The captions were in two very old sheets of paper, each of which originally contained a string of lowercase English letters. The strings on both the sheets have equal lengths
Robin would like to estimate the difference between these strings. Let's assume that the first string is named $1, and the second S2. The unreadable symbols are specified with the question mark symbol "?". The difference between the strings equals to the number of positions i, such that $1, is not equal to $2, where $1, and S2, denote the symbol at the ith position in S1 and S2, respectively.
Robin would like to know the minimal and the maximal difference between the two strings, if he changes all unreadable symbols to lowercase English letters. Robin is not an expertise in programming and so he needs your help solving this problem.
Input Format:
The first line of the input contains a string $1
The second line of the input contains a string $2 Both strings consist of lowercase English letters and question marks in places where the symbols are unreadable,
Output Format:
Output the minimal and the maximal difference between two given strings separated with a single space. Refer sample input and output for formatting specifications.
Видео Wiley Edge Graduate Recruitment screening assessment. Coding Solutions in Java, C++, Python#code канала Tech Updates
Exeter Caption Contest is a competition open to all writers worldwide. The entrants will have one day to compose and
submit a caption that will be based on the theme posted on the competition page
Robin, a creative writer had penned two captions for the contest but he unknowingly misplaced them. After searching long, he managed to locate his captions, but some letters in them have become unreadable. The captions were in two very old sheets of paper, each of which originally contained a string of lowercase English letters. The strings on both the sheets have equal lengths
Robin would like to estimate the difference between these strings. Let's assume that the first string is named $1, and the second S2. The unreadable symbols are specified with the question mark symbol "?". The difference between the strings equals to the number of positions i, such that $1, is not equal to $2, where $1, and S2, denote the symbol at the ith position in S1 and S2, respectively.
Robin would like to know the minimal and the maximal difference between the two strings, if he changes all unreadable symbols to lowercase English letters. Robin is not an expertise in programming and so he needs your help solving this problem.
Input Format:
The first line of the input contains a string $1
The second line of the input contains a string $2 Both strings consist of lowercase English letters and question marks in places where the symbols are unreadable,
Output Format:
Output the minimal and the maximal difference between two given strings separated with a single space. Refer sample input and output for formatting specifications.
Видео Wiley Edge Graduate Recruitment screening assessment. Coding Solutions in Java, C++, Python#code канала Tech Updates
Комментарии отсутствуют
Информация о видео
18 марта 2023 г. 21:26:04
00:00:39
Другие видео канала