Question: C++!! -----> string nikNak(string str){ 4 THE NIK NAK PROBLEM Look for patterns like nik and nak in the input string-in other words a substring,

C++!! -----> string nikNak(string str){

C++!! -----> string nikNak(string str){ 4 THE NIK NAK PROBLEM Look for

4 THE NIK NAK PROBLEM Look for patterns like "nik" and "nak" in the input string-in other words a substring, length-3, starting with 'n' and ending with 'k'. Set result to a string where for all such words, the middle letter is gone, so "nikXnak" yields "nkXnk". for input of "nikxnak" "nkX2p" . for input of "noknok""nknk" . for input of "nnnoknok" "nnnknk

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!