Add Number Linked Lists

gfg-potd

Given the head of two singly linked lists num1 and num2 representing two non-negative integers. The task is to return the head of the linked list

1765. Map of Highest Peak

leetcode-potd

You are given an integer matrix isWater of size m x n that represents a map of land and water cells. If isWater[i][j] == 0, cell (i, j) is a land cell. If isWater[i][j]

2017. Grid Game

leetcode-potd

You are given a 0-indexed 2D array grid of size 2 x n, where grid[r][c] represents the number of points at position (r, c) on the matrix. Two robots

Merge two sorted linked lists

gfg-potd

Given the head of two sorted linked lists consisting of nodes respectively. The task is to merge both lists and return the head of the sorted merged list. Examples:

Scroll to Top