Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

What's the name of this technique?

$
0
0

I am reading some solutions of the problem AMSTRING (from this April's cook off). It seems that most solutions (including setter's one) use same loop structure like this.

for(d=1-n;d<n;d++) { .... }

I would like to know when we can use the technique like that. What's the purpose of the method? and Could you recommend some problems about 'sliding window'?


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>