
算法
Terrances
Seek job opportunities
https://github.com/lizhimins
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
哈夫曼树模板
哈夫曼树模板 #include <iostream> #include <queue> #include <vector> #include <cstring> #include <algorithm> using namespace std; #define NULLCHAR '*' #define MAXBUFROW 1010 #d...原创 2018-11-07 19:54:28 · 378 阅读 · 0 评论 -
Python实现json转csv格式
利用Python实现json格式转换为csv文件格式 前言 本文是学校的课程设计,这里我没有用封装好的json库来实现,而是把读进来的文件当一个字符串来处理,核心函数其实是python的eval()类型转换函数。 什么是 JSON? 我们要考虑到json格式下key-value对的结构是无序的。JSON:JavaScript Object Notation(JavaScript 对象表示法),是存...原创 2019-01-06 16:45:20 · 10183 阅读 · 2 评论 -
最长非降子序列nlogn C++实现
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main() { int n, x; vector<int> v, vec; cin >> n; for (int i = 0; i &l...原创 2019-03-27 13:47:08 · 456 阅读 · 0 评论 -
LRU cache原理C++实现
#include <cstdio> #include <iostream> using namespace std; typedef struct Node { int num; struct Node *next; }*LinkList, *pNode; LinkList get_empty_list() { LinkList head = ...原创 2019-07-13 15:08:58 · 241 阅读 · 0 评论 -
操作系统资源预分配算法 银行家算法C++模拟
#include <cstdio> #include <iostream> using namespace std; typedef struct Node { int num; struct Node *next; }*LinkList, *pNode; LinkList get_empty_list() { LinkList head = ...原创 2019-07-13 15:12:18 · 1378 阅读 · 0 评论 -
2019.9.10 哔哩哔哩秋招笔试题解
2019.9.10 哔哩哔哩笔试题解 两个字符串最小匹配。 对N开方,然后枚举可行解,应该是判断有问题,有一个测试点一直过不去,不知道什么问题。 package com.bilibili; import java.util.Scanner; public class Main2 { public static void main(String[] args) { ...原创 2019-09-10 21:13:17 · 1259 阅读 · 0 评论