salad-ventures-challenges

As my backgroud is backend engineer, I only gave the answer of the question No. 1,4,5.

question 1: Three ways to sum n

file: 1_three_ways_to_sum_n.go
use formula, loop, recursion to give the answer
Here is the test result when n = 100

image

question 4: Interacting with Chain

filefolder: question_4
using the abi and bin file of the contract to generate the go file : Token.go

then use golang to interact with contract

the result is

image

question 5: Utility Contract

image

image

GitHub

View Github