Dice Probability | CSES problem set | Solution explained and Python code

  Рет қаралды 1,541

Sai Anish Malla

Sai Anish Malla

Күн бұрын

Пікірлер: 9
@TechWithOtmane
@TechWithOtmane Жыл бұрын
if some found solution of book shop problem with python 3 , every time i submit the code he give me runtime error
@ishayadav001
@ishayadav001 2 жыл бұрын
Great video!!
@saithunga152
@saithunga152 2 жыл бұрын
Well Explained!!
@TarunKumar-qs9dj
@TarunKumar-qs9dj 2 жыл бұрын
Pls continue this CSES series in python as long as you can solve it
@mallasatyanarayana1942
@mallasatyanarayana1942 Жыл бұрын
Hi Sai Anish Mall, can you post Python interview questions for preparation all in 1 video, Thx
@omaralzakout4100
@omaralzakout4100 Жыл бұрын
Hi, first of all thanks for this great video but I don't think your solution works for c++ as pow(6,n) is very big and this will cause overflow. My solution is to store the probability in the dp array instead of the number of ways so your code will work perfictly with this three changes : 1 - Initiate arr[0][x] = 1.0/6 2 - When calculating the arr[x][i] += arr[x-1][i-j] / 6 3 - Calculating the res will be just the sum without the division
@consistentthoughts826
@consistentthoughts826 2 жыл бұрын
CSES has very strict online judge and it is difficult to get accepted for python
@saianishmalla2646
@saianishmalla2646 2 жыл бұрын
I do try to use C++ for most of them but tbh I'm way too comfortable with python so I just ended up using python for this.
@consistentthoughts826
@consistentthoughts826 2 жыл бұрын
@@saianishmalla2646 please make all videos of cses as these 300 questions are a grrat source of knowledge
What P vs NP is actually about
17:58
Polylog
Рет қаралды 147 М.
Python for Data Analysis: Probability Distributions
32:47
DataDaft
Рет қаралды 60 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
The Most Powerful Dice - Numberphile
6:34
Numberphile
Рет қаралды 619 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
Coding Challenge 170: The Monty Hall Problem
32:16
The Coding Train
Рет қаралды 160 М.
Additive Number | LeetCode 306 | Theory + Python code
19:12
Sai Anish Malla
Рет қаралды 1,4 М.
Convolutions | Why X+Y in probability is a beautiful mess
27:25
3Blue1Brown
Рет қаралды 743 М.
DeepSeek AI  - Why EVERYONE is Talking About It? How to USE DeepSeek?
9:18
A visual guide to Bayesian thinking
11:25
Julia Galef
Рет қаралды 1,9 МЛН
How to Remember Everything You Read
26:12
Justin Sung
Рет қаралды 3,2 МЛН
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 265 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН