We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
What is the type that will be deduced if you use var? Is your algorithm terminating when the intermediate value exceeds the range of the variable you have? There is no difference between using var vs. a real type, but there are differences between using int and long
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Is Fibo
You are viewing a single comment's thread. Return to all comments →
What is the type that will be deduced if you use
var
? Is your algorithm terminating when the intermediate value exceeds the range of the variable you have? There is no difference between usingvar
vs. a real type, but there are differences between usingint
andlong