369. Plus One Linked List
T: O(n)
S: O(1)
like 2816, so in the end(node == null)... add 1 is ok
Previous2816. Double a Number Represented as a Linked ListNext1639. Number of Ways to Form a Target String Given a Dictionary
Last updated
T: O(n)
S: O(1)
like 2816, so in the end(node == null)... add 1 is ok
Last updated