Programming Interview Question
Q1. Write a program to remove repeated word
from string.(don't take extra memory).
Example:
Input- "hello hi is hello this";
Output- "hello hi is this"
Q2. arr1 {1,3,4,5,8}
arr2 {2,6,7,9,11}
arr3 {10,12,13,14}
Find the middle point after merging these
array...if there are two middle point find both. (Don’t take extra space).
Q3. Print array like..
1 2 3 4 5
2 1 2 3 4
3 2 1 2 3
4 3 2 1 2
5 4 3 2 1
Comments
Post a Comment