Skip to content

Instantly share code, notes, and snippets.

View jkotra's full-sized avatar
🎯
Focusing

Jagadeesh Kotra jkotra

🎯
Focusing
View GitHub Profile
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))
n_doors = 3
n_siml = parsed_args["simulations"]
switch = parsed_args["switch"]
w = 0
l = 0
n_doors = 3
n_siml = parsed_args["simulations"]
switch = parsed_args["switch"]
w = 0
l = 0
using ArgParse
function parse_commandline_args()
s = ArgParseSettings()
@add_arg_table s begin
"--switch"
help = "to SWITCH or NOT"
action = :store_true
"--simulations"
@jkotra
jkotra / README.md
Last active October 6, 2019 05:58
Pictures

-

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jkotra
jkotra / queue.cpp
Created August 26, 2019 16:48
Queue in C++
/*Queue in c++
*(FOR RECORD WORK)
*Jagadeesh Kotra (github.com/jkotra)
*Dt: 26.08.2019 */
#include <iostream>
using namespace std;
class Queue{
@jkotra
jkotra / stack.cpp
Last active August 26, 2019 16:32
Stack in C++
/*Stack in c++
*(FOR RECORD WORK)
*Jagadeesh Kotra (github.com/jkotra)
*Dt: 26.08.2019 */
#include <iostream>
using namespace std;
class Stack{