Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simple_stack - Time Limit Exceeded #21

Closed
jadinm opened this issue Mar 19, 2018 · 1 comment
Closed

simple_stack - Time Limit Exceeded #21

jadinm opened this issue Mar 19, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@jadinm
Copy link
Contributor

jadinm commented Mar 19, 2018

Issue très similaire à #19

Ce code, sans aucune boucle, déclenche un "Time Limit Exceeded". La boucle se trouve donc probablement dans le code de test.

Un fix rapide serait de checker si le code de test ne parcourt pas plus d'éléments de la stack que ceux attendus et retourner une erreur si c'est le cas.

@jadinm jadinm added the bug Something isn't working label Mar 19, 2018
@nrybowski
Copy link
Member

Fixé avec le commit c2df4a3. Une mauvaise manipulation du pointeur *head entrainait une segfault lors de l'usage de "strncmp".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants