- 博客(3)
- 收藏
- 关注
原创 MAC下通过virtualbox安装windows的一些重要事项
电脑内存不够,虚拟老是装了卸,卸了装,很多小问题老是忘记,这里留个备份,也给大家提供个参考。 1、全屏问题 虚机刚装上去的时候是不能真正全屏的,实现方式: a、当虚拟机启动并进入系统以后,请保持这个虚拟机的窗口在最前端,然后点击屏幕顶部的 Devices 菜单栏。 b、接着请点击菜单栏中的 Insert Guest Additions CD image 一栏
2016-10-13 10:49:48
1454
原创 最大子序列和问题
问题描述:给定N个整数的序列{A1,A2,...An},求函数f(i,j)=max{0,sum(Ak)}的值。也就是求出最大子序列的和,不用求出最大子序列。 算法1: int MaxSubseqSum1( int A[], int N ) { int ThisSum, MaxSum = 0; int i, j, k; for(
2016-09-20 18:34:02
236
原创 LeetCode169. Majority Element(JAVA)
169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empt
2016-09-14 20:05:01
305
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人