LeetCode 138. Copy List with Random Pointer
Description A linked list is given such that each node contains an additional random pointer which could point to any…
Be a Good Techer and Tech for Good. www.goodtecher.com
Description A linked list is given such that each node contains an additional random pointer which could point to any…
Description https://leetcode.com/problems/unique-paths-ii/ A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).…
Description A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below). The robot can…
Description https://leetcode.com/problems/longest-palindromic-substring/description/ Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.…
Description https://leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two…
Description https://leetcode.com/problems/trapping-rain-water/description/ Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water…
Description Given a collection of integers that might contain duplicates, nums, return all possible subsets (the power set). Note: The…
Description https://leetcode.com/problems/subsets/ Given an integer array nums of unique elements, return all possible subsets (the power set). The solution set must not contain duplicate subsets. Return the…
Description Merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the…
Description https://leetcode.com/problems/zigzag-conversion/description/ The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of rows like this: (you may want…