add codeforces solutions folder

This commit is contained in:
2026-03-05 19:55:52 +05:30
parent 77ff815f38
commit e698c35654
20 changed files with 778 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
class Solution{
public:
char findKthBit(int n, int k){
string seq = "0";
for(int i = 1;i<n && seq.length() < k;++i){
seq+='1';
string temp = seq;
for(int j=temp.length()-2;j>=0;--j){
char invertedBit = (temp[j]=='1')? '0': '1';
seq+=invertedBit;
}
}
return seq[k-1];
}
}