Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by 6510

6 months ago

I bet there is lots of training data with for(let i=1;i<=s1.length;i++) then using s1[i-1] everywhere.

But I think it should be for(let i=0;i<s1.length;i++) then use s1[i]?

0 comments

6510

Reply

No comments yet

Contribute on Hacker News ↗

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities