• Stars
    star
    457
  • Rank 95,100 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

《剑指Offer》题目汇总&常考题总结(Python实现)

剑指Offer题目汇总

  • 配和牛客网在线OJ使用更佳 https://www.nowcoder.com/ta/coding-interviews
  • 题目前的序号为对应的原书第2版的面试题序号,当然对于第1版也可以找到对应题目
  • 备注中分为常考和关注两种,常考题表示这道题目在我和我身边的同学的面试经历中出现过若干次,关注题表示这道题目的思想和解法需要同学们学习和了解。重要程度常考>关注>无备注,当然这不是说无备注的题目一定不会考到,同学们有时间的话还是尽量看完~
题目 类别 备注
3.数组中重复的数字 Array 常考
4.二维数组中的查找 Array 常考
5.替换空格 String
6.从尾到头打印链表 Linked List
7.重建二叉树 Tree 关注
8.二叉树的下一个结点 Tree 关注
9.用两个栈实现队列 Stack,Queue 关注
9.两个队列实现栈 Stack,Queue 关注
10.斐波那契数列 Dynamic Programming,
10.跳台阶 Dynamic Programming,
10.变态跳台阶 Dynamic Programming,Math
10.矩形覆盖 Dynamic Programming,
11.旋转数组的最小数字 Binary Search, 常考
12.矩阵中的路径 BackTracking
13.机器人的运动范围 BackTracking 关注
14.剪绳子 Dynamic Programming
15.二进制中的1的个数 Bit Manipulation,
16.数值的整数次方 Math, 关注
17.打印从1到最大的n位数
18.O(1)时间删除链表节点 Linked List
18.删除链表中重复结点 Linked List 常考
19.正则表达式匹配 String
20.表示数值的字符串 String
21.调整数组顺序使奇数位于偶数前面 关注
22.链表中倒数第k个结点 Linked List 常考
23.链表中环的入口结点 Linked List 常考
24.反转链表 Linked List
25.合并两个排序的链表 Linked List
26.树的子结构 Tree 常考
27.二叉树的镜像 Tree
28.对称的二叉树 Tree
29.顺时针打印矩阵 Array
30.包含min函数的栈 Stack
31.栈的压入弹出序列 Stack 常考
32.从上往下打印二叉树 Tree 常考
32.按之字形顺序打印二叉树 Tree
32.把二叉树打印成多行 Tree
33.二叉搜索树的后序遍历序列 Tree 常考
34.二叉树中和为某一值的路径 Tree
35.复杂链表的复制 Linked List
36.二叉搜索树与双向链表 Linked List
37.序列化二叉树 Tree 关注
38.字符串的排列 String 关注
39.数组中出现次数超过一半的数字 Array 常考
40.最小的k个数 Heap
41.数据流中的中位数 常考
42.连续子数组最大和 Dynamic Programming
43.整数中1出现的次数 Bit Manipulation 关注
44.数字序列中某一位的数字 Math 关注
45.把数组排成最小的数 String
46.把数字翻译成字符串 String
47.礼物的最大价值 Dynamic Programming
48.最长不含重复字符的子字符串 Dynamic Programming 常考
49.丑数 Math
50.第一个只出现一次的字符
50.字符流中第一个不重复的字符
51.数组中的逆序对 Array 常考
52.两个链表的第一个公共结点 Linked List
53.数字在排序数组中出现的次数 Binary Search 常考
54.二叉搜索树中的第k个结点 Tree
55.二叉树的深度 Tree
55.平衡二叉树 Tree
56.数组中只出现一次的数字 Array
57.和为S的两个数字 Array
57.和为S的连续正数序列 Array 关注
58.翻转单词序列 String
58.左旋转字符串 String
59.滑动窗口的最大值 Queue 常考
60.n个骰子的点数
61.扑克牌顺子
62.孩子们的游戏 Math
63.股票的最大利润 Math
64.求1+2+3+...+n
65.不用加减乘除做加法 Bit Manipulation
66.构建乘积数组 Array
67.把字符串转成整数 Bit Manipulation 关注
68.树中两个节点的最低公共祖先 常考

More Repositories

1

DeepCTR

Easy-to-use,Modular and Extendible package of deep-learning based CTR models .
Python
7,504
star
2

GraphEmbedding

Implementation and experiments of graph embedding algorithms.
Python
3,660
star
3

DeepCTR-Torch

【PyTorch】Easy-to-use,Modular and Extendible package of deep-learning based CTR models.
Python
2,952
star
4

DeepMatch

A deep matching model library for recommendations & advertising. It's easy to train models and to export representation vectors which can be used for ANN search.
Python
2,207
star
5

AlgoNotes

【浅梦学习笔记】文章汇总:包含 排序&CXR预估,召回匹配,用户画像&特征工程,推荐搜索综合 计算广告,大数据,图算法,NLP&CV,求职面试 等内容
1,548
star
6

Coursera

Quiz & Assignment of Coursera
Jupyter Notebook
867
star
7

GraphNeuralNetwork

Implementation and experiments of graph neural netwokrs, like gcn,graphsage,gat,etc.
Python
781
star
8

DSIN

Code for the IJCAI'19 paper "Deep Session Interest Network for Click-Through Rate Prediction"
Python
431
star
9

Tencent_Social_Ads2017_Mobile_App_pCVR

Tencent Social Ads 2017 contest rank 20
Jupyter Notebook
157
star
10

Bytedance_ICME2019_challenge_baseline

Bytedance_ICME2019_challenge_baseline
Python
144
star
11

IJCAI_2018_Competition_baseline

IJCAI2018阿里妈妈搜索广告转化率预估baseline LB 0.0831
Python
88
star
12

ctrip14

科赛 携程出行产品未来14个月销量预测 第2名
Jupyter Notebook
62
star
13

ReinforcementLearning

This project contains several Deep Reinforcement Learning method and some experiments basd on OpenAi gym.
Python
19
star
14

Machine-Learning-in-Action

《机器学习实战》练习代码
Python
8
star
15

shenweichen

5
star
16

edX

edX Assignment
Jupyter Notebook
4
star
17

Book-information-management-system-based-on-OneThink

Book information management system based on OneThink
JavaScript
4
star
18

OpenGL-simulation-shortest-path-of-3D-space

OpenGL shortest path
C
3
star
19

StanfordOnline

StanfordOnline mooc
Jupyter Notebook
2
star