自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (3)
  • 问答 (3)
  • 收藏
  • 关注

原创 Mumbling

好久没写C语言了,太费劲了,哈哈哈哈 char *accum(const char *source) { if (*source=='\0') { return ""; } int size=0; const char *temp=source; //获得字符串大小 while(*temp++) { size++; } //分配内存 char *str=(ch...

2019-04-19 21:49:32 293

原创 Self Dividing Numbers

class Solution { public: bool DividingNumbers(int i) { int temp = i; if (i / 10 == 0 && i!=10) { return true; } else { int c; while (temp != 0) { c = temp % 10; if (...

2019-04-19 09:53:45 125

原创 DI String Match

class Solution { public: vector<int> diStringMatch(string S) { size_t size=S.length(); vector<int > A; //使用贪心策略 int d=size,in=0; ...

2019-04-18 09:15:12 132

转载 Hamming Distance

class Solution { public: int hammingDistance(int x, int y) { //首先进行异或操作,转成二进制,就是结果中1的个数,为汉明距离 int tmpInt=x^y; int dis=0; //判断是否为0 while(tmpInt) { //如果先右移再...

2019-04-17 12:47:41 135

原创 Sort Array By Parity

class Solution { public: vector<int> sortArrayByParity(vector<int>& A) { size_t size=A.size(); int i=0,j=size-1; int temp=0; while(i<j)...

2019-04-15 21:42:56 186

原创 N-Repeated Element in Size 2N Array

class Solution { public: int repeatedNTimes(vector<int>& A) { size_t size=A.size(); int i=0; int count=0; while (i<size) { if(i+1<size ...

2019-04-15 10:15:37 138

原创 唯一摩尔斯密码词

class Solution { public: int uniqueMorseRepresentations(vector<string>& words) { string label[26] = { ".-","-...","-.-.","-..",".", "..-.","--.","....","..",".---", "-.-","...

2019-04-12 18:22:00 148

原创 Remove Outermost Parentheses

class Solution { public: string removeOuterParentheses(string S) { string str = ""; //(()())(()) size_t size = S.length(); int i = 0; int tag = 0; int count = 0; while (i < size) ...

2019-04-12 10:57:08 232

原创 Valid Number

class Solution { public: bool isNumber2(string s, int i,size_t size,int tag) { if (s[i] <= '9' && s[i] >= '0') { while (i < size && s[i] <= '9' && s[i] &g...

2019-04-11 19:37:08 116

原创 翻转镜像

class Solution { public: vector<vector<int>> flipAndInvertImage(vector<vector<int>>& A) { size_t m = A.size(); size_t n = A[0].size(); int half = n / 2, temp = 0; ...

2019-04-10 19:20:53 2495

原创 宝石个数

class Solution { public: int numJewelsInStones(string J, string S) { //统计宝石个数 int count = 0; //获得字符串长度 int j_length = J.length(); int s_length = S.length(); int s = 0; while (s&lt...

2019-04-10 12:51:58 190

原创 有序数组的平方

仅仅记录下,自己写的过程,不是最好,仅供参考,哈哈哈 class Solution { public: vector<int> sortedSquares(vector<int>& A) { vector<int> B; vector<int> C; vector<int> D; size...

2019-04-10 00:01:28 146 1

原创 python 视频转图片保存(图形化界面)

import cv2 import sys import os import numpy as np from tkinter import * from tkinter.filedialog import * from tkinter import filedialog import threading class WidgetsDemo: def __init__(self): ...

2019-04-05 11:15:01 819 1

原创 python xml转voc格式(图形化操作)

#coding=utf-8 from tkinter import * from tkinter.filedialog import askdirectory from tkinter import * import os,shutil import xml.etree.ElementTree as ET import pickle import os import threading ...

2019-04-05 09:13:58 578

Reinforcement Learning An Introduction~Summary of Notation

强化学习导论符号摘要,大写字母表示随机变量,反之小写字母表示随机变量的值和标量函数的值。需要为实值向量的量以粗体和小写字母书写(即使是随机变量)。矩阵是粗体大写字母。

2018-11-15

mips指令cpu流水线vsd图

MIPS是世界上很流行的一种RISC处理器。MIPS的意思是“无内部互锁流水级的微处理器”(Microprocessor without interlocked piped stages),其机制是尽量利用软件办法避免流水线中的数据相关问题。这个文件就是mips指令cpu流水线vsd图。

2017-12-19

数据结构课程设计

数据结构课程设计,包含求字符串之间距离,后缀表达式计算,两个小游戏,二叉树结点染色问题,打印机任务队列,约瑟夫双向生死游戏,求解布尔表达式,谣言传播问题,分形问题,网络布线,数独游戏,中国邮路问题,最大匹配问题,最佳匹配问题,构造哈夫曼树(限选,解压缩软件(限选),小型文本编辑器,电梯模拟系统,决策树构造,关联规则求解,老鼠走迷宫,广义表实现,无向图的简单路径,工资管理系统,散列表的设计与实现,宿舍管理查询软件,最长公共子串,英文文章统计,本科生导师制问题,镜像树,堆栈应用,矩阵位置旋转,集合运算,保龄球计分,车位管理,学生成绩管理系统,英文单词填空游戏,城市管理,数字图像处理,三子棋游戏,模拟人工洗牌,英文单词查询系统,选择合适的存储结构表示二元多项式,并实现基本的加减运算,先中后序线索二叉树

2017-01-22

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除