Problem Statement: Given an array of integers arr[] and an integer target. 1st variant: Return YES if there exist two
Continue readingCategory: Data Structure
Program to generate Pascal’s Triangle
Problem Statement: This problem has 3 variations. They are stated below: Variation 1: Given row number r and column number
Continue readingAdd two numbers represented as Linked Lists
Problem Statement: Given the heads of two non-empty linked lists representing two non-negative integers. The digits are stored in reverse
Continue readingReverse a Linked List
Problem Statement: Given the head of a singly linked list, write a program to reverse the linked list, and return
Continue readingSort an array of 0s, 1s and 2s
Problem Statement: Given an array consisting of only 0s, 1s, and 2s. Write a program to in-place sort the array
Continue readingFind middle element in a Linked List
Problem Statement: Given the head of a singly linked list, return the middle node of the linked list. If there
Continue reading