0

Algorithms length?

I am not very good at writing Algos, although I am able to perform above average in coding part.... so my question is how much steps should I write as compared to the actual code in an algorithm? also should I write key statements like "front=(front +1)%maxsize;" in case of circular queue in data Data structure or "for(int initialization; condition;i++)" for loop conditions?

11th Jun 2017, 4:18 AM
Gaurav Sukhatme
Gaurav Sukhatme - avatar
4 ответов
+ 4
Algorithms are used to explain ur program in easier way, there is no max/min limits for the step n for the statements like control, as in case "for" u can write like "repeat the step through this to this" until a conditions is true.... Ok😁😀😎.
21st Jul 2017, 5:59 PM
Chanchal_V18
Chanchal_V18 - avatar
+ 1
algos are for your own help. you need to write algos to understand what you want to achieve. no restriction on max/min steps.
17th Jun 2017, 7:22 AM
Gurpreet Singh
Gurpreet Singh - avatar
+ 1
ohh,...so that's how it is😅 Thank you miss
23rd Jul 2017, 5:41 AM
Gaurav Sukhatme
Gaurav Sukhatme - avatar
0
😂😂😂 no problem
23rd Jul 2017, 8:15 AM
Chanchal_V18
Chanchal_V18 - avatar