C# Sum() with int array


  • 0
    D
        public int GetSum(int a, int b)
        {
            int[] numbers = new int[2] { a, b };
    
            return (int)numbers.Sum();
        }

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.