码迷,mamicode.com
首页 >  
搜索关键字:dup    ( 863个结果
DFS习题复习
DFS(深度优先搜索)解题思路:recursion的思想。(常见题型:当题目要求穷举所有可能性时,多用DFS),解题思路分两步: 1:考虑总共recursion有几层 2:考虑每一层recursion内有多少个case 1.All Subsets Given a set of characters ...
分类:其他好文   时间:2017-10-24 13:12:36    阅读次数:161
35. Search Insert Position
35. Search Insert Position Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would b ...
分类:其他好文   时间:2017-10-22 21:49:12    阅读次数:124
140. Word Break II
Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, add spaces in s to construct a sentence where each word is ...
分类:其他好文   时间:2017-10-22 01:30:38    阅读次数:130
剑指offer五十六之删除链表中重复的结点
一、题目 在一个排序的链表中,存在重复的结点,请删除该链表中重复的结点,重复的结点不保留,返回链表头指针。 例如,链表1->2->3->3->4->4->5 处理后为 1->2->5 二、思路 详见代码 三、代码 import java.util.ArrayList; public class So ...
分类:其他好文   时间:2017-10-20 20:14:18    阅读次数:189
MongoDB-Java的两个基本操作Upsert和insertMany
此文只是为了记录几个基本操作,首先Upsert,有多种方法可以进行,但是都需要指定UpdateOptions.upsert(true),其中最简单的办法如下(eqq是一个用来filter的BSON,具体用法请查看之前文章): 其次是InsertMany,在InsertMany中,如果出现dup-ke ...
分类:数据库   时间:2017-10-19 17:00:43    阅读次数:391
609. Find Duplicate File in System
Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of dup ...
分类:其他好文   时间:2017-10-18 16:09:50    阅读次数:201
287. Find the Duplicate Number
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:其他好文   时间:2017-10-16 17:57:33    阅读次数:157
第一行输入一个小写字符,然后显示对应的大写字符;第二行输入数字1—9,然后显示它的上一个数字。
STACK SEGMENT STACK DW 512 DUP(?) STACK ENDS DATA SEGMENT DATA ENDS CODE SEGMENT 'CODE' ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX MOV AH,1 I ...
分类:其他好文   时间:2017-10-16 00:17:09    阅读次数:203
显示9行字符串‘Hello’。
STACK SEGMENT STACK DW 512 DUP(?) STACK ENDS DATA SEGMENT STRING DB 'Hello',0DH,0AH,'$' DATA ENDS CODE SEGMENT 'CODE' ASSUME CS:CODE,DS:DATA,SS:STACK ...
分类:其他好文   时间:2017-10-16 00:11:26    阅读次数:120
npm install 出错
安装RoboWare-Viewer-Bridge $ git clone https://github.com/tonyrobotics/RoboWare-Viewer-Bridge.git $ cd RoboWare-Viewer-Bridge $ npm install > kerberos@0 ...
分类:其他好文   时间:2017-10-14 21:03:48    阅读次数:618
863条   上一页 1 ... 48 49 50 51 52 ... 87 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!