Take FREE!! Online AMCAT Mock Test to Crack Wipro NLTH, Capgemini, etc.
Get Off-Campus Placement Jobs Info !!!
Practice Given Here Wipro NLTH Practice Q&A

Program Discussion :: Array

Home > Programs > Array

1 / 23

Given an array of size MxN and coordinates of starting of subarray (x, y). You need to rotate that subarray and then print the full array after rotation.

Answer:

def first_word(str1,arr):
    ch=''
    for x in str1.split(" "):
        if x  not in arr:
            ch =x.capitalize() ' '
        else:
            ch =x ' ';
    return ch;
print(first_word("this is crazy and fun",["fun" ,"is"]))

Asked In :: Nagarro HackerRank

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: