(Subscribe for more such videos) Code : #include using namespace std; #define ll long long int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
sir @9:24 aapne bola ki constrainta ko dekhtw hue 4x10^5 h issiliye O(N²) meh nai jaa sakta sir mujhe issi meh thoda doubt h like har bar confuse hota hu kaha se padhu yeh contraints wali cheez
(Subscribe for more such videos)
Code :
#include
using namespace std;
#define ll long long
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
ll t, n, i, j;
string a, b, c, s;
cin>>t;
for(;t--;)
{
cin>>s;
n=s.size();
if(s[0]==s[n-1]){
a=s[0];
c=s[n-1];
b="";
for(i=1; i
really great explanation sir.
i cant express how much time you save us sir ... hats off!!!
Thank you so much for these editorials sir.
sir @9:24 aapne bola ki constrainta ko dekhtw hue 4x10^5 h issiliye O(N²) meh nai jaa sakta
sir mujhe issi meh thoda doubt h like har bar confuse hota hu kaha se padhu yeh contraints wali cheez
Bro, Luv ki competetive programming ki series refer karlo maine bhi wahi se seekha
@@adnankhan_a_k accha , thank u bhai for suggesting
Sir Problem B
Rating kya hogi iske sir
Please make editorials in English 🙂 or atleast provide subtitles....🙂