A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number ...
分类:
其他好文 时间:
2020-05-08 22:46:30
阅读次数:
65
跨域 广义上讲,跨域是指一个域下的文档或者脚本试图去请求访问另一个域下的资源(像我们直接通过代码使用http请求资源,或者是使用辅助工具(例如postman)是可以直接访问的,没有跨域的概念);而我们一般说的跨域是指浏览器同源策略限制。 同源策略/SOP(Same origin policy)是一种 ...
分类:
Web程序 时间:
2020-05-05 00:25:59
阅读次数:
97
When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in s ...
分类:
其他好文 时间:
2020-05-02 15:12:33
阅读次数:
56
什么是浏览器同源策略? 同源是指,域名,协议,端口号均相同,如图: 注意:localhost和127.0.0.1虽然都指向本机,但也是跨域. 浏览器同源策略(same-origin policy).简单的讲,同源策略就是浏览器为了保证用户安全,防止恶意的网站盗取数据,禁止不同域之间的JS进行交互.会 ...
分类:
其他好文 时间:
2020-04-30 12:02:06
阅读次数:
97
The complete explanation is that 1.0.x and 1.1.x do not have the same naming conventions for the generated libraries. OpenSSL 1.1.x has moved into wha ...
分类:
其他好文 时间:
2020-04-30 11:23:13
阅读次数:
98
uname命令 # uname --help Usage: uname [OPTION]... Print certain system information. With no OPTION, same as -s. -a, --all print all information, in the ...
分类:
系统相关 时间:
2020-04-29 12:35:15
阅读次数:
66
新建一个配置文件 准备好的配置文件 # Max number of retries on the same server (excluding the first try) jiangzh-client.ribbon.MaxAutoRetries=1 # Max number of next ser ...
分类:
其他好文 时间:
2020-04-26 01:24:19
阅读次数:
69
给定两个二叉树,编写一个函数来检验它们是否相同。 如果两个树在结构上相同,并且节点具有相同的值,则认为它们是相同的。 链接:https://leetcode-cn.com/problems/same-tree 1.递归法 class Solution { public: bool Judge(Tre ...
分类:
其他好文 时间:
2020-04-25 01:03:20
阅读次数:
56
Problem : 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 onl ...
分类:
其他好文 时间:
2020-04-20 12:00:41
阅读次数:
54
一个分布式系统最多只能同时满足一致性(Consistency)、可用性(Availability)和分区容错性(Partition tolerance)这三项中的两项。 Consistency 一致性是指 “all nodes see the same data at the same time.” ...
分类:
其他好文 时间:
2020-04-19 13:19:17
阅读次数:
70