The linked list is one of the most important concepts and data structures to learn while preparing for interviews. As we know a LinkedList allows only insertions and deletion at...
Sorting a linked list can be troublesome sometimes, but there are multiple algorithms to do so easily. A bubble sort might not be the most efficient one for sorting a...
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...
1. Do you know what is an IP address and what is it used for? Ans. Each computer connected to the internet has a unique number assigned which distinguishes its...
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...
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 procedures....
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 very popular object-oriented programming language created in 1972 but it has still remained one of the most essential languages throughout decades. Java was one of the first...
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...