码迷,mamicode.com
首页 > 2017年01月31日 > 全部分享
123. Best Time to Buy and Sell Stock III ~~
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:其他好文   时间:2017-01-31 10:36:08    阅读次数:178
I2C 上拉电阻选择计算公式
I2C接口上拉电阻的选择 - I2C接口上拉电阻的选择 1、I2C接口的输出端是漏极开路或集电极开路,所以必须在接口外接上拉。 2、上拉电阻的范围很宽,但也需要跟据功耗、信号上升时间等具体确定。 和速度应该没关系。主要是I2C是oc,所以需要。和驱动的从机个数(虽然从机个数不是由电阻决定的)有一定关 ...
分类:其他好文   时间:2017-01-31 10:35:49    阅读次数:256
LeetCode Max Consecutive Ones
原题链接在这里:https://leetcode.com/problems/max-consecutive-ones/ 题目: Given a binary array, find the maximum number of consecutive 1s in this array. Example ...
分类:其他好文   时间:2017-01-31 10:35:08    阅读次数:176
LeetCode "483. Smallest Good Base" !!
A more programming-like solution, is to hack the problem from simple: we try each possble base value, and see which 111..11 fits target number - using ...
分类:其他好文   时间:2017-01-31 10:32:45    阅读次数:226
贪心选择算法
顾名思义,贪心算法总是作出在当前看来最好的选择。也就是说贪心算法并不从整体最优考虑,它所作出的选择只是在某种意义上的局部最优选择。当然,希望贪心算法得到的最终结果也是整体最优的。虽然贪心算法不能对所有问题都得到整体最优解,但对许多问题它能产生整体最优解。如单源最短路经问题,最小生成树问题等。在一些情 ...
分类:编程语言   时间:2017-01-31 10:33:22    阅读次数:268
leetcode : Longest Substring Without Repeating Characters 解题报告
Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng ...
分类:其他好文   时间:2017-01-31 10:33:20    阅读次数:205
371. Sum of Two Integers
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example:Given a = 1 and b = 2, return 3. 此题讲解全部都在bit m ...
分类:其他好文   时间:2017-01-31 10:33:02    阅读次数:191
新年伊始——Day 10
昨天大概11个小时,7道DP题。 大过年的,洛谷两次打卡,大吉\(^o^)/~ 新的一年又开始了,我的OI之路又有了新的目标。 7个月前初学OI,在好奇中向着NOIP一等奖的目标奋进。 半年多了,原来那个省一只是OI进阶之路的敲门砖。 单单省选难度的算法与结构就不是NOIP所能企及的 省选按,对于更 ...
分类:其他好文   时间:2017-01-31 10:31:29    阅读次数:195
hibernate运行常见错误
错误一: Exception in thread "main" org.hibernate.MappingException: Could not determine type for: java.lang.Date, for columns: [org.hibernate.mapping.Colu ...
分类:Web程序   时间:2017-01-31 10:30:34    阅读次数:210
Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决
只需在maven的setting.xml文件上加入如下节点: setting.xml文件放在maven运行文件夹的conf文件夹下。 如果不想像上面增加额外的节点,可以通过以下的命令启动: ...
分类:其他好文   时间:2017-01-31 10:28:39    阅读次数:232
445. Add Two Numbers II
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:其他好文   时间:2017-01-31 10:29:09    阅读次数:226
BZOJ4714 : 旋转排列
对于每个$k$,问题等价于求有多少置换满足: 1.存在一个循环长度为$k$ 2.任意一个循环长度$\geq 2$ 枚举这种环的个数$t$: 设$g_t$表示至少有$kt$个人分成$t$个长度为$k$的循环的方案数,考虑枚举第一个人和哪些人分在了一起,同时有$(k-1)!$种可能的环,有$g_t=C( ...
分类:其他好文   时间:2017-01-31 10:29:32    阅读次数:357
个人常用的一些VisualStudio插件
Automatic Version 可以根据设定自动在编译时更新版本号的小插件 https://marketplace.visualstudio.com/items?itemName=PrecisionInfinity.AutomaticVersions GhostDoc 可以帮助生成注释的插件。个 ...
分类:其他好文   时间:2017-01-31 10:27:39    阅读次数:277
技术人员应对「考核」的一些思考
来这个公司实习已经半年多了,在年前经历了一次年终考核,最终对我的工作的评级是 C(及格-符合当前职位的工作),让我不禁思考自己在项目中的一些工作的问题,为什么我是C?是我做的不够好吗?或者说在哪里做的不够好? 从考核流程来看,基本上是 CTO 与 Team Leader 对团队成员的「年终总结与次年 ...
分类:其他好文   时间:2017-01-31 10:26:29    阅读次数:219
QQ空间如何设置被删除的好友不能访问空间
原来一直都很在乎。自己看着办。 经过简单的测试这种方法还是可以的啊,有问题到时候在说吧。理论上无论是否删除好友都可以限制对方访问空间。 旁边还有可以设置不能访问的名单(看仔细点-设置限制名单)。 ...
分类:其他好文   时间:2017-01-31 10:25:44    阅读次数:172
Spring-Boot:Profile简单示例
1. spring.profiles.active 指定使用的profile 2. Book为配置类, profile中的配置对Book类进行注入 3. @ConfigurationProperties(prefix = "book") 开启配置文件管理并用前缀为book的值进行注入 ...
分类:编程语言   时间:2017-01-31 10:25:46    阅读次数:223
原生拖拽,拖放事件(drag and drop)
原生拖拽,拖放事件(drag and drop) 拖拽,拖放事件可以通过拖拽实现数据传递,达到良好的交互效果,如:从操作系统拖拽文件实现文件选择,拖拽实现元素布局的修改. drag and drop事件流程 一个完整的drag and drop流程通常包含以下几个步骤: 拖拽事件 以下是拖拽产生的一 ...
分类:其他好文   时间:2017-01-31 10:23:14    阅读次数:273
316条   上一页 1 ... 14 15 16 17 18 19 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!