Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Algorithm : Reverse singly linked list

Questions about singly linked list are the lovers of interviewers during interviews given the characteristic that singly linked list is one-directional list and it's difficult to get the previous node of one node without some buffering tricks. In this post, we will demonstrate one of the most frequently asked question about singly linked list -- Reversing the singly list.Given the first node of a singly linked list, reverse the singly linked list. For example :A->B->C->DAfter reverse, it becomes:D->C->B->AThe general idea here is to changing the next node of one to its p...

5,453 0       C ALGORITHM INTERVIEW


  Algorithm : Delete middle node from singly linked list

Questions about singly linked list are frequently asked during technical interviews. Today we will share with you one algorithm question about singly linked list. Here is the problem description.Assuming the only information you are giving is there is a pointer to a middle node of a singly linked list, no other information about the linked list is given. Please delete this node and don't affect the structure of the linked list.Initially you may think this question is easy if you know the head node of the linked list, but unfortunately we don't know what the head is and hence we cannot know the...

8,259 0       C ALGORITHM LINKED LIST


  Measure the improvement of Google search algorithm

On the day of Google's 15th birthday, Google released its new "Hummingbird" search algorithm, this is the first time that Google changes its search algorithm since 2010 after the Caffeine algorithm. It will affect 90% of search results, according to Amit Singhal, Lead of Google Search.Some may be curious about how Google measures the improvement of a new search algorithm. There are many factors need to be considered, for example, accuracy, relevance, search depth etc. According to Amit Singhal, they have the entire web in a sandbox that only their engineers can see, and their engineers can tak...

6,911 1       ALGORITHM GOOGLE SEARCH IMPROVEMENT


  Generate first N prime numbers

Recently I am taking an online course named "Startup Engineering" on coursera. There is one assignment which is to use NodeJS to write a program to generate the first 100 prime numbers. This may be very easy for many people. Here I just want to share with you the code to generate not only the first 100 prime numbers. but also any number of prime numbers.Below is the code snippet://Helper class to generate prime numbersvar PrimeProcessor=(function(){ var primeArray=[]; function _isPrime(num){ if(num<=1){ throw new Error("Number cannot be sm...

11,766 5       JAVASCRIPT ALGORITHM NODEJS PRIME NUMBER COURSERA


  Implementation of Tower of Hanoi

The Tower of Hanoi is a mathematical game or puzzle. It consists of three rods, and a number of disks of different sizes which can slide onto any rod. The puzzle starts with the disks in a neat stack in ascending order of size on one rod, the smallest at the top, thus making a conical shape.The objective of the puzzle is to move the entire stack to another rod, obeying the following rules:Only one disk may be moved at a time.Each move consists of taking the upper disk from one of the rods and sliding it onto another rod, on top of the other disks that may already be present...

3,211 0       ALGORITHM TOWER OF HANOI


  Dividing any number By 9, 90, 900 and so on

Thetechnique for Dividing any number by 9 mentally is simply to reduce a complex divisionto a very simple addition. The technique can be applied from both ends i.e. from right-most digit or from left-most digit. Dividingby 9 into a mixed number from right-most digit uses the Divisibility Rules for9:1.     First, add all the digitstogether and divide by 9, keeping in mind the whole number and the remainder.2.     Write the remainder over 9, thisis the fraction part of the answer. (Make sure the fraction is in simplestform.)3.     Add a...

6,153 0       ALGORITHM 9 90 DIVISION


  What I learned interviewing with Google

Over the last few weeks I’ve been interviewing with Google for a job doing primarily JavaScript development. I didn’t end up getting the job but I thought I would share the process of interviewing for Google as it was both very exciting and a humbling experience. I can’t reveal everything as I’m under a few NDAs. I’m not going to mention the products or teams that I was interviewing for but you may be able to guess.For those that don’t know me, I’m an independent developer/designer. A majority of my work falls into the four categories of JavaSc...

2,926 0       GOOGLE ALGORITHM INTERVIEW EXPERIENCE


  Will We Need Teachers Or Algorithms?

Editor’s note: This is Part III of a guest post written by legendary Silicon Valley investor Vinod Khosla, the founder of Khosla Ventures. In Part I, he laid the groundwork by describing how artificial intelligence is a combination of human and computer capabilities In Part II, he discussed how software and mobile technologies can augment and even replace doctors. Now, in Part III, he talks about how technology will sweep through education.In my last post, I argued that software will take over many of the tasks doctors do today. And what of education? ...

2,069 0       ALGORITHM DEVELOPMENT TEACHER