Show me unanswered

New questions!.

Tell me what will hapen when this code is excecuted and why javascript function oveloading001
What is the diffrence between html5 canvas and svg?001
What is a thread pool and its working? Explain in node js001
Is node js is concurrent or parellel explain with example?001
What are close call back node js?000
What are check callbacks nodejs?000
What are poll retrive new event loop node js?000
What is idle prepare in nodejs?000
What are i/o callbacks explain with the help of node js?000
What are timers explain with the help of event loop in nodejs?001
Tell me the name of some node modules?001
What is libuv nodejs and why it is used there?001
Explain me the diffrence between process.nexttick and set timeout functions in node js001
Diffrence between set time out and setimmediate in nodejs?001
How even though node js is sigle threaded how it can be asynchornous?000
I have a first interview and the job title is Developer (SSRS SQL SSRS) What type of questions in SQL can they ask me over the phone?001
Explain Singleton Design pattern in javascript?000
Explain Observer Design pattern in javascript?000
Explain Module Design pattern in javascript?000
What’s the difference between imperative and declarative programming?001
What happens if you assign a variable without a keyword?001
How Does a Function Expression Differ from a Function Declaration?001
Why Does 018 Minus 017 Equal 3?001
Why does 0.1 + 0.2 === 0.3 return false?001
Why is Math.max() smaller than Math.min()?001
Write a program that plays Battle Ship against human opponents. It takes coordinates as input and outputs whether that was a hit or not and its own shot’s coordinates.000
Write a program that plays Rock, Paper, Scissors better than random against a human. Try to exploit that humans are very bad at generating random numbers.000
Write a program that plays Hangman as good as possible. For example you can use a large dictionary like this and select the letter that excludes most words that are still possible solutions. Try to make the program as efficient as possible, i.e. don’t scan the whole dictionary in every turn.000
Write a Tetris clone000
Write a Memory game.000
Write a program that displays a bouncing ball.000
Given a set of d-dimensional rectangular boxes, write a program that computes the volume of their union. Start with 2D and work your way up.000
Implement a van Emde Boas tree. Compare it with your previous search tree implementations.000
Write a function that multiplies two matrices together. Make it as efficient as you can and compare the performance to a polished linear algebra library for your language. You might want to read about Strassen’s algorithm and the effects CPU caches have. Try out different matrix layouts and see what happens.000
Given two strings, write a program that outputs the shortest sequence of character insertions and deletions that turn one string into the other.000
Given an array with numbers, write a program that efficiently answers queries of the form: “Which is the nearest larger value for the number at position i?”, where distance is the difference in array indices. For example in the array [1,4,3,2,5,7], the nearest larger value for 4 is 5. After linear time preprocessing you should be able to answer queries in constant time.000
Given two strings, write a program that efficiently finds the longest common subsequence.000
Compare the performance of insertion, deletion and search on your unbalanced search tree with your balanced search tree and a sorted list. Think about good input sequences. If you implemented an (a,b)-tree, think about good values of a and b.000
Implement a balanced binary search tree of your choice. I like (a,b)-trees best.000
Implement an unbalanced binary search tree.000
Implement a binary heap. Once using a list as the base data structure and once by implementing a pointer-linked binary tree. Use it for implementing heap-sort.000
If you chose your growth right in the previous problem, you typically won’t allocate very often. However, adding to a big list sometimes consumes considerable time. That might be problematic in some applications. Instead try allocating new chunks of memory for new items. So when your list is full and the user wants to add something, allocate a new chunk of 100 elements instead of copying all elements over to a new large chunk. Think about where to do the book-keeping about which chunks you have. Different book keeping strategies can quite dramatically change the performance characteristics of your list.000
Improve your previous implementation such that an arbitrary number of elements can be stored in your list. You can for example allocate bigger and bigger chunks of memory as your list grows, copy the old elements over and release the old storage. You should probably also release this memory eventually if your list shrinks enough not to need it anymore. Think about how much bigger the new chunk of memory should be so that your performance won’t be killed by allocations. Increasing the size by 1 element for example is a bad idea.000
Implement your list interface using a fixed chunk of memory, say an array of size 100. If the user wants to add more stuff to your list than fits in your memory you should produce some kind of error, for example you can throw an exception if your language supports that.000
Think of a good interface for a list. What operations do you typically need? You might want to investigate the list interface in your language and in some other popular languages for inspiration.000
Write a program that finds the longest palindromic substring of a given string. Try to be as efficient as possible!000
Write a program that automatically converts English text to Morse code and vice versa.000
Write a program that automatically generates essays for you.000
Write a function that generates a DOT representation of a graph.000
Implement a data structure for graphs that allows modification (insertion, deletion). It should be possible to store values at edges and nodes. It might be easiest to use a dictionary of (node, edgelist) to do this.000