<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Data Structure - Tag - HEJTAO</title>
        <link>https://hejtao.netlify.app/tags/data-structure/</link>
        <description>Data Structure - Tag - HEJTAO</description>
        <generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 19 Oct 2021 00:00:00 &#43;0000</lastBuildDate><atom:link href="https://hejtao.netlify.app/tags/data-structure/" rel="self" type="application/rss+xml" /><item>
    <title>Leetcode Practice</title>
    <link>https://hejtao.netlify.app/posts/cs-leetcode/</link>
    <pubDate>Tue, 19 Oct 2021 00:00:00 &#43;0000</pubDate>
    <author>HEJTAO.COM</author>
    <guid>https://hejtao.netlify.app/posts/cs-leetcode/</guid>
    <description><![CDATA[Array 704. Binary Search 👉 LeetCode
func search(nums []int, target int) int { left, right := 0, len(nums)-1 for left &lt;= right{ mid := （right - left) &gt;&gt; 1 + left if nums[mid] == target{ return mid }else if nums[mid] &lt; target { left = mid + 1 }else{ right = mid - 1 } } return -1 } Find The Single Number Example 1
input: nums = [2,2,3,3,4]
output: 4]]></description>
</item>
<item>
    <title>大话数据结构</title>
    <link>https://hejtao.netlify.app/posts/cs-data-structure/</link>
    <pubDate>Thu, 20 Dec 2018 00:00:00 &#43;0000</pubDate>
    <author>HEJTAO.COM</author>
    <guid>https://hejtao.netlify.app/posts/cs-data-structure/</guid>
    <description><![CDATA[3.4 顺序存储结构 数值 data(起始位置)；数组长度 MaxSize；线性表长度 length LOC($a_{i}$)=LOC($a_{1}$)+(i-1)c
3.6 链式存储结构 单链表，每个节点只包含一个指针域 头指针，头节点，第一个节点
package main import ( &#34;fmt&#34; ) type Node struct { data string next *Node } type LinkList struct { length int head *Node rear *Node } func NewLinkList(head *Node) *LinkList { return &amp;LinkList{0, head, head} } func (this *LinkList) Append(data string) { if this.rear == nil { return } node := &amp;Node{data: data} this.rear.next = node this.rear = node this.]]></description>
</item>
</channel>
</rss>
