- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 309. Best Time to Buy and Sell Stock with Cooldown
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 complete as many transactions as you like (ie, buy one ...
2018-07-18 09:40:01 87
原创 307. Range Sum Query - Mutable
Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.The update(i, val) function modifies nums by updating the element at index i to val.Example:...
2018-07-17 16:13:43 106
原创 Java.sql.Blob、byte[]、InputStream三种类型的相互转换
最近碰到了Java.sql.Blob、byte[]、InputStream三种类型的相互转换的问题,这里总结一下:一、InputStream ---> BlobHibernate提供了一个API:Hibernate.createBlob(new FileInputStream(" image/file path "));二、Blob ---> InputStream...
2018-07-17 13:41:44 7138
原创 306. Additive Number
Additive number is a string whose digits can form additive sequence.A valid additive sequence should contain at least three numbers. Except for the first two numbers, each subsequent number in the s...
2018-07-17 10:46:40 99
骑士周游列国回溯递归解法
2017-04-05
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人