Skip to main content
fixing algorithm bug caused by author being greedy
Source Link

C# 6263-5 = 5758

public string m(int n)=>$"{n%2==0=>n%2==0?(n%4==0?1"1":"-11"):(m(n-1)+i+"i")}";;

C# 62-5 = 57

public string m(int n)=>$"{n%2==0?(n%4==0?1:-1):(m(n-1)+i)}";

C# 63-5 = 58

public string m(int n)=>n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");

corrected score
Source Link

C# 6962-5 = 6457

public string m(int n){return n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");}

public string m(int n)=>$"{n%2==0?(n%4==0?1:-1):(m(n-1)+i)}";

C# 69-5 = 64

public string m(int n){return n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");}

C# 62-5 = 57

public string m(int n)=>$"{n%2==0?(n%4==0?1:-1):(m(n-1)+i)}";

Commonmark migration
Source Link

#C# 69-5 = 64# public string m(int n){return n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");}

C# 69-5 = 64

public string m(int n){return n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");}

#C# 69-5 = 64# public string m(int n){return n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");}

C# 69-5 = 64

public string m(int n){return n%2==0?(n%4==0?"1":"-1"):(m(n-1)+"i");}
Miscounted characters in solution
Source Link
Loading
deleted 1 character in body
Source Link
Loading
added 6 characters in body
Source Link
Loading
added 5 characters in body
Source Link
Loading
deleted 6 characters in body
Source Link
Loading
Source Link
Loading