String Clash
Practice
2.6 (7 votes)
Basic programming
Basics of implementation
Easy
Hash maps
Implementation
String manipulation
Problem
88% Success 2042 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
You are given two strings $$S$$ and $$T$$ of equal lengths. You need to pick some characters from the first string, some from the second string and then form a new string by rearranging the characters you have picked. You need to find the length of the maximum string that you can make which will be a palindrome.
Input
The first line contains a string $$S$$ as input and the next line contains a string $$T$$ as input.
Output
In the output, you need to print an integer which denotes the maximum length of the palindrome that can be obtained.
Constraints
$$1 \le |S| , |T| \le 1000$$
Submissions
Please login to view your submissions
Similar Problems
Points:20
105 votes
Tags:
Basic ProgrammingMathNumber Theory
Points:20
25 votes
Tags:
Basic ProgrammingBasics of ImplementationEasyImplementation
3.Strings
Points:20
30 votes
Tags:
ApprovedCombinatoricsEasyMathOpenString Manipulation
Editorial