Just a general question: Is is good to use a dummy/helper node?


  • 0
    P

    Sometime it is much more easier to use a dummy head or help head.
    It can also be done without using dummy head.
    So should I use it or try not to use it? especially during interview.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.