Common digits in two numbers (Contest)
Common digits in two numbers easy asked in interviews by 1 company Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Common digits in two numbers easy asked in interviews by 1 company Time Limit: 2 sec Memory Limit: 128000 kB
Last updated
Problem Statement :
There are two number a and b are given as input. Print common digits with common index in these numbers seperated by space. Input There are two number a and b are given as input.
Constraints 1 <= a, b <= 106 Output Print common digits with common index in these numbers seperated by space. Example Sample Input: 24324345 3546434 Sample Output: 4 3 4
link: