ProDeveloperTutorialonAugust 9, 2026 Linked List: Perform below delete operations from single linked list. 1. Delete all the occurrence of a given key 2. Delete all the nodes that is greater than the given key 1. Delete all the occurrence of a… Discover More
ProDeveloperTutorialonAugust 9, 2026 Linked List: Perform below delete operations from single linked list. 1. Delete a node at a given position 2. Delete whole single linked list recursively. 1. Delete a node at a given position If the head node is… Discover More
ProDeveloperTutorialonAugust 9, 2026 Linked List: Perform below operations on Circular Singly Linked List: 1. Convert Singly Linked List to circular linked list 2. Check the number of nodes in Circular Linked List 3. Check if the given list is a… Discover More
ProDeveloperTutorialonAugust 9, 2026 Linked List: Perform bubble sort on singly linked list To perform bubble sort, we follow below steps: Step 1: Check if data on the 2 adjacent nodes are in ascending order or not. If not, swap the… Discover More
ProDeveloperTutorialonAugust 9, 2026 Linked List: Perform binary search on a singly linked list Below are the steps to perform binary search: Note: Binary search is possible if the list is sorted ascending order. Step 1: Head node and the… Discover More
ProDeveloperTutorialonAugust 7, 2026 Bitwise Operators: Bitwise Operations Tricks 1. To check if the number is even or odd num & 1 2. To clear the lowest set bit of x num & (num - 1) 3. Divide by 2 num >> 1 4.… Discover More
ProDeveloperTutorialonAugust 7, 2026 Bitwise Operators: Given a number, check if it is divisible by 8 Problem Statement: You are given a number, you need to check if the number is divisible by 8 using bitwise operators. Example: Input : 16… Discover More
ProDeveloperTutorialonAugust 7, 2026 Bitwise Operators: Bitwise AND of all even number from 1 to N Problem Statement: You are given a number N, you need to perform bitwise AND on all the even numbers. Example: Input: 2 Output: 2 Solution 1:… Discover More
ProDeveloperTutorialonAugust 7, 2026 Bitwise Operators: Given a number, check if it has 2 adjacent set bits Example: Input N = 5 Output No Solution : Solution is very simple. Traverse all bits. For every set bits, check if next bit is also set.… Discover More
ProDeveloperTutorialonAugust 7, 2026 Bitwise Operators: Given a number, check if the number has same set and unset bits. Problem Statement: Given a number N, you need to check if the count of set and unset bits are same. Example: Input: 12 Output: Yes 1100 in… Discover More