You are given N blocks of height 1…N. In how many ways can you arrange these blocks in a row such that when viewed from left you see only L blocks ( ...
Published Questions » Technical Questions
Arangement of blocks
Posted by CMaster (http://spellscroll.com)
Belove is list of Silverlight Error Codes which can be used for user friendly messaging:
Error Code
Error Message
1001
AG_E_UNKNOWN_ERROR
2000
...
Repository pattern is usefult for decoupling entity operations form presentation, which allows easy mocking and unit testing.
“The Repository will ...
What are jQuery templates?
Posted by CMaster
The idea behind jQuery template is to render hidden HTML island on the client and then use that as a template for client side manupulations and render ...
Answer:
This is one of the most popular JQuery interview questions, as it tests understanding of multiple areas such as JQuery JS objects, JQuery syn ...
Answer in Java
public static void sumFile ( String name ) { try { int total = 0; BufferedReader in = new BufferedRead ...
Fair coin flip
Posted by CMaster
"You flip a fair coin 20 times in a row and it comes up heads every single time. You flip the coin one more time. What is the probability of tails on ...
How do you get the line numbers in C?
Posted by CMaster
Answer:
There are number of useful predefined macros which are part of the C/C++ standard. During preprocessing, they are replaced respectively by a ...
