32 bytes C Solution (use [] operator as add)


  • 0
    T
    getSum(a,b){return&a[(char*)b];}
    

    operator [] is another way to say add in c language. (it may be considered as syntax suger)


Log in to reply
 

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