This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i = 1:n_siml | |
doors = rand(0:0,n_doors) | |
#Keep the money in random door | |
money_door = rand(1:length(doors)) | |
doors[money_door] = 1 | |
chosen_door = rand(1:length(doors)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n_doors = 3 | |
n_siml = parsed_args["simulations"] | |
switch = parsed_args["switch"] | |
w = 0 | |
l = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n_doors = 3 | |
n_siml = parsed_args["simulations"] | |
switch = parsed_args["switch"] | |
w = 0 | |
l = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ArgParse | |
function parse_commandline_args() | |
s = ArgParseSettings() | |
@add_arg_table s begin | |
"--switch" | |
help = "to SWITCH or NOT" | |
action = :store_true | |
"--simulations" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Queue in c++ | |
*(FOR RECORD WORK) | |
*Jagadeesh Kotra (github.com/jkotra) | |
*Dt: 26.08.2019 */ | |
#include <iostream> | |
using namespace std; | |
class Queue{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Stack in c++ | |
*(FOR RECORD WORK) | |
*Jagadeesh Kotra (github.com/jkotra) | |
*Dt: 26.08.2019 */ | |
#include <iostream> | |
using namespace std; | |
class Stack{ |