Monty hall problem

Monty Hall Problem

  The Monty Hall Problem is a probability puzzle named after the host of the television game show “Let’s Make a Deal,” Monty Hall. The problem can be stated as follows:   The question is: What should you do to maximize your chances of winning the car? Should you stick with your initial choice, switch,…

Read More

CMD: Copy folder structure without files

To copy folders structure without files can be achieved using xcopy command xcopy “source_path” “destination_path” /t /e where, /t option specifies to create the folder structure, but without copying any files or empty subdirectories. /e options is for include empty subdirectories Please note : this is a windows command

Read More

JavaScript map method

Lets see how javascript map method works using some examples, some real world problem, Interview question and lastly there is a task for you 🙂 This is an array method which iterate over the array, map values and then return a new array.   Let’s see the syntax of same Array.map(callbackFunction(currentValue, [index], [arr]); Let’s see…

Read More