[Toggle Comments]
package main func main() { nums := []int{2, 4, 7, 8, 12} target := 10 for _, fn := range []solution{ twoSumBruteForce, twoPassHashTable, onePassHashTable, } { out(fn, nums, target) } } /* * \ * \\, * \\\,^,.,,. Zero to Hero * ,;7~((\))`;;,, <zerotohero.dev> * ,(@') ;)`))\;;', stay up to date, be curious: learn * ) . ),(( ))\;, * /;`,,/7),)) )) )\,, * (& )` (,((,((;( ))\, */