Introduction The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a...
Problem Statement In this problem, we are given a stack. We have to reverse the stack without using extra space in O(n). Problem Statement Understanding As we know, reversing a...
Introduction Reversing a linked list is a very common operation that we need to perform while solving problems on linked list. So, if this operation is used a lot, let's...
Introduction In this article, we will discuss in detail about generic linked list in C. Data Structures are very important in the interview for any IT firm. Practicing more and...
In the below article we are going to understand how we can modify a function in c. Lets just get into the approach to modify the head pointer in linked...
Introduction Assume the node of the linked list has the following structure: [TABS_R id=3541] Below are some recursive functions, try to explain their functionality: [TABS_R id=3537] Answer: The above function...
Introduction The linked list is one of the most important concepts and data structures to learn while preparing for interviews. Having a good grasp of Linked Lists can be a...
This blog gives the complete solution with an efficient approach for solving the famous coding problem “How To Extract Leaves Of A Binary Tree In A Doubly Linked List”. Extracting...
This article will discuss in detail how to convert binary tree to doubly linked list. Conversion of binary tree to doubly linked list is an amazing task, which will improve...
In the realm of data structures, linked lists are foundational, offering dynamic memory allocation and efficient data manipulation. However, linked lists can occasionally contain loops or cycles, which disrupt their...
Sorting is one of the famous techniques used to rearrange the array or the list of elements. In this article, we will learn how to sort a doubly linked list...
Check if a given number is palindrome or not. Ans. A palindrome is a number which is when reversed give the same number. We find the reverse and check whether...
What do you mean by dangling pointer? Ans. If a pointer is pointing to some address of a variable and at that moment another pointer is used to delete that...
Why do we still use C? Isn’t it quite old? Ans. C is considered to be the mother of all modern-day languages. It was initially created for the purpose of...
Linked List is a linear data structure which comprises of elements/nodes stored at various locations not necessarily contiguous. But don’t we have arrays for keeping a list? Well, there are...
In this tutorial, we will be discussing Wipro interview questions for freshers and experienced. If you have the talent, passion, and ability to work, able to work on cutting-edge technologies...
1. Write a program to swap two numbers in Java. Ans. Two ways to do this -with third variable and without third variable. public static void swapNumberswithtemp(int a, int b)...
C is a general-purpose procedural programming language developed by Dennis M. Ritchie. It was used to develop the UNIX operating system so you can understand how powerful it really is....
What is immutable object? Ans. Immutable objects can be created of immutable classes. Objects of these class cannot be modified. So whenever we try to change or modify these objects...
1. Write a program in Java to reverse a number. Ans. Extract each digit and keep multiplying with 10 and adding the remainder. static int REV(int n){ long RevNumber=0; while...
1. What is the difference between procedural language and object-oriented language? Ans. Procedural Programming languages follow a sequence of instructions and conveys it to the computer. Procedural programming depends on...
How to crack coding interview Whether you are a recent graduate or a job seeker, if you are searching for a job this article will help you to prepare yourself...
Java is a highly well-known object-oriented programming language that was developed in 1972, but it has continued to be one of the most crucial languages for decades. As its competitors...
Concepts Used Binary Search Difficulty Level Easy Problem Statement : Finding a number has always been an interesting puzzle! Well in this problem we are given a sorted array of...
This blog will give the detailed description to Delete Nth node from the end of the linked list. Deleting the Nth node from the end of the linked list will...
Concepts Used DYNAMIC PROGRAMMING Difficulty Level Easy. Problem Statement : Once upon a time, Arya visited a toy store. As Arya is a small kid he is attracted to every...
CONCEPTS USED: Dynamic programming. DIFFICULTY LEVEL: Easy. PROBLEM STATEMENT(SIMPLIFIED): Arnab is now handed N rupees, he is asked by his mom to buy at least two ingredients which when used...
CONCEPTS USED: Recursion and Backtracking. DIFFICULTY LEVEL: Medium. PROBLEM STATEMENT(SIMPLIFIED): Rohan is now fond of balanced sequences, but suddenly he realized that he is in love with balanced parenthesis. Now...