title: Does head->val takes more time than head.val?
body: <p>I just want to know that using a pointer changes time complexity. To be precise does my time change if I use head.val instead of head->val. Or can I know which one is better.
  Thanks in advance.</p>