- 博客(26)
- 资源 (5)
- 收藏
- 关注
原创 Leetcode 811. Subdomain Visit Count(Java)
问题描述A website domain like “discuss.leetcode.com” consists of various subdomains. At the top level, we have “com”, at the next level, we have “leetcode.com”, and at the lowest level, “discuss.leetcod...
2018-04-03 21:39:12
720
转载 Ubuntu Truffle V3.2.1环境配置及合约部署基础
最近在安装Truffle环境方面遇到很多问题,找了很多技术博客,里面的方法都是一样的,不能解决问题,后来发现了一篇非常好的博客完美的解决了我遇到的所有问题,在这里贴出原帖的地址致敬 Ubuntu Truffle V3.2.1环境配置及合约部署基础 如有侵权请联系删除Truffle简介Truffle是针对基于以太坊的Solidity语言的一套开发框架,本身基于JavaScript。是...
2018-04-03 19:35:49
562
原创 Leetcode 766. Toeplitz Matrix (Java)
问题描述A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the matrix is Toeplitz. Example 1: Input:...
2018-04-01 23:46:43
453
原创 Leetcode 561. Array Partition I (Java)
问题描述Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), …, (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as ...
2018-03-31 00:09:34
445
原创 Leetcode 617. Merge Two Binary Trees.(Java)
问题描述Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are not.You need to merge them into a new binar...
2018-03-30 23:55:35
394
原创 Leetcode 806. Number of Lines To Write String (Java)
问题描述We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would cause the width of the line to exceed 100 uni...
2018-03-28 23:03:50
373
原创 Leetcode 771. Jewels and Stones (Java)
问题描述You’re given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in S is a type of stone you have. You want to know how many of t...
2018-03-28 21:26:37
475
原创 Leetcode 804.Unique Morse Code Words (Java)
问题描述:International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a"maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on
2018-03-28 20:35:16
715
原创 LeetCode 728. Self Dividing Numbers (Java)
解决方案:class Solution { public List<Integer> selfDividingNumbers(int left, int right) { List<Integer> result = new ArrayList() ; for (int i = left; i <= r...
2017-12-01 12:09:41
469
原创 Python_判断一定范围内的数据的素数
prime = []for num in range(2, 100) : for i in range(2, num) : if num % i == 0 : break else : prime.append(num)print(prime)运行结果:
2017-07-27 16:42:46
2594
原创 JavaScript_输出
JavaScript通过以下方法显示数据: - 使用 window.alert() 弹出警告框。 - 使用 document.write() 方法将内容写到 HTML 文档中。 - 使用 innerHTML 写入到 HTML 元素。 - 使用 console.log() 写入到浏览器的控制台。下面简单介绍使用方法: - 使用 window.alert() 弹出警告框<!DOCTYPE h
2017-07-07 16:36:02
324
原创 Python3 爬虫 1 - 下载网页
爬虫的第一步需要将网页下载下来,下面介绍下载网页内容的方法。download函数import urllib.request ## Python2与Python3的区别def download(url): req = urllib.request.Request(url) response = urllib.request.urlopen(req) return response
2017-06-29 15:45:33
1219
转载 Python 正则表达式
Python正则表达式指南,转自 http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html
2017-06-13 12:36:52
243
原创 《用Python写网络爬虫》示例网站访问不了导致的系列问题解决办法
由于这个示例网站现在打开不成功,导致书中的例子的具体实现遇到一些问题,在这里我根据我自己的学习进度与能力尽量解决我遇到的问题,在这里分享给需要的朋友,本博客持续更新http://blog.youkuaiyun.com/dzkqstranger/article/details/72764946 首先解决访问网站的问题1.4.2节访问的sitemap.xml网站的地址为:http://127.0.0.1:800
2017-05-27 17:44:50
1978
原创 Notepad++写html中文乱码问题
今天发现使用notepad++写完HTML代码在浏览器中打开时中文显示的是乱码,现在找到解决办法分享给需要的朋友,希望对你们有所帮助。系统:WIN10 notepad++版本:v7.4.1 (64bits) 解决方法:点击notepad++中的“编码”,将其修改为“以UTF-8格式编码”
2017-05-26 21:32:14
2773
原创 解决《用Python写网络爬虫》中示例网站访问不了的问题
《用Python写网络爬虫》示例网站http://example.webscraping.com访问不了的解决方法
2017-05-26 11:27:12
3294
原创 Win10下使用Python自带的IDLE默认打开.py文件
本篇文章介绍如何在windows操作系统下默认使用python自带的IDLE编辑器打开后缀名为.py的文件。
2017-05-25 00:33:33
24420
8
beiyou Java作业 -4
2017-11-29
beiyou Java作业 -3
2017-11-13
beiyou Java作业 -2
2017-11-13
beiyou Java作业 -1
2017-11-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人