Need Hint On This Problem

Pages: 1... 4567
Please, can anyone tell me some tricky cases of NSA
2
wgmhthggjz
lpuplfgzaehsumvgmlrlkjxhy
18
151
Thanks @FrostGiant
I caught my mistake.

Advice for others: Results can overflow integer values.
@tlsr

Can u help how u got O(n) approach.....

I reached Out(26*n) still it is giving tle fir last part
@ghostrideriit My solution too is of the order O(26*n). Check if you are doing something wrong. As per my approach, as aforementioned, I used dynamic programming; I created a DP table and used the precalculated values for further use.
Last edited on
@tlsr

Allow pm
@vinn

Can u pm me algo for 100 points I tried brute force but stuck at 30 ......
great @vinn ...happy i could bee helpful!!

and guyz i have reached my message limit !! any one who wishes to contact me can message me at @blackmamba1
204282436
If anyone can direct me towards the initiation of the equilibrium problem, it would be a great help. It's not that I haven't tried it, but it's all getting a mess and I am not able to direct myself towards a particular approach.
Last edited on
try writing down all subsequences different cases....atleast 7-8....there's a code available on GFG to print all subsequences of particular length....then find out how many times each index appears in total in the reqd subsequences like in the example provided on the site each index appears 3 times.
then figure out how many times each index appears on the corners and subtract from the total.
thats a lot of hint for starting, anything more than this would be solution itself!!
now try solving it!!
@vinn

Pm is private msg bro..

In ur account section check for private msg option..
But I crossed daily msg limit

Last edited on
bro u should not just drop your email address in public!!
@blackmamba

Okk I deleted that msg...
@vinn

I read ur msg I can't pm u back becoz I exceed limit..

Ya, I have done that question.
@pewdiepie where did u get that??
i am out of limit so cant reply there...u can clear ur doubts here.
http://www.cplusplus.com/forum/beginner/239560/4/
refer this thread for NMNMX queries
@pewdiepie

I have done with ur code but cant pm u becoz i exceed limit
@decode dynamic.....for further hints refer the other forum
Pages: 1... 4567