The Wayback Machine - https://web.archive.org/web/20191024065836/https://github.com/topics/data-structures
Skip to content

Data structures

A data structure is a particular way storing and organizing data in a computer for efficient access and modification. Data structures are designed for a specific purpose. Examples include arrays, linked lists, and classes.

Here are 6,707 public repositories matching this topic...

azl397985856
azl397985856 commented Oct 18, 2019

请判断一个链表是否为回文链表。

示例 1:

输入: 1->2
输出: false
示例 2:

输入: 1->2->2->1
输出: true
进阶:
你能否用 O(n) 时间复杂度和 O(1) 空间复杂度解决此题?

来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/palindrome-linked-list
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。

Learn about data-structures

Wikipedia
Wikipedia

Related topics

See more topics
algorithm
You can’t perform that action at this time.