分类:算法
Given a linked list, swap every two adjacent nodes and […]
Given n pairs of parentheses, write a function to gener […]
Merge two sorted linked lists and return it as a new li […]
Given a string containing just the characters ‘(& […]
Given a linked list, remove the nth node from the end o […]
Given a digit string, return all possible letter combin […]
1.有这样一个乘法算式: 人过大佛寺*我=寺佛大过人 这里面每一字都代表着一个数字,并且不同的字代表着的数字不 […]
Given n non-negative integers a1, a2, …, an, wher […]
The string “PAYPALISHIRING” is written in a […]
二叉树的的创建和遍历是数据结构中的基本算法,在此统一归纳总结。 1.二叉树的定义 struct Node { […]
题目描述: 给定一个带有头节点的单链表,输出逆序反转后的链表 分析:链表的转置是一个很常见、很基础的数据结构题 […]
There are two sorted arrays nums1 and nums2 of size m a […]
Given a string s, find the longest palindromic substrin […]
Given a string, find the length of the longest substrin […]
You are given two non-empty linked lists representing t […]