You have a function f(p) that returns an array of linked pages e.g f(homepage) = {page1, page2, page3}. Or f(page1) = {page4, page5}. If there is no linked pages function will return null. And we say one site is a good site if we can get to any page of that site in a less than 6 clicks. The task was to write a function that will check is it a good site or not using f(p).
Software Developer Interview Questions
550,937 software developer interview questions shared by candidates
Write a function to find the maximum sum of sub array where the array can have negative and positive numbers.
Find the character with longest repitition in the string e.g. aaacccddddeefffffffg the result should be 'f'.
In a BST write a program to find 2 nodes x and y such that X+y=k
find duplicated item from an array, output the duplicated item with their times
what was a technical difficulty and how have you overcome it.
if you have a linked list ordered like : n1-n2-n3-n4-n5-n6-n7-NULL. how to sort it to be at the order : n2-n1-n4-n3-n6-n5-n7-NULL
Print a binary tree level by level in zigzag order
You have a box of red balls, a box of blue balls, and a box of red and blue balls. What is the minimum number of boxes you can open and know what is the contents of each box?
Given a point to an array of 12 bits in a graphics buffer where each 4 bits represented red green and blue respectively, flip the color of the array to blue.
Viewing 1061 - 1070 interview questions