題目:You are given the heads of two sorted linked lists list1 and list2. Merge the...
題目:Given n pairs of parentheses, write a function to generate all combinations o...
題目:You are given an array of k linked-lists lists, each linked-list is sorted in...
題目:Given a linked list, swap every two adjacent nodes and return its head. You m...
題目:Given the head of a linked list, reverse the nodes of the list k at a time, a...
題目:Given an integer array nums sorted in non-decreasing order, remove the duplic...
題目:Given an integer array nums and an integer val, remove all occurrences of val...
題目Given two strings needle and haystack, return the index of the first occurrenc...
題目:給定兩個整數dividend和,不使用乘法、除法和模運算子divisor來除兩個整數。 整數除法應向零方向截斷,這意味著會丟失小數部分。例如,8.345將...
題目:You are given a string s and an array of strings words. All the strings of wo...