Skip to main content

Timeline for Fibonacci + Fizz Buzz = Fibo Nacci!

Current License: CC BY-SA 3.0

18 events
when toggle format what by license comment
Aug 24, 2016 at 17:53 comment added asibahi Using dynamic is pretty clever
Nov 12, 2015 at 7:18 comment added olegz Great, @Timwi! That gonna be final word.
Nov 12, 2015 at 7:16 history edited olegz CC BY-SA 3.0
Applied cool idea (dynamic) from @Timwi
Nov 11, 2015 at 21:58 comment added Timwi You can save another 7 characters by changing decimal a=1,b=1 to dynamic a=1m,b=a and then you can lose the (object) :)
Nov 11, 2015 at 20:46 history edited olegz CC BY-SA 3.0
deleted 14 characters in body
Nov 11, 2015 at 20:19 history edited olegz CC BY-SA 3.0
using decimal instead bigint
Nov 11, 2015 at 20:11 history edited olegz CC BY-SA 3.0
added 31 characters in body
Nov 11, 2015 at 9:04 comment added olegz That's a great idea! Let me check
Nov 11, 2015 at 4:53 comment added Bob You can save 3 characters by replacing the ==0s with >0 and inverting the ternaries: class c{static void Main(){for(System.Numerics.BigInteger a=1,b=1,c=0;c++<100;b=a+(a=b))System.Console.WriteLine(a%6>0?a%2>0?a%3>0?a:(object)"Nacci":"Fibo":"FiboNacci");}}
Nov 10, 2015 at 18:44 comment added olegz Another trick to make it 3 bytes shorter
Nov 10, 2015 at 18:44 history edited olegz CC BY-SA 3.0
deleted 43 characters in body
Nov 10, 2015 at 18:10 comment added olegz Yes, the same here (under Mono) :(
Nov 10, 2015 at 17:22 comment added Jodrell I still had to prefix System.Numerics with System despite the using :-S, so I'm not sure the using will work.
Nov 10, 2015 at 17:18 comment added olegz "using System;" will give another -1 in size.
Nov 10, 2015 at 10:28 comment added Jodrell Even compressing the output with a DeflateStream the lowest I could get was 191 chars so this is likely very close to the best possible c# answer. A shame BigInteger is required.
Nov 9, 2015 at 21:33 history edited olegz CC BY-SA 3.0
deleted 9 characters in body
Nov 9, 2015 at 21:18 review First posts
Nov 9, 2015 at 21:37
Nov 9, 2015 at 21:14 history answered olegz CC BY-SA 3.0