Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

138
Views
Diferencia entre VSCode IDE y editor de Leetcode

¿Por qué ciertas expresiones en VScode dan como resultado diferentes resultados que en el editor integrado de Leetcode? Estaba trabajando en una pregunta de "Lista vinculada inversa" cuando noté que una solución aceptada por Leetcode no invierte la lista vinculada si copia / pega la solución en VScode

Pregunta: https://leetcode.com/problems/reverse-linked-list/

 const reverseList = (head) => { let prev = null; let curr = head; console.log(head.next); // DIFFERENCE: (with the line above) // equals the "head" array with the first value removed in LC editor // equals null in VScode while (curr) { const next = curr.next; curr.next = prev; prev = curr; curr = next; } return prev; }; console.log(reverseList([1, 2, 3, 4, 5]));

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!