Note: This is an extension of House Robber. After robbing those houses on that street, the thief has found himself a new place for his thievery so tha ...
分类:
编程语言 时间:
2017-03-28 23:49:08
阅读次数:
269
在1.2.5以下版本的mybatis-spring一下配置可能会无法启动,但junit方式可以启动配置:<beanid="sqlSessionFactoryName"class="org.mybatis.spring.SqlSessionFactoryBean"><propertyname="dataSource"ref="dataSource"/><propertyname="configLocation"value="$..
分类:
移动开发 时间:
2017-03-23 15:16:25
阅读次数:
811
Given an array and a value, remove all instances of that value in place and return the new length. Do not allocate extra space for another array, you ...
分类:
其他好文 时间:
2017-03-13 10:16:44
阅读次数:
148
本周对链表操作进行了巩固 题目: Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the n ...
分类:
其他好文 时间:
2017-03-12 23:17:27
阅读次数:
206
Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new le ...
分类:
其他好文 时间:
2017-03-11 22:03:19
阅读次数:
158
题目链接: https://leetcode.com/problems/next-permutation/?tab=Description Problem :寻找给定int数组的下一个全排列(要求:be in-place) 倒序查找到该数组中第一个满足后面的数字大于前面的数字的下标i (当前下标 i ...
分类:
其他好文 时间:
2017-03-10 18:18:12
阅读次数:
104
题意: The main road in Bytecity is a straight line from south to north. Conveniently, there are coordinates measured in meters from the southernmost bui ...
分类:
其他好文 时间:
2017-03-07 20:43:26
阅读次数:
189
B. The Meeting Place Cannot Be Changed B. The Meeting Place Cannot Be Changed The main road in Bytecity is a straight line from south to north. Conven ...
分类:
其他好文 时间:
2017-03-07 08:10:12
阅读次数:
206
Codeforces #403 Div1.A~D(Div2.B~F)简要题解 [ Div2.B.The Meeting Place Cannot Be Changed | A.Andryusha and Colored Balloons | B.Innokenty and a Football L... ...
分类:
其他好文 时间:
2017-03-06 12:12:16
阅读次数:
262
题意: 一条线上有n个人,每个人一个坐标值xi,每个人有一个最大行走速度vi,问如果要让这n个人走到线上某一个点,最少需要多少时间。 分析: 看起来是二分, 二分坐标。 二分区间变化的条件,一开始感觉是比较当前mid坐标左右人们用最快速度到达的平均时间, 后来具体写的时候感觉是比较当前mid坐标左右 ...
分类:
其他好文 时间:
2017-03-06 00:51:12
阅读次数:
218