- 博客(5)
- 收藏
- 关注
原创 LeetCode -- 2 3 4 Sum
1. Two Sum从一个array中找出Given nums = [2, 7, 11, 15], target = 9,Because nums[0] + nums[1] = 2 + 7 = 9,return [0, 1].class Solution { public int[] twoSum(int[] nums, int target) { HashM...
2019-08-31 05:18:15
91
原创 Usage of HashMap (Java)
// initialize a hashmapHashMap<Integer, Integer> map = new HashMap<>();// get the size();map.size();// add pairmap.add(1,2);// get elementget(Object key);getOrDefault(Object key, V...
2019-08-31 04:42:40
192
原创 pycharm 生成requirements.txt
在命令行中输入pip freeze>requirements.txt安装requirements文件中的包pip install -r requirements.txt
2019-06-05 11:13:45
7648
1
原创 tensorboard可视化的使用
在session中加入# Launch the graph in a session.sess = tf.Session()# Create a summary writer, add the 'graph' to the event file.writer = tf.summary.FileWriter(<some-directory>, sess.graph)运行完程序...
2019-06-04 11:29:29
108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人