bro in ans+=(j-i+1), we are getting same ans for ans+=(j-i) also. how?
@ChiragWadwa8 ай бұрын
Are wo sb minor changes pe depend kargea Ki tumhara end start pointer kaha point krta h Depends on your code ki tumne start end kaha likha ja
@learningmaths7868 ай бұрын
Hai aryan❤
@chinubunny99748 ай бұрын
bro i make this code by my own . This gives error and single test case passed . Can you help me to find where is my error and how to resolve that ... class Solution { public: int subarraysWithKDistinct(vector& nums, int k) { int count=0; for(int i=0;i