Drawing Book

  • + 0 comments

    C# SOLUTION

    if (p / 2 <= (n % 2 == 0 ? (n+1-p) / 2 : (n-p) / 2)) { return p/2; } return n % 2 == 0 ? (n+1-p) - 2 : (n-p) / 2;