Tag: hash set
You are given a list of lowercase alphabet strings words where each string is of the same length. Return whether there’s two strings that differ only in one index. …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given Two Linked Lists, compute the Intersection Node: For example: 1 - 2 - 3 - 4 - 5 | …
Given a singly linked list node, remove nodes with duplicate values while maintaining relative order of the original list. Constraints n ≤ 100,000 where n is the number of …
Given an array arr of positive integers sorted in a strictly increasing order, and an integer k. Find the kth positive integer that is missing from this array. Example …
Given a binary tree with the following rules: root.val == 0 If treeNode.val == x and treeNode.left != null, then treeNode.left.val == 2 * x + 1 If treeNode.val …