摘要:
前言 之前把一些LeetCode里面的题目的思路写在了本子上,现在把这些全都放到博客上,以后翻阅比较方便。 题目 99.Recover Binary Search Tree 题意 Two elements of a binary search tree (BST) are swapped by mi 阅读全文
摘要:
前言 这道题的实现方法有很多,包括dp,贪心算法,二分搜索,普通实现等等。 题目 Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case 阅读全文
摘要:
简介 实现 整数版 c include include include include using namespace std; define MAXN 100 //最大变量数量 int arr[MAXN][MAXN]; //保存增广矩阵 int result[MAXN]; //保存方程的解 int 阅读全文