Substring Check after Each Query
1100000 3 6 1 7 1 4 0 6 index 1, বসালে "1100" substring pawa jabe naki whole subtring e 7 index 1...... 4 index 0.......
1100000 3 6 1 7 1 4 0 6 index 1, বসালে "1100" substring pawa jabe naki whole subtring e 7 index 1...... 4 index 0.......
Colum 1, find range, 1< is greater for above example row 2, থেকে উপরের সব গুলো ১ থেকে বড়, L update to =2 এভাবে সব কলামে query check করার পর, Valid [L,R] পাওয়া যাবে, we will take min L
For any a,b,c -- বড় সাইড টা, অন্য দুই বাহু থেকে যোগ থেকে ছোট হবে। If a greater of them, a < b+c worst case 1st,2nd and last one . if we replace with other to fix, entire array will be valid WE have find largest valid sub-arra…
1,2,3 each individual sub array whoose median will its own, 1 2 3 right side have to make 3 sub- array(5,6,[7,8,9])=5 6 8 then Medians of median of each subaaray will be k=4, k can be different element except 1st and last one ,…
For each position(i,j) it will travarse up,down,diagonal upto 5 Click Here