Please check-I had to correct the first sentence to make it correct in the second

No hablé con alguien en la escuela
No, hablé con nadie en la escuela.

THE FIRST SENTENCE SAYS

I did not speak with anyone in school.
THE SECOND SAYS
No, I spoke with nobody in the school
...............................
I think the first is more correct.