Robot | Path | Permission |
GoogleBot | / | ✔ |
BingBot | / | ✔ |
BaiduSpider | / | ✔ |
YandexBot | / | ✔ |
Title | Eree’s |
Description | leetcode-297. This is Eree’s |
Keywords | N/A |
WebSite | ereebay.me |
Host IP | 121.42.148.57 |
Location | China |
Site | Rank |
US$396,918
Last updated: 2022-11-01 09:50:19
ereebay.me has Semrush global rank of 26,666,239. ereebay.me has an estimated worth of US$ 396,918, based on its estimated Ads revenue. ereebay.me receives approximately 45,799 unique visitors each day. Its web server is located in China, with IP address 121.42.148.57. According to SiteAdvisor, ereebay.me is safe to visit. |
Purchase/Sale Value | US$396,918 |
Daily Ads Revenue | US$367 |
Monthly Ads Revenue | US$10,992 |
Yearly Ads Revenue | US$131,899 |
Daily Unique Visitors | 3,054 |
Note: All traffic and earnings values are estimates. |
Host | Type | TTL | Data |
ereebay.me. | A | 600 | IP: 121.42.148.57 |
ereebay.me. | NS | 86400 | NS Record: dns9.hichina.com. |
ereebay.me. | NS | 86400 | NS Record: dns10.hichina.com. |
ereebay.me. | MX | 600 | MX Record: 1 mx.zoho.com. |
ereebay.me. | MX | 600 | MX Record: 2 mx2.zoho.com. |
ereebay.me. | TXT | 3600 | TXT Record: v=spf1 include:zoho.com ~all |
Eree’s Blog English 首页 关于 标签 分类 归档 leetcode-297. 二叉树的序列化与反序列化 2020-11-08 | leetcode | 1.9k | 2 分钟 leetcode-297. 二叉树的序列化与反序列化 序列化是将一个数据结构或者对象转换为连续的比特位的操作,进而可以将转换后的数据存储在一个文件或者内存中,同时也可以通过网络传输到另一个计算机环境,采取相反方式重构得到原数据。 请设计一个算法来实现二叉树的序列化与反序列化。这里不限定你的序列 / 反序列化算法执行逻辑,你只需要保证一个二叉树可以被序列化为一个字符串并且将这个字符串反序列化为原始的树结构。 示例: 1 2 3 4 5 6 7 8 你可以将以下二叉树: 1 / \ 2 3 / \ 4 5 序列化为 "[1,2,3,null,null,4,5]" 思路: 用了简单的先序递归思路 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Codec: def serialize(self, root): """Encodes a tree to a single string. :type root: TreeNode :rtype: str """ ans = [] self.traverse(root, ans) output = ’’.join(ans) return output def traverse(self, root, ans): if not root: ans.append(’null’) ans.append(’,’) return |
HTTP/1.1 301 Moved Permanently Date: Sat, 26 Mar 2022 08:16:28 GMT Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33 Location: https://ereebay.me/ Content-Type: text/html; charset=iso-8859-1 HTTP/1.1 200 OK Date: Sat, 26 Mar 2022 08:16:31 GMT Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.0.33 Last-Modified: Sun, 09 Jan 2022 15:30:52 GMT ETag: "165c9-5d527e7c2759e" Accept-Ranges: bytes Content-Length: 91593 Content-Type: text/html; charset=UTF-8 |
Domain Name: EREEBAY.ME Registry Domain ID: D425500000000139687-AGRS Updated Date: 2020-04-14T03:57:54Z Creation Date: 2016-04-24T03:36:02Z Registry Expiry Date: 2022-04-24T03:36:02Z Registrar: HiChina Zhicheng Technology Ltd. Registrar IANA ID: 420 Registrar Abuse Contact Email: DomainAbuse@service.aliyun.com Registrar Abuse Contact Phone: +86.95187 Domain Status: ok https://icann.org/epp#ok Registrant Organization: Jia Xin Kang Registrant State/Province: Zhejiang Registrant Country: CN Name Server: DNS9.HICHINA.COM Name Server: DNS10.HICHINA.COM DNSSEC: unsigned >>> Last update of WHOIS database: 2022-03-26T09:09:37Z <<< |