A linked list is a data structure that stores data elements in linked form. Each node of the linked list has a data element and a link.Print reverse of a linked list is a common problem that needs to be addressed in problem solving. So, here we will learn an interesting way to print reverse of a linked list in c++ programming language.Generally print a reverse linked list needs modifications in the list or multiple traversing of the list but this method does not require any such things and also traverses the linked list only once.The logic of this method ... Read More
What is the time complexity of insertion sort?Time complexity is the amount of time taken by a set of codes or algorithms to process or run as a function of the amount of input.For insertion sort, the time complexity is of the order O(n) i.e. big O of n in best case scenario. And in the average or worst case scenario the complexity is of the order O(n2).What will be the time complexity of sorting when insertion sort algorithm is applied to n sized array of the following form: 6, 5, 8, 7, 10, 9 …… I, i-1The time complexity ... Read More
Amortized analysis for a sequence of operations is used to determine the run time, the average time required by the sequence. In cannot be treated as an average-case analysis done on the algorithm as it does not always take the average case scenario. There are cases that occur as a worst-case scenario of analysis. So, amortized analysis can be treated as a worst-case analysis for multiple operations in a sequence. Here, the cost of doing each operations in different and for some its high. This problem is a general view using the binary counter.Let’s see the working and implementation in ... Read More
Worldwide, there are numerous users who use web browser every day and every time for work, entertainment, e-commerce business, search, etc. So, it is necessary for users to know the online site which they can use to know the important task is safe or not. After knowing users requirement, Google chrome has come up with a very interesting extension “WOT”.“WOT” (Web of Trust) displays that on which websites user can belief based on various users’ experiences, worldwide. It facilitates users to visit safely on the website while searching, navigating, and purchasing online.It works on Windows (XP or later), Mac OS ... Read More
Social networking channels like; Facebook, Twitter and MySpace are important advertising tools or platform, best for entertainment, advertisement, charity as well as business. Facebook thinks one step further in all aspect as compare to any other networking site and facilitates great Facebook’s fans to donate through donation button. Donation button is an application secures the donation money and sends it to the correct charity funds at the end of the month. To set up or get a donation button, user should be having a recognized charity name and a Facebook fan page, both. This article will facilitate Facebook fans to ... Read More
If someone is running a small business or company and added all company information at Facebook. The information provided through Facebook is interacting every day millions of people, millions of people go through his/her Facebook page to know the company owner better or his/her company’s product and services better, people can also share their own thoughts or suggestion on Facebook. Using Facebook, users can add and upload various stuffs like; build a custom page, run contests and promotions, and manage a small e-commerce shop that are not possible to do with any website. Additionally, it is free. Including all above ... Read More
There are various successful social networking sites but no one can compare to Facebook and Google. Right now, nobody is there in this world that does not use Facebook and Google+ to increase their social network for business, entertainment, marketing, etc. Future of Facebook and Google+ is very bright with increasing number of fans and it will never go down in the market.The combination of “Facebook and Google+” is very useful for those fans who really want to see these two apps into one place, for fast access. To use this app, first install it then user can update their ... Read More
Problem statementN participants of the competition were split into M teams in some manner so that each team has at least one participant. After the competition each pair of participants from the same team became friends.Your task is to write a program that will find the minimum and the maximum number of pairs of friends that could have formed by the end of the competition.Algorithm1. We can obtain max pairs using below formula: maxPairs = ((n – m) * (n – m + 1)) / 2 2. We can obtain min pairs using below formula: minPairs = m * (((n ... Read More
DescriptionGiven an array of size, N. Find an element X such that the sum of array elements should be minimum when XOR operation is performed with X and each element of an array.If input array is: arr [] = {8, 5, 7, 6, 9} then minimum sum will be 30 Binary representation of array elments are: 8 : 1000 5 : 0101 7 : 0111 6 : 0101 9 : 1001 If X = 5 then after performing XOR sum will be 30: 8 ^ 5 = 13 5 ^ 5 = 0 7 ^ 5 = 2 6 ^ ... Read More
Worldwide, 80 – 90% people have their online reputation which shows their characteristic, behaviour, field of interest and qualities (Good and bad both).Using Internet, on the web people creates their own reputation some time intentionally or some time unintentionally, intentionally through blogs, photos, videos, links, or social media sites. Among all these resources blogs posting is a number one resource to become famous while writing comments on some topic and getting opinion (good or bad) from others, which automatically maintain your online reputation (Some time it is good or some time bad). Everyone can catch this information and use it ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP