- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 module 'tensorflow.contrib.rnn' has no attribute 'core_run_cell' 'BasicLSTMCell'
module ‘tensorflow.contrib.rnn’ has no attribute ‘core_run_cell’tf.contrib.rnn.core_run_cell.BasicLSTMCell()直接改成tf.contrib.rnn.BasicLSTMCell()
2018-07-31 10:29:19 532
原创 LeetCode - 14: Longest Common Prefix
public String longestCommonPrefix(String[] strs) { if (strs.length == 0) return ""; String prefix = strs[0]; for (int i = 1; i < strs.length; i++) while (strs[i].indexOf(prefix...
2018-07-25 23:11:40 137
原创 Java学习笔记 - substring()
substring()substring() 方法返回字符串的子字符串。public String substring(int beginIndex)public String substring(int beginIndex, int endIndex)params:beginIndex -- 起始索引(包括)endIndex -- 结束索引(不包括)...
2018-07-25 23:07:18 179
原创 Java学习笔记 - indexOf()
indexOf()indexOf 方法返回一个整数值,指出 String 对象内子字符串的开始位置。如果没有找到子字符串,则返回-1。Java中字符串中子串的查找共有四种方法,如下: 1、int indexOf(String str) :返回第一次出现的指定子字符串在此字符串中的索引。 2、int indexOf(String str, int startIndex):从指定的索引处...
2018-07-25 23:03:16 232
原创 Anything to Learn
1: java、scala、python、sql 2:mysql、linux、hadoop、spark、tensorflow 3:meachine learning、data mining、deep learning、data structures and algorithms 4:kaggle、tianchi、jdata、datafountain、kesci...
2018-07-23 10:46:31 148
原创 LeetCode - 07: Reverse Integer
class Solution { public int reverse(int x) { long result = 0; for(; x != 0; x /= 10) { result = result * 10 + x % 10; } if (result > Integer.M...
2018-07-23 10:35:34 173
原创 LeetCode -09: Palindrome Number
class Solution { public boolean isPalindrome(int x) {// if (x < 0) return false;// int tempX = x;// int reverse = 0;// while (tempX > 0) {// ...
2018-07-23 10:34:49 154
原创 LeetCode -13: Roman to Integer
class Solution { public int romanToInt(String s) { Map<Character, Integer> map = new HashMap<>(); map.put('I', 1); map.put('V', 5); map.put('X', 10); ...
2018-07-23 10:33:08 140
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人