code.ashish.me

Atom feed

Recently added: 128 Longest Consecutive Sequence, 347 Top K Frequent Elements, 045 Jump Game 2, 228 Summary Ranges, 219 Contains Duplicate 2

Doublynode

/**
 *
 * Ashish Patel
 * e: ashishsushilPatel@gmail.com
 * w: https://ashish.me
 *
 */

class DoublyNode {
  int data;
  DoublyNode prev;
  DoublyNode next;

  DoublyNode(int d) {
    data = d;
    prev = null;
    next = null;
  }
}

Created 2021-12-30T01:39:37+00:00 · Edit