Remaining String || GFG POTD today || 16july || easy

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • check comments for solution
    .
    .
    .
    #coding #programming #gfg #gfgpotd #gfgpractice #easy #gfgpotdtoday

ความคิดเห็น • 1

  • @anisha_joshi15
    @anisha_joshi15  3 หลายเดือนก่อน

    string printString(string s, char ch, int count) {
    // Your code goes here
    int cnt=0;
    int n=s.length();
    string ans ="";
    for(int i=0;i=count ){
    ans += s[i];
    }
    if(s[i]==ch)cnt++;

    }
    return ans;