Skip to content

Instantly share code, notes, and snippets.

View michael-duren's full-sized avatar
🎯
Focusing

Michael Duren michael-duren

🎯
Focusing
View GitHub Profile
public class NumberOfIslands
{
public static int NumIslands(char[][] grid)
{
int numberOfIslands = 0;
for (int i = 0; i < grid.Length; i++)
{
for (int j = 0; j < grid[i].Length; j++)
{
if (grid[i][j] == '1')
public class LRUCache(int capacity)
{
public class ListNode(int key, int value)
{
public readonly int Key = key;
public int Value = value;
public ListNode Prev;
public ListNode Next;
}