A data structure is a particular way of organizing data in a computer so that it can be used effectively. The idea is to reduce… Read More »
Prerequisite Article-Machine Learning The goal in any data analysis is to extract from raw information the accurate estimation. One of the most important and common… Read More »
In this post “Top 10 coding problems of important topics with their solutions ” are written. If you are preparing for a coding interview, going through… Read More »
Given a range [low..high], print the smallest twin numbers in given range (low and high inclusive). Two numbers are twins if they are primes and… Read More »
Given a number n, print following pattern without using any loop. Input: n = 16 Output: 16, 11, 6, 1, -4, 1, 6, 11, 16
Find the n’th term in Look-and-say (Or Count and Say) Sequence. The look-and-say sequence is the sequence of below integers: 1, 11, 21, 1211, 111221,… Read More »
Given a number line from -infinity to +infinity. You start at 0 and can go either to the left or to the right. The condition… Read More »
Here is the collection of TOP 25 frequently asked questions based on experience (mine and friends) of interviews in multiple companies.
Given two dates, find total number of days between them. The count of days must be calculated in O(1) time and O(1) auxiliary space.
Given n sets of integers of different sizes. Each set may contain duplicates also. How to find the intersection of all the sets. If an… Read More »
Question 1 Predict the output of the following program. What does the following fun() do in general?
Question 1 Consider the following recursive C function. Let len be the length of the string s and num be the number of characters printed… Read More »
Question 1 Predict the output of following program. What does the following fun() do in general?
Object Oriented Programming paradigm deals with centralizing data and associated behaviours in a single entity. The entities will communicate by message passing.
There are posts on representation of floating point format. The objective of this article is to provide a brief introduction to floating point format.