ProDeveloperTutorialonAugust 10, 2026 Stack: Postfix and prefix conversion Problem Statement: Postfix expression: AB+CD-* is an postfix expression Prefix expression: *+AB-CD is a prefix expression. Solution…
ProDeveloperTutorialonAugust 10, 2026 Stack: Convert Infix to Postfix Expression Problem Statement: Infix expression: a + b is a infix expression. Postfix expression: ab+ is an postfix expression Example: A * (B + C)/D…
ProDeveloperTutorialonAugust 10, 2026 Linked List: Given Linked list and a value K, partition the list Problem Statement: You are given a LL and a value k. You need to partition the LL such that all the nodes that are less than or equal to K…
ProDeveloperTutorialonAugust 10, 2026 Linked List: Insert node into the middle of the linked list Problem Statement: Given a LL and a number k, you need to insert k in the middle of the list. The middle node is (n/2), and you need to insert…
ProDeveloperTutorialonAugust 10, 2026 Linked List: Given 2 LL, find the first common element Problem Statement: You are given 2 LL, you need to find the first common element between the given linked list. Example: List 1: 1 -> 4…
ProDeveloperTutorialonAugust 10, 2026 Linked List: Given a LL, find the kth node from middle towards the head Problem Statement: You are given a linked list and a number k. You need to print the value of kth node from the middle of the list towards the…
ProDeveloperTutorialonAugust 9, 2026 Linked List: Find 3 nodes whose sum equal to a given number Problem Statement: You are given 3 linked list and a number. You need to find 3 number, one from each list. 1 -> 2 -> 3 5 -> 6 ->…
ProDeveloperTutorialonAugust 9, 2026 Linked List: Sort a linked list of 0, 1, 2 Problem Statement: Given a linked list of 0, 1, 2, you need to sort it as ascending order. Example: Input: 1 -> 1 -> 2 -> 0 -> 2…
ProDeveloperTutorialonAugust 9, 2026 Linked List: Given a DLL, delete all the nodes that is greater than the given value Problem Statement: You are given a DLL and a number k, you need to delete all the nodes that is greater than k Solution Explanation: Solution…
ProDeveloperTutorialonAugust 9, 2026 Linked List: Count the number of rotations in sorted and rotated linked list Problem Statement: You are given a linked list, which is sorted and rotated by k steps. Find the value of k. Example: 1 -> 2 -> 3 ->…