-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathCodingInterviewsProgram.cs
83 lines (82 loc) · 7.76 KB
/
CodingInterviewsProgram.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
using System;
namespace Algorithm
{
/// <summary>
/// 剑指offer 模块
/// </summary>
class CodingInterviewsProgram
{
public static void Test()
{
// new Find.Solution().Test(); // 二维数组中的查找
// new ReplaceSpace.Solution().Test(); // 替换空格
// new PrintListFromTailToHead.Solution().Test(); // 从尾到头打印链表
// new ReConstructBinaryTree.Solution().Test(); // 重建二叉树
// new SimulateQueueWithStack.Solution().Test(); // 用两个栈实现队列
// new MinNumberInRotateArray.Solution().Test(); // 旋转数组的最小数字
// new Fibonacci.Solution().Test(); // 斐波那契数列
// new JumpFloor.Solution().Test(); // 跳台阶
// new JumpFloorII.Solution().Test(); // 变态跳台阶
// new RectCover.Solution().Test(); // 矩形覆盖
// new NumberOf1.Solution().Test(); // 二进制中1的个数
// new Power.Solution().Test(); // 数值的整数次方
// new ReOrderArray.Solution().Test(); // 调整数组顺序使奇数位于偶数前面
// new FindKthToTail.Solution().Test(); // 链表中倒数第k个结点
// new ReverseList.Solution().Test(); // 反转链表
// new Merge.Solution().Test(); // 合并两个排序的链表
// new HasSubtree.Solution().Test(); // 树的子结构
// new Mirror.Solution().Test(); // 二叉树的镜像
// new PrintMatrix.Solution().Test(); // 顺时针打印矩阵
// new StackWithMin.Solution().Test(); // 包含min函数的栈
// new IsPopOrder.Solution().Test(); // 栈的压入、弹出序列
// new PrintFromTopToBottom.Solution().Test(); // 从上往下打印二叉树
// new VerifySquenceOfBST.Solution().Test(); // 二叉搜索树的后序遍历序列
// new FindPath.Solution().Test(); // 二叉树中和为某一值的路径
// new RandomListNode.Solution().Test(); // 复杂链表的复制
// new Convert.Solution().Test(); // 二叉搜索树与双向链表
// new Permutation.Solution().Test(); // 字符串的排列
// new MoreThanHalfNum.Solution().Test(); // 数组中出现次数超过一半的数字
// new GetLeastNumbers.Solution().Test(); // 最小的K个数
// new FindGreatestSumOfSubArray.Solution().Test(); // 连续子数组的最大和
// new NumberOf1Between1AndN.Solution().Test(); // 整数中1出现的次数
// new PrintMinNumber.Solution().Test(); // 把数组排成最小的数
// new GetUglyNumber.Solution().Test(); // 丑数
// new FirstNotRepeatingChar.Solution().Test(); // 第一个只出现一次的字符
// new InversePairs.Solution().Test(); // 数组中的逆序对
// new FindFirstCommonNode.Solution().Test(); // 两个链表的第一个公共结点
// new GetNumberOfK.Solution().Test(); // 数字在排序数组中出现的次数
// new TreeDepth.Solution().Test(); // 二叉树的深度
// new IsBalanced.Solution().Test(); // 平衡二叉树
// new FindNumsAppearOnce.Solution().Test(); // 数组中只出现一次的数字
// new FindContinuousSequence.Solution().Test(); // 和为S的连续正数序列
// new FindNumbersWithSum.Solution().Test(); // 和为S的两个数字
// new LeftRotateString.Solution().Test(); // 左旋转字符串
// new ReverseSentence.Solution().Test(); // 翻转单词顺序列
// new IsContinuous.Solution().Test(); // 扑克牌顺子
// new LastRemaining.Solution().Test(); // 孩子们的游戏(圆圈中最后剩下的数)
// new Sum.Solution().Test(); // 求1+2+3+...+n
// new Add.Solution().Test(); // 不用加减乘除做加法
// new StrToInt.Solution().Test(); // 把字符串转换成整数
// new Duplicate.Solution().Test(); // 数组中重复的数字
// new Multiply.Solution().Test(); // 构建乘积数组
// new Match.Solution().Test(); // 正则表达式匹配
// new IsNumeric.Solution().Test(); // 表示数值的字符串
// new FirstAppearingOnce.Solution().Test(); // 字符流中第一个不重复的字符
// new EntryNodeOfLoop.Solution().Test(); // 链表中环的入口结点
// new DeleteDuplication.Solution().Test(); // 删除链表中重复的结点
// new GetNext.Solution().Test(); // 二叉树的下一个结点
// new IsSymmetrical.Solution().Test(); // 对称的二叉树
// new PrintTree.Solution().Test(); // 按之字形顺序打印二叉树
// new PrintTree2.Solution().Test(); // 把二叉树打印成多行
// new SerializeTree.Solution().Test(); // 序列化二叉树
// new KthNode.Solution().Test(); // 二叉搜索树的第k个结点
// new GetMedian.Solution().Test(); // 数据流中的中位数
// new MaxInWindows.Solution().Test(); // 滑动窗口的最大值
// new HasPath.Solution().Test(); // 矩阵中的路径
// new MovingCount.Solution().Test(); // 机器人的运动范围
// new CutRope.Solution().Test(); // 剪绳子
// new PrintNumbers.Solution().Test(); // 打印从1到最大的n位数
new DeleteNode.Solution().Test(); // 删除链表的节点
}
}
}