You are viewing a single comment's thread. Return to all comments →
Go Solution
func viralAdvertising(n int32) int32 { var i int32 var sumValue int32=2 var currentLike int32=2 for i=2;i<=n;i++{ currentLike=(currentLike*3)/2 sumValue+=currentLike } return sumValue }
Seems like cookies are disabled on this browser, please enable them to open this website
Viral Advertising
You are viewing a single comment's thread. Return to all comments →
Go Solution