LeetCode Problems!
LC 23: Merge K ListsMerge K Lists
Merge K Lists
You are given an array of k linked-lists lists, where each linked list is sorted in ascending order.
merge all the linked-lists into one sorted linked-list and return it
/**
...
LC 25: Reverse Nodes In K-GroupReverse Nodes In K-Group
Reverse Nodes In K-Group
Given the head of a linked list, reverse the nodes of the list k at a time, without altering the value of any nodes in the list. If the number of nodes is not a multiple of...
LC 32: Longest Valid ParenthesesLongest Valid Parentheses
Longest Valid Parentheses
You are given a string s containing just the characters '(' and ')'.
return the length of the longest valid (well-formed) parentheses substring
Examples
Input =" (()" –&g...