gfg-potd

Burning Tree

gfg-potd

Given a binary tree and a node data called target. Find the minimum time required to burn the complete binary tree if the […]

Kth Smallest

gfg-potd

Given an array arr[] and an integer k where k is smaller than the size of the array, the task is to find the kth smallest element

Product array puzzle

gfg-potd

Given an array nums[], construct a Product Array nums[] such that nums[i] is equal to the product of all the elements of nums except nums[i].

Longest Common Substring

gfg-potd

You are given two strings str1 and str2. Your task is to find the length of the longest common substring among the given strings. Examples:

Job Sequencing Problem

gfg-potd

Given a set of n jobs where each jobi has a deadline and profit associated with it. Each job takes 1 unit of time to complete

Rotate a Linked List

gfg-potd

Given the head of a singly linked list, the task is to rotate the linked list clockwise by k nodes, i.e., left-shift the linked list by k nodes, where k is a

Scroll to Top