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){

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
Get step-by-step solutions from verified subject matter experts
