gfg-potd

Duplicate Subtrees

gfg-potd

Given a binary tree, your task is to find all duplicate subtrees from the given binary tree. Duplicate Subtree : Two

Identical Linked Lists

gfg-potd

Given the two singly Linked Lists respectively. The task is to check whether two linked lists are identical or not. Two Linked Lists are identical

The Palindrome Pattern

gfg-potd

Given a two-dimensional integer array arr of dimensions n x n, consisting solely of zeros and ones, identify the row or column (using

Toeplitz matrix

gfg-potd

A Toeplitz (or diagonal-constant) matrix is a matrix in which each descending diagonal from left to right is constant, i.e.,

Left Rotate Matrix K times

gfg-potd

You are given an integer k andmatrix mat. Return a matrix where it is rotated Left k times. Examples: Input: k=1, mat=[[1,2,3],[4,5,6],[7,8,9]] Output:1 2 3 4

Scroll to Top