For this problem I need to to do multiple queries so I used a for loop for it but it terminates before it should for ex: for this input,
- ATGCATGC
- 4
- 2 1 8 ATGC
- 2 2 6 TTT
- 1 4 T
-
2 2 6 TA
It would stop at 5th line and print 8 ,2 ,0, 0 whereas it should be 8, 2, 4. If I do individual queries without loop things work fine but any kind of loop doesn't work. Pls help. Also any suggestion for solving this kind of problems more efficiently will be very helpful to me.
Aucun commentaire:
Enregistrer un commentaire