Monday, September 28, 2015

Amiti 1st round technical question

1--String program its like if input is BREAD GEM BREAD thn as ouput v should get GEM
2-- inputString is “my name is” output ” is name my
3--Given an array of ints, return true if the value 3 appears in the array exactly 3 times, and no 3's are next to each other.

haveThree({3,1,3,1,3})→true
haveThree({3,1,3,3})→false
haveThree({3,4,3,3,4})→false

No comments:

Post a Comment