-
Describe why it’s hard to code a random number generator in Ethereum. Summarize a few reasons why most intuitive solutions fail (eg. getting from block number)
-
Describe an efficient approach to using off-chain data in an ethereum contract that minimizes the amount of trust required.
-
Create an efficient solidity contract that includes the following functions:
- sqrt(uint x) that returns the square root of a number to 2 decimal places
- selectionsort(uint[] x) that uses the selection sort algorithm to return a sorted array
- factorial(int x): returns the factorial of x using recursion
Refer here