search

Home  >  Q&A  >  body text

javascript - How to find a number among many numbers

Find out whether a certain number is among four billion numbers

Surely you can’t use a big loop, right? . . The amount of data is too large

Please advise

高洛峰高洛峰2829 days ago570

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-05-19 10:16:02

    If it’s irregular, there shouldn’t be anything you can do. If sorted, you can also perform a binary search.

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-19 10:16:02

    The front-end browser will hang

    reply
    0
  • Cancelreply