Skip to content

Latest commit

 

History

History
 
 

interactive_problem

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Interactive Problem Template

Use below interface and implement it both in main.go and main_test.go.

type interaction interface {
	readInitData() initData
	query(request) response
	printAnswer(answer)
}

In this way we can mock the IO part.