- 博客(63)
- 收藏
- 关注
原创 条件生成对抗网络(CGAN)
之前一直搞不清二者的区别,今天研究了一下,理解如下: (1)生成对抗网络–GAN 众所周知的生成对抗网络–GAN,由生成器和判别器构成,二者互相博弈,构成对抗。 损失函数为: (2)条件生成对抗网络–CGAN 在生成器和判别器的输入中都加入了标签,损失函数为: ...
2019-12-22 20:48:44
2377
2
转载 图像语义理解
1.没有图像的理解,就不要谈目标的检测、分类和识别。理解才是硬道理; 2.不在于图像理解模型是否与人类的认知过程一致,关键是要有效; 3.图像是最自然的自然语言,图像理解可以借鉴自然语言处理中的方法。 &...
2019-12-10 10:58:29
2448
原创 Leecode #33 Search in Rotated Sorted Array
一、 问题描述 Leecode第三十三题,题目为: Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). You are given a target va...
2019-09-20 10:29:46
294
转载 TCP的三次握手与四次挥手(详解+动图)
版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。 ...
2019-08-27 21:58:49
261
转载 哈希表(散列表)原理详解
什么是哈希表? 哈希表(Hash table,也叫散列表),是根据关键码值(Key value)而直接进行访问的数据结构。也就是说,它通过把关键码值映射到表中一个位置来访问记录,以加快查找的速度。这个映射函数叫做散列函数,存放记录的数组叫做散列表。 记录的存储位置=f(关键字) 这里的对应关系f称为散列函数,又称为哈希(Hash函数),采用散列技术将记录存储...
2019-08-23 08:39:35
222
转载 单向链表反转
今天遇到单向链表的反转的问题,于是静下心来好好想了一番。 解题思路如下图: 假设当前创建好的链表如下: 首先让头节点与第一个元素节...
2019-07-11 11:39:59
176
转载 LaTeX里处理不浮动的图形和表格的办法
众所周知,LaTeX里 面处理图形和表格的浮动体历来是最麻烦的问题之一,原因是即使使用了[h]选项,浮动体还是会乱跑,但如果去掉 \begin{figure} \end{figure} \begin{figure}\end{figure} 来一个裸的\includegraphics又不能结合\caption命令加标题。这个问题其实在著名的"LaTeX2e及常 用宏包使用指南"里的8.7节有介绍,但...
2019-07-11 10:23:26
4449
2
原创 Leecode #34 Find First and Last Position of Element in Sorted Array;(未完待续)
一、 问题描述 Leecode第三十一题,题目为: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers. If such arrangement is not possible, it must rearrange it...
2019-07-07 21:59:10
249
原创 Leecode #30 Substring with Concatenation of All Words
一、 问题描述 Leecode第三十题,题目为: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in ...
2019-07-07 15:06:38
157
原创 Leecode #29 Divide Two Integers
一、 问题描述 Leecode第二十九题,题目为: Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividing dividend by divisor. ...
2019-07-03 21:43:27
339
原创 Leecode #28 Implement strStr()
一、 问题描述 Leecode第二十八题,题目为: Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = “hello”, needle = “l...
2019-07-03 21:29:57
213
原创 Leecode #27 Remove Element
一、 问题描述 Leecode第二十七题,题目为: Given an array nums and a value val, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you must do this by...
2019-06-25 16:35:14
173
原创 Leecode #26 Reverse Nodes in k-Group
一、 问题描述 Leecode第二十六题,题目为: Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not allocate extra space for another array, yo...
2019-06-25 11:30:13
361
原创 Leecode #25 Reverse Nodes in k-Group
一、 问题描述 Leecode第二十五题,题目为: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. k is a positive integer and is less than or equal to the length of the linke...
2019-06-24 20:29:16
329
原创 Leecode #24 Swap Nodes in Pairs
一、 问题描述 Leecode第二十四题,题目为: Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list’s nodes, only nodes itself may be changed. Example: Given 1-...
2019-06-23 16:46:08
169
转载 Leecode #23 Merge k Sorted Lists
一、 问题描述 Leecode第二十三题,题目为: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Example: Input: [ 1->4->5, 1->3->4, 2->6 ] Output: 1->1-&...
2019-06-21 20:44:02
189
原创 Leecode #22 Generate Parentheses
一、 问题描述 Leecode第二十二题,题目为: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: [ “((()))”, “(()())”, “((...
2019-06-20 19:49:08
155
转载 递归思想
递归作为编程里最为重要的编程方法之一,其对于解决某些复杂的问题十分有效,并且相对于迭代,其过程在直观上更容易理解。而且不像迭代自己需要维护许多...
2019-06-18 21:32:27
223
转载 Leecode #21 Merge Two Sorted Lists
一、 问题描述 Leecode第二十一题,题目为: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: Input: 1->2->4, 1...
2019-06-18 21:23:48
150
转载 Leecode #20 Valid Parentheses
一、 问题描述 Leecode第二十题,题目为: Given a string containing just the characters ‘(’, ‘)’, ‘{’, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. An input string is valid if: Open brackets must be close...
2019-06-18 20:25:38
163
原创 Leecode #19 Remove Nth Node From End of List
一、 问题描述 Leecode第十九题,题目为: Given a linked list, remove the n-th node from the end of list and return its head. Example: Given linked list: 1->2->3->4->5, and n = 2. After removing the second...
2019-06-16 22:02:57
126
原创 Leecode #18 4Sum
一、 问题描述 Leecode第十八题,题目为: Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array w...
2019-06-16 21:44:46
186
原创 Leecode #17 Letter Combinations of a Phone Number
一、 问题描述 Leecode第十七题,题目为: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the t...
2019-06-13 15:41:35
208
原创 Leecode #16 3Sum Closest
一、 问题描述 Leecode第十六题,题目为: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the three integers. You may assu...
2019-06-13 14:58:54
140
原创 c++中的.length
L.length():返回L的长度属性,且返回值是一个整数。 举例说明: void ADD(sqList &L, Elemtype x){ int k=0; for(i=0;i<L.length;i++) if(L.datta[i]!=x){ L.data[k]=L.data[i]; k++; } L.length=k; } 其中L.length即为顺序表L的长度 。 ...
2019-06-04 16:23:20
11141
转载 Leecode #15 3Sum
一、 问题描述 Leecode第十五题,题目为: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. Note: The sol...
2019-06-04 10:48:19
112
转载 两步解决python调用Matlab的脚本和函数文件
博主欢迎转载,但请一定要给出原文链接,标注出处!!!谢谢~http://blog.youkuaiyun.com/sunny_xsc1994/article/details/79254196很早之前写了一篇《python调用matlab环境配置》有关通过mlab实现python调用matlab的配置,但是只在windows下成功了,在Linux下一直没成功,后来发现一个很简单的配置方法...
2019-06-02 18:08:24
578
3
原创 Leecode #14 Longest Common Prefix
一、 问题描述 Leecode第十四题,题目为: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string “”. Example 1: Input: [“flower”,“fl...
2019-05-27 16:23:47
127
原创 Leecode #13 Roman to Integer
一、 问题描述 Leecode第十三题,题目为: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C ...
2019-05-26 17:37:29
160
转载 软件测试的原则与步骤
原则 从用户出发: 通过测试过程充分暴露软件的bug,进而判定该产品是否合格。 从开发者出发: 通过测试证明软件达到了用户需求,确立用户对软件质量的信心。 注: 1.应当把“尽早和不断的测试”作为开发者的座右铭 2.程序员应该避免检查自己的程序,测试工作应该由独立的专业的软件测试机构来完 成。 3.设计测试用例时应该考虑到合法的输入和不合法的输入以及各种边界条件,特殊情况 下要制造极端状态和意外状...
2019-05-26 16:22:30
500
原创 Leecode #12 Integer to Roman
一、 问题描述 Leecode第十二题,题目为: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C ...
2019-05-15 09:50:43
146
转载 计算机组成原理
计算机概述 计算机的基本组成: 存储器: 实现记忆功能的部件用来存放计算程序及参与运算的各种数据 运算器: 负责数据的算术运算和逻辑运算即数据的加工处理 控制器: 负责对程序规定的控制信息进行分析,控制并协调输入,输出操作或内存访问 输入设备: 实现计算程序和原始数据的输入 输出设备: 实现计算结果输出 组成...
2019-05-14 16:13:24
462
原创 python和C++多线程的区别
今天面试被问到这个问题,没有回答上来,所以看了一下,现在认真回答这个问题。 百度百科: 进程:进程可以简单的理解为一个可以独立运行的程序单位。它是线程的集合,进程就是有一个或多个线程构成的,每一个线程都是进程中的一条执行路径。 线程:进程的一个实体,是CPU调度和分派的基本单位,他是比进程更小的能独立运行的基本单位,线程自己基本上不拥有系统资源。 一个线程只能属于一个进程,而一个进程可以有多个线程...
2019-05-14 16:03:41
1913
原创 Leecode #11 Container With Most Water
一、 问题描述 Leecode第十一题,题目为: Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, a...
2019-05-14 11:17:02
168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅