Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Program Discussion :: Array

Home > Programs > Array

1 / 24

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.


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

Asked In :: Nagarro HackerRank

Post Your Answer Here:


Post Your Reply Here: