常用数据结构及复杂度

  • http://www.cnblogs.com/gaochundong/p/3813252.html
  • 常用数据结构的时间复杂度
Data Structure Add Find Delete GetByIndex

 Array (T[]) O(n)

O(n)

O(n)

O(1)

 Linked list (LinkedList<T>) O(1)

O(n)

O(n)

O(n)

 Resizable array list (List<T>) O(1)

O(n)

O(n)

O(1)

 Stack (Stack<T>) O(1)

-

O(1)

-

 Queue (Queue<T>) O(1)

-

O(1)

-

 Hash table (Dictionary<K,T>) O(1)

O(1)

O(1)

-

 Tree-based dictionary (SortedDictionary<K,T>)

O(log n)

O(log n)

O(log n)

-

 Hash table based set (HashSet<T>)

O(1)

O(1)

O(1)

-

 Tree based set (SortedSet<T>)

O(log n)

O(log n)

O(log n)

-

【万字总结】图解堆算法、链表、栈与队列(多图预警)

  • http://blog.csdn.net/nomasp/article/details/50349172

图论算法 有图有代码 万字总结 向前辈致敬

  • http://blog.csdn.net/nomasp/article/details/45827145

面试经验分享之数据结构、算法题

  • http://www.36dsj.com/archives/21410
  • 数据结构题目
    • 概述
    • 分类讨论
      • 类型一:数据结构实现
      • 类型二:数据结构应用
    • 准备建议
  • 算法题目
    • 概述
    • 分类讨论
      • 类型一:经典算法实现题
      • 类型二:思维益智题

链表, 如何最快地找出一个单向链表的中间结点?

怎样用最快的方法判断链表是否有环?

以后有面试官问你「跳跃表」,你就把这篇文章扔给他 - 算法与数据结构

  • https://mp.weixin.qq.com/s/-ogyFJd9Jz4jROPfK8W6Vw

你真的了解字典(Dictionary)吗? - 算法与数据结构

  • https://mp.weixin.qq.com/s/8T7xkq5mrEHRwedyBWbpwg
  • http://www.cnblogs.com/CoderAyu/p/10360608.html
  • 字典为什么能无限地Add呢?
  • 从字典中取Item速度非常快,为什么呢?
  • 初始化字典可以指定字典容量,这是否多余呢?
  • 字典的桶buckets 长度为素数,为什么呢?

面试总结之数据结构(Data Structure)的更多相关文章

  1. leetcode面试准备:Add and Search Word - Data structure design

    leetcode面试准备:Add and Search Word - Data structure design 1 题目 Design a data structure that supports ...

  2. [LeetCode] All O`one Data Structure 全O(1)的数据结构

    Implement a data structure supporting the following operations: Inc(Key) - Inserts a new key with va ...

  3. UVa 11995:I Can Guess the Data Structure!(数据结构练习)

    I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations: 1 x T ...

  4. 【暑假】[实用数据结构]UVa11995 I Can Guess the Data Structure!

    UVa11995  I Can Guess the Data Structure! 思路:边读边模拟,注意empty的判断! 代码如下: #include<iostream> #inclu ...

  5. [leetcode]432. All O`one Data Structure全O(1)数据结构

    Implement a data structure supporting the following operations: Inc(Key) - Inserts a new key with va ...

  6. FAT文件系统规范v1.03学习笔记---2.FAT区之FAT数据结构(Fat Data Structure)

    1.前言 本文主要是对Microsoft Extensible Firmware Initiative FAT32 File System Specification中文翻译版的学习笔记. 每个FAT ...

  7. [leetcode]211. Add and Search Word - Data structure design添加查找单词 - 数据结构设计

    Design a data structure that supports the following two operations: void addWord(word) bool search(w ...

  8. [LeetCode] Two Sum III - Data structure design 两数之和之三 - 数据结构设计

    Design and implement a TwoSum class. It should support the following operations:add and find. add - ...

  9. Mesh Data Structure in OpenCascade

    Mesh Data Structure in OpenCascade eryar@163.com 摘要Abstract:本文对网格数据结构作简要介绍,并结合使用OpenCascade中的数据结构,将网 ...

随机推荐

  1. [kata] Playing with digits

    package kata_011; /** * Some numbers have funny properties. For example: * * 89 --> 8¹ + 9² = 89 ...

  2. NOI导刊2009 提高一

    zzh大佬给我说导刊的题全是普及难度,然而我..觉得有两道题是提高的 LocalMaxima 题目解析 对于\(i\)这个数,它要想成为LocalMaxima,比它大的要全部放到最后去,比它小的想怎么 ...

  3. python2.7安装第三方库错误:UnicodeDecodeError: 'ascii' codec can't decode byte 0xcb in position 0

    开发环境:win10, x64, pycharm社区版,python2.7.13 python2经常会遇见乱码的问题,并且一遇到中文就乱码.所以我们在安装的时候要注意,无论是解释器interpreto ...

  4. hdu 5683 zxa and xor 暴力

    zxa and xor Time Limit: 16000/8000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Pro ...

  5. codefroce385E矩阵快速幂

    状态变化  (x,y,dx,dy,i) 表示i时刻熊站在(x,y)处速度向量(dx,dy)下一个状态是 ( 2x+y+dx+i , x+2y+dy+i , x+y+dx , x+y+dy , i+1 ...

  6. Javascript设计模式笔记

    Javascript是越来越厉害了,一统前后端开发.于是最近把设计模式又看了一遍,顺便做了个笔记,以方便自己和他人共同学习. 笔记连载详见:http://www.meteorcn.net/wordpr ...

  7. 多个数值转QString

    int, float, double等数值类型转换为QString的方法 1. 用QTextStream QTextStream类可以用数据流的方式直接将任意多个数值.字符.字符串等传入QString ...

  8. 利用Pandoc将markdown文件转化为pdf

    利用Pandoc将markdown文件转化为pdf 准备工作 安装pandoc 安装MiKTeX 将markdown文件转换为pdf 准备工作 安装pandoc Windows下安装pandoc很容易 ...

  9. 在返回值拒绝——reference

    在上一篇博客中,我们介绍了简单地使用值传递带来的种种麻烦,相信有些朋友会一心一意将其斩草除根,但是当返回值也使用了引用的时候,麻烦就来了. 依然来个简答的例子 class Rational { pub ...

  10. Xilinx SDK使用教程

    本文参考 Xilinx SDK软件内置的教程,打开方法:打开SDK->Help->Cheet Sheets...->Xilinx SDK Tutorials,这里有6篇文档.本文详细 ...