Populate Inorder Successor for all nodes
Given a Binary Tree, complete the function to populate the next pointer for all nodes. The next pointer for every […]
Given a Binary Tree, complete the function to populate the next pointer for all nodes. The next pointer for every […]
Given a Binary Tree. You need to find and return the vertical width of the tree. Examples : Input: 1
Given a binary tree, your task is to find all duplicate subtrees from the given binary tree. Duplicate Subtree : Two
Given a sorted linked list, delete all nodes that have duplicate numbers (all occurrences), leaving only numbers that appear once
Given a linked list with string data, check whether the combined string formed is palindrome. If the combined string is
Given a Linked List Representation of Complete Binary Tree. The task is to construct the Binary tree and print the
Given a doubly Linked list and a position. The task is to delete a node from a given position (position starts from 1) in
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
Given a two-dimensional integer array arr of dimensions n x n, consisting solely of zeros and ones, identify the row or column (using
A Toeplitz (or diagonal-constant) matrix is a matrix in which each descending diagonal from left to right is constant, i.e.,
Given a binary matrix having n rows and m columns, your task is to find the sum of coverage of all zeros in the matrix where coverage for
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