+ 16
CHALLENGE: How short can your fizzbuzz be?
Make a fizzbuzz ( [0 or 1] up to 100 ) with as fewer characters as you can with the language you like. Every single number(or fizz-buzz'es) should be printed a new line. Whitespaces do not count. Imports, Includes and structural code do not count. Write down the language that is used and how many characters are used and a link to your code. if you are lazy (as I am) use https://charactercounttool.com Common guys, we are looking for the shortest fizzbuzz in every language.)
40 odpowiedzi
+ 12
56 python, 61 ruby!
ruby:
https://code.sololearn.com/cPXR0ziSO3H3/#rb
1) @bedawang refactoring your code it is now 69.:)
2) 61 ! https://code.sololearn.com/cPXR0ziSO3H3/#rb working with bedawang (https://code.sololearn.com/czhL2PXpOSu0/#rb)
python:
https://code.sololearn.com/cn6fJ65with0/#py
1) @Sebastián Zapata using your Idea and my combined it is now 64!)
2) now it is 61 chars too!
3) 56! https://code.sololearn.com/cn6fJ65with0/#py with ideas from Вадим Сухотин (Vadim Sukhotin)
+ 11
https://code.sololearn.com/WHpfi9uI3LOP/?ref=app
sloppiest fizzbuzz ever
characters (without spaces) 170
Readability level:COLLEGE GRADUATE!!!
+ 9
ok fizzbuzt
https://code.sololearn.com/cKBBexxGpdaN/?ref=app
+ 8
Works but WAY too long :/ https://code.sololearn.com/cHIUOB8VcQFF/?ref=app
+ 8
https://code.sololearn.com/cM11mvCt066X/?ref=app
+ 6
@Sebastián Zapata nice try. I like it. I did it even smaller.
@bedawang yours looks really cool too.)
python 65 characters ☺ one line
https://code.sololearn.com/cn6fJ65with0/#py
+ 6
@kurwius ok
http://bfy.tw/40K
+ 6
https://code.sololearn.com/cif3VbmKIZtV/?ref=app
without if😅😅 77 character in python
+ 5
python 130 characters
https://code.sololearn.com/cn6fJ65with0/#py
+ 4
https://code.sololearn.com/ccV1GvTrM7U3/?ref=app
107 characters xD, it must be best ways to short them, ty for the challenge, I'll try to think a bit more.
+ 4
+ 4
@bedawang
Ternary operators are cool. But the ternary in python is longer (" if else" vs "? :")
+ 4
104 with my first attempt in Java
EDIT; 91 now:
https://code.sololearn.com/cJFQriZS89N8/?ref=app
+ 4
what the hell is fizzbuzz?
I sware I have no clue. could one tell me in a few sentences?
sure i ll get some downvotes but it is worth the answer
+ 4
112 characters
https://code.sololearn.com/cP15dzzgRyiy/?ref=app
+ 3
I ask myself if we could save one or two characters using the fact that both words ending on "zz".
+ 3
who needs if or modulo in Fizzbuzz? 😁😁
https://code.sololearn.com/cWgstvtcaseD/?ref=app
+ 2
https://code.sololearn.com/c1mEA58qTfe2/?ref=app