Helping engineers with technical interviews

Tag: C++

Leetcode 463 Island Perimeter

Sort a linked list using shared pointer

Linked lists are commonly used data structures in computer programming. Linked lists consist of nodes that are dynamically allocated, meaning that memory must be manually managed. Memory management can be a complex and error-prone task, and to make it easier, shared pointers are used in linked list implementation. Shared pointers are smart pointers that help […]

Read More

Implement doubly linked list using shared ptr

A shared pointer is a smart pointer that can manage the lifetime of an object by keeping track of how many pointers are pointing to it. In a doubly linked list, a shared pointer can be used to manage the memory of the nodes. In a doubly linked list, each node has two pointers: a […]

Read More

Powered by WordPress & Theme by Anders Norén