Jump to content

Interview Lo Okate Question Adigadu


Recommended Posts

Posted

casino lo job aa endi? misleading probability adguthunaadu

Posted

[color=#000000][font=Arial,]
Since most values of N are not powers of 2 it's not strictly possible to guarantee a probability of 1/N from any number of coin tosses. Instead you'll have to settle for something which approaches 1/N to your desired accuracy. But hey, that's coin tossing for you anyway.[/font][/color][color=#000000][font=Arial,]
Draw yourself a decision tree with 2 branches at the root (labelled H and T), then 2 branches at each node (also labelled H and T), until you reach enough leaf nodes to satisfy your accuracy requirements. Label the right (for you) fraction of leaves with the values you want, eg 1,2,3 if N=3. Each leaf then defines a route from the root, such as HHHTTHH (or whatever). These define the sequence of tosses which result in a '3'.[/font][/color][color=#000000][font=Arial,]
I'll leave the coding to you.[/font][/color]

Posted

[quote name='kissan' timestamp='1359054801' post='1303167468']
puli.. you rock
[/quote]
google rocks :D

Posted

[quote name='kissan' timestamp='1359054941' post='1303167483']
puli.. where didd u find those asnwers
[/quote]
google

Posted

[quote name='maverickpuli' timestamp='1359054976' post='1303167485']
google
[/quote]
yes but google lo evo links doriki untayi kada.. those websites names chepte.. next tme preaping ki panikostadi


btw what u study... whr u jobbing

Posted

[quote name='bantrothu bullabbai' timestamp='1359055735' post='1303167580']
flow chart geesi padey
[/quote]

ala geese ila ayyam[img]http://lh3.ggpht.com/--o7mXz3u-j4/T9VVBGzBJAI/AAAAAAAAGo0/kmj8a1-XW2g/s150/PK-1.gif[/img]

×
×
  • Create New...