C# | 1-Liner
Uses LINQ and C# Ranges to efficiently determine local maximums.\n\ncs\npublic int[][] LargestLocal(int[][] grid) => \n    Enumerable\n        .Range(0, grid.Le
Uses LINQ and C# Ranges to efficiently determine local maximums.\n\n```cs\npublic int[][] LargestLocal(int[][] grid) => \n    Enumerable\n        .Range(0, grid.Length - 2)\n        .Select(i =>\n             Enumerable\n \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0 \xA0.Range(0, grid.Length - 2)\n                .Select(j =>\n                    grid[i..(i+3)].Max(row => row[j..(j+3)].Max())\n                )\n                .ToArray()\n        )\n        .ToArray();\n```\n\n**Techniques Used:**\n\n* `Enumerable.Range(start, count)` method returns `count` numbers starting at `start`, Example `Enumerable.Range(0, 3)` returns `[0, 1, 2]`.\n* `IEnumerable<int>.Max()` extension method returns the largest value in the collection. Example `(new[] { 1, 2, 3, 4, 5 }).Max()` returns `5`.\n* `T[from..to]` range syntax returns elements between `from` (inclusive) and `to` (exclusive). Example `(new[] { 1, 2, 3, 4, 5 })[1..4]` returns `[2, 3, 4]`.\n* `IEnumerable<T>.ToArray()` extension method converts an `IEnumerable` type, that is typically used w/ LINQ syntax, to an Array.\n\nFrom there, we stitch things together in order to get the results that is being asked. In this case, we select 2 fewer rows and columns, use range syntax to select local elements, then get the maximum of the selected. There is a lot more you can do with LINQ! The newer JavaScript syntax has similar functionality.\n \nCheck out my other C# 1-liners!\n* https://leetcode.com/discuss/general-discussion/2905237/c-sharp-1-liners
[]