<< Previous |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
Next >>
To post a question, please login or sign up.
-
anonymous
Coding/Algorithm: Since XML is very verbose, you are given a way of encoding it where each tag gets mapped to a predefined integer value. The language/grammar looks like:Element --> Element Attr* END Element END [aka, encode the element tag, then its attributes, then tack on an END character, then encode its children, then another end tag]Attr --> Tag Value [assume all values are strings]END --> 01Tag --> some predefined mapping to intValue --> string value END- Coding: Write code to encode xml element (as char *) as Byte *- Algorithm: Is there anything else you could do to (in many cases) compress this even furthur?
(no answers yet)
-
anonymous
Coding: Game of master mind: you have four balls, and four different colors, as a solution. The user tries to guess the solution. If they guess the right color for the right spot, it counts as a 'hit'. If it's the right color, but the wrong spot, it counts as a psuedo-hit. For example: if the solution is 'RGGB' and the user guesses 'YRGB' they have 2 hits and one pseudo hit. Write a program to, given a solution and a guess, calculate the number of hits and pseudo hits.
(no answers yet)
-
anonymous
Coding: You have an n pointed star with points labeled 0, 1, ..., n-1 (assume points are numbered in order). You want to draw this star (imagine a kid's scribble for a 5-pointed star... That kind of star). Assume you have a function drawLine(int indexOne, int indexTwo) which can draw a line from one point of a star to another. Write a program to draw the star.
(no answers yet)
-
anonymous
Coding/Test: I want to be able to maintain a list of my family's birthdates and print them in oldest-to-youngest order. Implement the classes and methods that I need for thisTest: how would you test this (if you were doing black box testing)?
(no answers yet)
-
anonymous
Coding: function generate nth fibonnaci number- what's the largest n could be?
(no answers yet)
-
anonymous
Coding: Reverse linked list
(no answers yet)
-
anonymous
Coding: Write code to compute the intersection of 2 rectangles
(no answers yet)
-
anonymous
What's the difference between c++ and java?
(no answers yet)
-
anonymous
Coding: Many overlapping rectangles - want to return which (doesn't matter which one, if it's over several) rectangle the mouse is over.
(no answers yet)
-
anonymous
Coding: I have a HxW picture, 32 bit picture --> represented by int array. How do you rotate the picture by 90 degrees into a new array? Write the code
(no answers yet)
-
anonymous
You have two ropes, each of which burns for exactly one hour. But, the ropes vary in density so you don't know that half of one rope will burn for 30 minutes. Given those two ropes and a book of matches, how would you time 15 minutes? (Note: you don't need to be able to hand someone a piece of rope that will take 15 minutes. You just need to be able to time 15 minutes)
(no answers yet)
-
anonymous
Why would you use an array vs linked-list
(no answers yet)
-
anonymous
What's the point of inheritance?
(no answers yet)
-
anonymous
You have a basket ball hoop and someone says that you can play 1 of 2 games. You get $1000 and one shot to get the hoop. Or, you get three shots and you have to make 2 of 3 shots. Which one do you choose? If p is the probability of making a particular shot, what value of p makes you switch games?
(no answers yet)
-
anonymous
3rd Interview - Technical. You have 5 basketball teams. You want them to play each other only once. Each team plays once a week. If a team plays a home game this week, They should play a aways game the coming week. How many weeks does it take for all the teams for play each other?
(no answers yet)
-
anonymous
Asked me to go through all of my summers at Microsoft and Apple and explain what I did
(no answers yet)
-
anonymous
Coding: Write atoi
(no answers yet)
-
anonymous
Coding: Write program to continuously keep average. ie, you have a prototype function "double computeAverage(double newVal)"
(no answers yet)
-
anonymous
Coding: Write program to take the union of two rectangles
(no answers yet)
-
anonymous
Coding: Write a program to swap a number in place (ie, no temp variables)
(no answers yet)
<< Previous |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
Next >>