12 2018 档案
摘要:On a table are N cards, with a positive integer printed on the front and back of each card (possibly different). We flip any number of cards, and afte
阅读全文
摘要:After install the Nginx on AWS instance, and visit your public ip address, you might see the following: This site can't be reached xxx.xxx.xx take too
阅读全文
摘要:Given a string S and a character C, return an array of integers representing the shortest distance from the character C in the string. Example 1: Inpu
阅读全文
摘要:Given a list of words, we may encode it by writing a reference string S and a list of indexes A. For example, if the list of words is ["time", "me", "
阅读全文
摘要:Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words. It is guaranteed there is at leas
阅读全文
摘要:使用MongoDB的时候,如果遇到下面这个错误: 一般来说是MongoDB数据库的Model没有链上,在YourScript.js的开头,一般下面几行不能少: 然后yourModel.js的内容可以为:
阅读全文
摘要:Go to Elastic Beanstalk -> Configuration -> Security -> Virtual machine permissions -> EC2 key pair. Choose your key pair. If you do not have one, The
阅读全文
摘要:当你想给微信公众号(不是测试账号)自定义菜单创建接口,遇到如下错误: 很可能的原因是你并没有自定义菜单接口的权限,去【开发】->【接口权限】 界面去查看“自定义菜单”的权限,如果显示 “未获得”,那么恭喜你,用不了。而显示的获得条件是【1】订阅号必须通过微信认证 【2】服务号自动获得。但是坑爹的是,
阅读全文