Logo
  1. February 09, 2023

    This post covers the roles and functionalities of `DisguisedPtr`, `ObjcAssociation`, and `Tagged Pointer Objects`. The article also discusses the challenges of `weak` references in Objective-C and the intricacies of memory synchronization in concurrent programming. It concludes with an implementation of the XOR linked list.

  2. February 08, 2023

    A deep dive into the intricacies of memory management in Swift and Objective-C. Explore the evolution of ARC, its role in modern programming, and the challenges and solutions in concurrent programming.

  3. February 07, 2023

    Dive deep into the world of XOR linked lists in Swift, exploring its memory efficiency and unique structure. This article offers a comprehensive guide to implementing an XOR linked list in Swift, highlighting the advantages of using the XOR operation for memory management. Additionally, gain insights into memory manipulation with Swift and Objective-C, and discover the intricacies of Automatic Reference Counting (ARC).

  4. February 06, 2023

    An XOR linked list is a more memory efficient doubly linked list. Instead of each node holding next and prev fields, it holds a field named both, which is an XOR of the next node and the previous node. Implement an XOR linked list; it has an add(element) which adds the element to the end, and a get(index) which returns the node at index.

  5. February 05, 2023

    cons(a, b) constructs a pair, and car(pair) and cdr(pair) returns the first and last element of that pair.

  6. February 04, 2023

    Given an array of integers, find the first missing positive integer in linear time and constant space. In other words, find the lowest positive integer that does not exist in the array. The array can contain duplicates and negative numbers as well.

  7. February 03, 2023

    Given the root to a binary tree, implement serialize(root), which serializes the tree into a string, and deserialize(s), which deserializes the string back into the tree.

  8. February 02, 2023

    Given an array of integers, return a new array such that each element at index i of the new array is the product of all the numbers in the original array except the one at i.

  9. February 01, 2023

    Given a list of numbers and a number k, return whether any two numbers from the list add up to k