Amazon Placement Paper - 8

1.Find an element in the array following the condition a[i] =i.

Int arr[] = {0,1,3,5}
output = 0 0r 1

2. Find out elements which are not duplicate in the given array.

Int arr[] = {1,3,5,7,1,3,5}
output = 7

3.write a function that returns the element which is having maximum occourance in the given string

char input_str [] = "the things are thin"

so it will returns "t" as it's occurance is 3 times.

4. Algorithm

5. How to rename all the files at the given directory from .jpg to .jpeg.

6. Write a script which reverse the given string x = "the pen is mine" the output is mine is pen the.

7. I want to delete a file in 1000 hosts.1000 host names are provided.

8. Copy a file form one host "amazon.chennai" to another host "amazon.bbsr"

9. Print the line from 20 to 30th of a file.