Sign in
Log inSign up

Can you write a shortest infinite loop?

Girish Patil's photo
Girish Patil
·Dec 10, 2018

I know this might sound silly. But, what's the shortest infinite loop you can write?

Terms:

  1. Use anything from assembly -> shell scripts -> java -> js -> brainfuck
  2. Print 1 in a newline
  3. Remove all possible spaces, making as many less chars as possible

Update your answer as you think of new one

Edit : Current shortest infinite loop @CodingCreature hashnode.com/post/can-you-write-a-shortest… in fish lang with 4 chars. You can try it out here fishlanguage.com

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct