You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Computed property to iterate through the linked list and return the last node in the list (if any)
publicvarlast:Node?{
guard var node = head else{returnnil}
while let next = node.next {
node = next
}return node
}
https://github.com/raywenderlich/swift-algorithm-club/blob/5d551049a02cccd00b046937750fd6d736065f76/LRU%20Cache/LRUCache.swift#L35
The text was updated successfully, but these errors were encountered: