Problem Statement: You have been given a 2-D array ‘mat’ of size ‘N x M’ where ‘N’ and ‘M’ denote
Continue readingTwo Sum : Check if a pair with given sum exists in Array
Problem Statement: Given an array of integers arr[] and an integer target. 1st variant: Return YES if there exist two
Continue readingProgram 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 readingAmazon SDE 1 (Intern) Interview Experience | Set 4
Company Name: AMAZON Job Role: SDE Intern (6 Months) YOE Required: Not Required Drive: On-campus Preparation Topics: Arrays, Strings, LL,
Continue readingAmazon SDE 1 (Intern) Interview Experience | Set 3
Company Name: Amazon Job Role: SDE-1 (6 months internship) YOE Required: 0 Drive: On-campus CTC: INR 80,000 per month. Preparation
Continue readingBarclays Graduate Analyst Interview Experience | Set 1
Company Name: Barclays Job Role: BA3 Graduate Analyst Years of Experience Required: Fresher Drive: OncampusCTC: ~14 LPA Preparation Topics: DSA,
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