Print characters that appear more than once (without map).
Difficulty: Hard
Phase: 6 · Mixed Logical Challenges
XP Reward: 30 XP
Topics: Mixed Logical Challenges, Hard
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given R and C followed by an R x C matrix, print its transpose (size C x R). Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 2 3 1 2 3 4 5 6
Output: 1 4 2 5 3 6
Explanation: Sample execution for input 2 3 1 2 3 4 5 6