Leetcode-21 Merge Two Sorted Linked Lists
merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.
merge two sorted linked lists and return it as a sorted list. The list should be made by splicing together the nodes of the first two lists.
Given the head of a singly linked list, reverse the list, and return the reversed list.
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.
Leetcode 33: Search in Rotated Sorted Array