{"id":124,"date":"2022-02-26T14:14:00","date_gmt":"2022-02-26T14:14:00","guid":{"rendered":"https:\/\/imwarming.com\/?p=124"},"modified":"2022-05-03T23:45:07","modified_gmt":"2022-05-03T15:45:07","slug":"%e6%95%b4%e5%90%88%e6%b3%a8%e6%84%8f%e7%82%b9","status":"publish","type":"post","link":"https:\/\/imwarming.com\/?p=124","title":{"rendered":"\u6574\u5408\u6ce8\u610f\u70b9"},"content":{"rendered":"<h1><span style=\"font-size: 15px; font-family: 'microsoft yahei';\">\u6162\u6162\u628a\u4e00\u4e9b\u8981\u8001\u5fd8\u8bb0\u4f46\u662f\u5f88\u6709\u7528\u7684\u4e00\u4e9b\u4e1c\u897f\u653e\u8fd9\u91cc<\/span><\/h1>\n<p><span style=\"font-family: 'microsoft yahei';\">1\u3001lower_bound\u662f\u627e\u7b2c\u4e00\u4e2a\u5927\u4e8e\u7b49\u4e8e\u7684\u6570<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">2\u3001upper_bound\u662f\u627e\u7b2c\u4e00\u4e2a\u5927\u4e8e\u7684\u6570<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">3\u3001stringstream ssin(str) \u4e3a\u8bfb\u53d6str\u4e2d\u7684\u5355\u5b57\uff0c\u6bd4\u5982hello world ,\u5c31\u4f1a\u8bfb\u53d6hello\u548cworld<\/span><\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">while (ssin &gt;&gt; str) v.push_back(str); v\u91cc\u5c31\u662f\u5404\u4e2a\u5355\u5b57<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">4\u3001\u628astring s \u8f6c\u5927\u5c0f\u5199<\/span><\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">transform(s.begin(), s.end(), s.begin(), ::tolower);<\/span><\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">transform(s.begin(), s.end(), s.begin(), ::toupper);<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">5\u3001string \u7528 int m = s.find(t), \u5224\u65ad\u662f p != string::npos \u6216\u8005&nbsp;p != -1<\/span><\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">vector \u662fvector&lt;int&gt;::iterator it; it = find(v.begin(), v.end(), x), \u5224\u65ad\u662f it != v.end(), \u8981\u5f97\u4f4d\u7f6e\u4e3a int m = it &#8211; v.begin();<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">6\u3001\u540e\u7f00\u8f6c\u4e2d\u7f00\uff1a\u540e\u7f00\u6ca1\u62ec\u53f7\uff0c\u4f46\u662f\u8f6c\u4e2d\u7f00\u53ef\u4ee5\u52a0\u62ec\u53f7<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">7\u3001\u627e\u8fde\u901a\u56fe\u4e24\u70b9\u7684\u6700\u957f\u8ddd\u79bb\uff1a<\/span><\/p>\n<p><span style=\"font-family: 'microsoft yahei';\">\u3000\u3000<\/span>\u53ef\u4ee5\u5148dfs\u5176\u4e2d\u4e00\u4e2a\u70b9\uff0c\u627e\u5230\u6700\u957f\u8ddd\u79bb\u7684\u70b9\uff0c\u518ddfs\u8fd9\u4e2a\u6700\u957f\u8ddd\u79bb\u7684\u70b9\u540e\uff0c\u518d\u627e\u7684\u6700\u957f\u8ddd\u79bb\u5c31\u662f\u6574\u4e2a\u56fe\u7684\u6700\u957f\u8ddd\u79bb\uff0c<\/p>\n<p>\u4e5f\u53ef\u4ee5bfs<\/p>\n<p>&nbsp;<\/p>\n<p>8\u3001\u9006\u5e8f\u5bf9\u7684\u6570\u91cf\uff1a<\/p>\n<p>\u5229\u7528\u5f52\u5e76\u6392\u5e8f\u64cd\u4f5c<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #0000ff;\">void<\/span> merge_sort(<span style=\"color: #0000ff;\">int<\/span> q[], <span style=\"color: #0000ff;\">int<\/span> l, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> r)\n{\n    <\/span><span style=\"color: #0000ff;\">if<\/span> (l &gt;= r) <span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">int<\/span> mid = l + r &gt;&gt; <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n    merge_sort(q, l, mid), merge_sort(q, mid <\/span>+ <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">, r);\n    <\/span><span style=\"color: #0000ff;\">int<\/span> i = l, j = mid + <span style=\"color: #800080;\">1<\/span>,k = <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;\n\n    <\/span><span style=\"color: #0000ff;\">while<\/span> (i &lt;= mid &amp;&amp; j &lt;= r)<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5408\u5e76\u64cd\u4f5c\uff0c\u5de6\u53f3\u4e24\u8fb9\u5df2\u7ecf\u6392\u597d\u5e8f<\/span>\n<span style=\"color: #000000;\">    {\n        <\/span><span style=\"color: #0000ff;\">if<\/span> (q[i] &lt;=<span style=\"color: #000000;\"> q[j])\n        {\n            cmp[k <\/span>++] = q[i ++<span style=\"color: #000000;\">];\n        }\n        <\/span><span style=\"color: #0000ff;\">else<\/span><span style=\"color: #000000;\">\n        {\n            res <\/span>+= mid - i + <span style=\"color: #800080;\">1<\/span>;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5f53\u5de6\u8fb9\u6709\u4e2a\u6570\u4e0b\u6807i\u6bd4\u53f3\u8fb9\u7684\u4e00\u4e2a\u6570\u5927\uff0c\u90a3\u6709mid - i + 1\u4e2a\u9006\u5e8f\u5bf9<\/span>\n            cmp[k ++] = q[j ++<span style=\"color: #000000;\">];\n        }\n    }\n\n    <\/span><span style=\"color: #0000ff;\">while<\/span> (i &lt;= mid) cmp[k ++] = q[i ++<span style=\"color: #000000;\">];\n    <\/span><span style=\"color: #0000ff;\">while<\/span> (j &lt;= r) cmp[k ++] = q[j ++<span style=\"color: #000000;\">];\n\n    <\/span><span style=\"color: #0000ff;\">for<\/span> (<span style=\"color: #0000ff;\">int<\/span> i = l, j = <span style=\"color: #800080;\">0<\/span>; i &lt;= r; i ++, j ++) q[i] =<span style=\"color: #000000;\"> cmp[j];\n}<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>9\u3001\u7ed3\u6784\u4f53\u5185\u91cd\u8f7d<\/p>\n<p>\u6ce8\u610f\u662f d &lt; x.d<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #0000ff;\">struct<\/span><span style=\"color: #000000;\"> node {  \n    <\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> d, e;  \n    <\/span><span style=\"color: #0000ff;\">bool<\/span> <span style=\"color: #0000ff;\">operator<\/span> &lt; (<span style=\"color: #0000ff;\">const<\/span> node x) <span style=\"color: #0000ff;\">const<\/span><span style=\"color: #000000;\"> {  \n        <\/span><span style=\"color: #0000ff;\">return<\/span> d &lt; x.d;      <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u4ece\u5c0f\u5230\u5927\u6392\u5e8f<\/span>\n<span style=\"color: #000000;\">    }   \n}; <\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>10\u3001\u5224\u65ad\u95f0\u5e73\u5e74<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #0000ff;\">int<\/span> leaf = year % <span style=\"color: #800080;\">100<\/span> &amp;&amp; year % <span style=\"color: #800080;\">4<\/span> == <span style=\"color: #800080;\">0<\/span> || year % <span style=\"color: #800080;\">400<\/span> == <span style=\"color: #800080;\">0<\/span>;<\/pre>\n<\/div>\n<p>leaf = 1 \u5c31\u662f2 \u6708 29\u5929\u7684\u90a3\u4e2a\u5e74\uff0c\u4e5f\u5c31\u662f\u95f0\u5e74<\/p>\n<p>&nbsp;<\/p>\n<p>11\u3001\u4e0a\u4e0b\u53d6\u6574<\/p>\n<p>a \/ b \u7684\u4e0a\u53d6\u6574\u5c31\u662f (a + b &#8211; 1) \/ b \u7684\u4e0b\u53d6\u6574, a \/ b \u7684\u4e0b\u53d6\u6574\u5c31\u662fa \/&nbsp; b.<\/p>\n<div class=\"bv-shadow-dom bv-shadow-dom-fade_out\">&nbsp;<\/div>\n<div class=\"bv-shadow-dom bv-shadow-dom-fade_out\">12\u3001\u5224\u65ad\u6570\u5b57\u56de\u6587<\/div>\n<div class=\"bv-shadow-dom bv-shadow-dom-fade_out\">\u6bd4\u59828\u4e2a\u6570\u5b57\u7684\uff0c\u53ea\u8981\u5224\u65ad\u524d4\u4e2a\u5c31ok\u4e86<\/div>\n<div class=\"bv-shadow-dom bv-shadow-dom-fade_out\">\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #0000ff;\">for<\/span>(<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">1000<\/span>; i &lt; <span style=\"color: #800080;\">10000<\/span>; i ++<span style=\"color: #000000;\"> ){\n        <\/span><span style=\"color: #0000ff;\">int<\/span> r = i, x =<span style=\"color: #000000;\"> i;\n        <\/span><span style=\"color: #0000ff;\">for<\/span>(<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">0<\/span>; i &lt; <span style=\"color: #800080;\">4<\/span>; i ++<span style=\"color: #000000;\"> )\n        r <\/span>= r * <span style=\"color: #800080;\">10<\/span> + x % <span style=\"color: #800080;\">10<\/span>, x \/= <span style=\"color: #800080;\">10<\/span><span style=\"color: #000000;\">;\n}<\/span><\/pre>\n<\/div>\n<p>r \u5c31\u662f\u5b83\u7684\u56de\u6587\uff0c\u5947\u6570\u4e2a\u7684\u8bddeg 9\u53d6\u5de64\u75314\u4e2a.<\/p>\n<p>&nbsp;<\/p>\n<p>13\u3001\u4e8c\u5206\u6a21\u677f<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6d6e\u70b9\u6570\u4e8c\u5206<\/span>\n<span style=\"color: #0000ff;\">double<\/span> search_0(<span style=\"color: #0000ff;\">int<\/span> l, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> r){\n    <\/span><span style=\"color: #0000ff;\">while<\/span>(r - l &gt; int_min){<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">int_min\u6839\u636e\u5c0f\u6570\u70b9\u4f4d\u6570\u5b9a\uff0ceg.\u5c0f\u6570\u70b93\u4f4d\uff0cint_min = 1e-4<\/span>\n        <span style=\"color: #0000ff;\">double<\/span> mid = (l + r) \/ <span style=\"color: #800080;\">2<\/span><span style=\"color: #000000;\">;\n        <\/span><span style=\"color: #0000ff;\">if<\/span>(mid * mid * mid &gt;= n)r =<span style=\"color: #000000;\"> mid;\n        <\/span><span style=\"color: #0000ff;\">else<\/span> l =<span style=\"color: #000000;\"> mid;\n    }\n    <\/span><span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\"> l;\n}\n\n<\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u6574\u6570\u4e8c\u5206<\/span>\n<span style=\"color: #0000ff;\">int<\/span> search_1(<span style=\"color: #0000ff;\">int<\/span> l, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> r){\n    <\/span><span style=\"color: #0000ff;\">while<\/span>(l &lt;<span style=\"color: #000000;\"> r){\n        <\/span><span style=\"color: #0000ff;\">int<\/span> mid = l + r &gt;&gt; <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n        <\/span><span style=\"color: #0000ff;\">if<\/span>(array[mid] &gt;= find_num)r =<span style=\"color: #000000;\"> mid;  \n        <\/span><span style=\"color: #0000ff;\">else<\/span> l = mid + <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n    }\n    <\/span><span style=\"color: #0000ff;\">return<\/span> r;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">return l;\u6b64\u65f6l == r,\u4e3a\u6700\u5de6\u8fb9\u7684find_num\u4e0b\u6807<\/span>\n<span style=\"color: #000000;\">}\n\n<\/span><span style=\"color: #0000ff;\">int<\/span> search_2(<span style=\"color: #0000ff;\">int<\/span> l, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> r){\n    <\/span><span style=\"color: #0000ff;\">while<\/span>(l &lt;<span style=\"color: #000000;\"> r){\n        <\/span><span style=\"color: #0000ff;\">int<\/span> mid = l + r + <span style=\"color: #800080;\">1<\/span> &gt;&gt; <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n        <\/span><span style=\"color: #0000ff;\">if<\/span>(array[mid] &lt;= find_num)l =<span style=\"color: #000000;\"> mid;\n        <\/span><span style=\"color: #0000ff;\">else<\/span> r = mid - <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">;\n    }\n    <\/span><span style=\"color: #0000ff;\">return<\/span> l;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">return r;\u6b64\u65f6l == r,\u4e3a\u6700\u53f3\u8fb9\u7684find_num\u4e0b\u6807<\/span>\n}<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>14\u3001\u8001\u4f1a\u5fd8\u7684\u4e8c\u53c9\u6811\u904d\u5386\u5efa\u6811\u8f93\u51fa<\/p>\n<p>\u524d\u4e2d\u8f93\u51fa\u540e<\/p>\n<div class=\"cnblogs_code\">\n<pre>#include&lt;iostream&gt;  \n<span style=\"color: #0000ff;\">using<\/span> <span style=\"color: #0000ff;\">namespace<\/span><span style=\"color: #000000;\"> std;  \n<\/span><span style=\"color: #0000ff;\">int<\/span> pre[] = {<span style=\"color: #800080;\">1<\/span>, <span style=\"color: #800080;\">2<\/span>, <span style=\"color: #800080;\">3<\/span>, <span style=\"color: #800080;\">4<\/span>, <span style=\"color: #800080;\">5<\/span>, <span style=\"color: #800080;\">6<\/span><span style=\"color: #000000;\">};  \n<\/span><span style=\"color: #0000ff;\">int<\/span> mid[] = {<span style=\"color: #800080;\">3<\/span>, <span style=\"color: #800080;\">2<\/span>, <span style=\"color: #800080;\">4<\/span>, <span style=\"color: #800080;\">1<\/span>, <span style=\"color: #800080;\">6<\/span>, <span style=\"color: #800080;\">5<\/span><span style=\"color: #000000;\">};  \n<\/span><span style=\"color: #0000ff;\">void<\/span> post(<span style=\"color: #0000ff;\">int<\/span> root, <span style=\"color: #0000ff;\">int<\/span> start, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> end) \n{  \n    <\/span><span style=\"color: #0000ff;\">if<\/span>(start &gt;<span style=\"color: #000000;\"> end)   \n        <\/span><span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\"> ;  \n    <\/span><span style=\"color: #0000ff;\">int<\/span> i =<span style=\"color: #000000;\"> start;  \n    <\/span><span style=\"color: #0000ff;\">while<\/span>(i &lt; end &amp;&amp; mid[i] != pre[root]) i++;  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5b9a\u4f4d\u6839\u5728\u4e2d\u5e8f\u7684\u4f4d\u7f6e<\/span>\n    post(root + <span style=\"color: #800080;\">1<\/span>, start, i - <span style=\"color: #800080;\">1<\/span>);  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u9012\u5f52\u5904\u7406\u5de6\u5b50\u6811<\/span>\n    post(root + <span style=\"color: #800080;\">1<\/span> + i - start, i + <span style=\"color: #800080;\">1<\/span>, end);  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u9012\u5f52\u5904\u7406\u53f3\u5b50\u6811\n    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">cout&lt;&lt;pre[root];  <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u8bbf\u95ee\u5f53\u524d\u6811\u7684\u6839<\/span>\n    cout&lt;&lt;<span style=\"color: #000000;\">mid[i];\n}  \n\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> main() \n{  \n    post(<\/span><span style=\"color: #800080;\">0<\/span>, <span style=\"color: #800080;\">0<\/span>, <span style=\"color: #800080;\">5<\/span><span style=\"color: #000000;\">);  \n    <\/span><span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;  \n} <\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u540e\u4e2d\u8f93\u51fa\u524d<\/p>\n<div class=\"cnblogs_code\">\n<pre>#include&lt;iostream&gt;  \n<span style=\"color: #0000ff;\">using<\/span> <span style=\"color: #0000ff;\">namespace<\/span><span style=\"color: #000000;\"> std;  \n<\/span><span style=\"color: #0000ff;\">int<\/span> post[] = {<span style=\"color: #800080;\">3<\/span>, <span style=\"color: #800080;\">4<\/span>, <span style=\"color: #800080;\">2<\/span>, <span style=\"color: #800080;\">6<\/span>, <span style=\"color: #800080;\">5<\/span>, <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">};  \n<\/span><span style=\"color: #0000ff;\">int<\/span> mid[] = {<span style=\"color: #800080;\">3<\/span>, <span style=\"color: #800080;\">2<\/span>, <span style=\"color: #800080;\">4<\/span>, <span style=\"color: #800080;\">1<\/span>, <span style=\"color: #800080;\">6<\/span>, <span style=\"color: #800080;\">5<\/span><span style=\"color: #000000;\">};  \n<\/span><span style=\"color: #0000ff;\">void<\/span> pre(<span style=\"color: #0000ff;\">int<\/span> root, <span style=\"color: #0000ff;\">int<\/span> start, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> end) \n{  \n    <\/span><span style=\"color: #0000ff;\">if<\/span>(start &gt;<span style=\"color: #000000;\"> end)   \n        <\/span><span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\"> ;  \n    <\/span><span style=\"color: #0000ff;\">int<\/span> i =<span style=\"color: #000000;\"> start;  \n    <\/span><span style=\"color: #0000ff;\">while<\/span>(i &lt; end &amp;&amp; mid[i] != post[root]) i++;  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5b9a\u4f4d\u6839\u5728\u4e2d\u5e8f\u7684\u4f4d\u7f6e<\/span>\n    cout&lt;&lt;mid[i];  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u8bbf\u95ee\u5f53\u524d\u5904\u7406\u7684\u6811\u7684\u6839<\/span>\n    pre(root-<span style=\"color: #800080;\">1<\/span>-(end-i), start, i - <span style=\"color: #800080;\">1<\/span>);  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u9012\u5f52\u5904\u7406\u5de6\u5b50\u6811<\/span>\n    pre(root-<span style=\"color: #800080;\">1<\/span>, i + <span style=\"color: #800080;\">1<\/span>, end);  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u9012\u5f52\u5904\u7406\u53f3\u5b50\u6811  <\/span>\n<span style=\"color: #000000;\">}  \n\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> main()\n {  \n    pre(<\/span><span style=\"color: #800080;\">5<\/span>, <span style=\"color: #800080;\">0<\/span>, <span style=\"color: #800080;\">5<\/span><span style=\"color: #000000;\">);  \n    <\/span><span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #800080;\">0<\/span><span style=\"color: #000000;\">;  \n}<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u5148\u4e2d\u5e8f\u5efa\u6811<\/p>\n<div class=\"cnblogs_code\">\n<pre>treenode reconstructbinarytree(<span style=\"color: #0000ff;\">int<\/span>[] pre, <span style=\"color: #0000ff;\">int<\/span> prestart, <span style=\"color: #0000ff;\">int<\/span> preend, <span style=\"color: #0000ff;\">int<\/span>[] <span style=\"color: #0000ff;\">in<\/span>, <span style=\"color: #0000ff;\">int<\/span> instart, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> inend) {\n    <\/span><span style=\"color: #0000ff;\">if<\/span> (prestart &gt; preend || instart &gt; inend) { <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5230\u8fbe\u8fb9\u754c\u6761\u4ef6\u65f6\u8fd4\u56denull<\/span>\n        <span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #0000ff;\">null<\/span><span style=\"color: #000000;\">;\n    }\n    treenode treenode <\/span>= <span style=\"color: #0000ff;\">new<\/span> treenode(pre[prestart]);   <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u65b0\u5efa\u4e00\u4e2atreenode<\/span>\n\n    <span style=\"color: #0000ff;\">for<\/span> (<span style=\"color: #0000ff;\">int<\/span> i = instart; i &lt;= inend; i++<span style=\"color: #000000;\">) {\n        <\/span><span style=\"color: #0000ff;\">if<\/span> (<span style=\"color: #0000ff;\">in<\/span>[i] == pre[prestart]) {    <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5728\u4e2d\u5e8f\u4e2d\u627e\u5230\u6839\u8282\u70b9\u7684\u4f4d\u7f6e\uff0c\u3010\u4f9d\u6b21\u3011\u5c06\u5148\u5e8f\u5e8f\u5217\u548c\u4e2d\u5e8f\u5e8f\u5217\u5206\u6210\u5de6\u53f3\u5b57\u6811\uff0c\u5206\u522b\u6784\u5efa\u5de6\u53f3\u5b50\u6811\u3002\n            <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u91cd\u6784\u5de6\u5b50\u6811\uff0c\u6ce8\u610f\u8fb9\u754c\u6761\u4ef6<\/span>\n            treenode.left = reconstructbinarytree(pre, prestart + <span style=\"color: #800080;\">1<\/span>, prestart + i - instart, <span style=\"color: #0000ff;\">in<\/span>, instart, i - <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n            <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\"> \u91cd\u6784\u53f3\u5b50\u6811\uff0c\u6ce8\u610f\u8fb9\u754c\u6761\u4ef6<\/span>\n            treenode.right = reconstructbinarytree(pre, prestart + i - instart + <span style=\"color: #800080;\">1<\/span>, preend, <span style=\"color: #0000ff;\">in<\/span>, i + <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">, inend);\n        }\n    }\n    <\/span><span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\"> treenode;\n}<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u540e\u4e2d\u5e8f\u5efa\u6811<\/p>\n<div class=\"cnblogs_code\">\n<pre>treenode reconstructbinarytree2(<span style=\"color: #0000ff;\">int<\/span>[] <span style=\"color: #0000ff;\">in<\/span>, <span style=\"color: #0000ff;\">int<\/span> instart, <span style=\"color: #0000ff;\">int<\/span> inend, <span style=\"color: #0000ff;\">int<\/span>[] last, <span style=\"color: #0000ff;\">int<\/span> laststart, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> lastend) {\n    <\/span><span style=\"color: #0000ff;\">if<\/span> (instart &gt; inend || laststart &gt;<span style=\"color: #000000;\"> lastend)\n        <\/span><span style=\"color: #0000ff;\">return<\/span> <span style=\"color: #0000ff;\">null<\/span><span style=\"color: #000000;\">;\n    treenode treenode <\/span>= <span style=\"color: #0000ff;\">new<\/span><span style=\"color: #000000;\"> treenode(last[lastend]);\n    <\/span><span style=\"color: #0000ff;\">for<\/span> (<span style=\"color: #0000ff;\">int<\/span> i = instart; i &lt;= inend; i++<span style=\"color: #000000;\">) {\n        <\/span><span style=\"color: #0000ff;\">if<\/span> (<span style=\"color: #0000ff;\">in<\/span>[i] ==<span style=\"color: #000000;\"> last[lastend]) {\n            treenode.left <\/span>= reconstructbinarytree2(<span style=\"color: #0000ff;\">in<\/span>, instart, i - <span style=\"color: #800080;\">1<\/span>, last, laststart, laststart + i - instart - <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n            treenode.right <\/span>= reconstructbinarytree2(<span style=\"color: #0000ff;\">in<\/span>, i + <span style=\"color: #800080;\">1<\/span>, inend, last, laststart + i - instart, lastend - <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n        }\n    }\n    <\/span><span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\"> treenode;\n}<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u4e8c\u53c9\u641c\u7d22\u6811\u524d\u5e8f\u8f93\u51fa\u540e\u5e8f<\/p>\n<div class=\"cnblogs_code\">\n<pre>vector&lt;<span style=\"color: #0000ff;\">int<\/span>&gt;<span style=\"color: #000000;\"> v;\n<\/span><span style=\"color: #0000ff;\">void<\/span> getpost(<span style=\"color: #0000ff;\">int<\/span> root, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> last) {\n    <\/span><span style=\"color: #0000ff;\">int<\/span> i = root + <span style=\"color: #800080;\">1<\/span>, j =<span style=\"color: #000000;\"> last;\n    <\/span><span style=\"color: #0000ff;\">while<\/span> (a[i] &lt; a[root] &amp;&amp; i &lt;= last)i++;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u627e\u5f53\u524d\u6839\u8282\u70b9\u5de6\u5b50\u8282\u70b9\u8fb9\u754c<\/span>\n    <span style=\"color: #0000ff;\">while<\/span> (a[j] &gt;= a[root] &amp;&amp; j &gt; root)j--;<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u627e\u5f53\u524d\u6839\u8282\u70b9\u53f3\u5b50\u8282\u70b9\u8fb9\u754c<\/span>\n    <span style=\"color: #0000ff;\">if<\/span> (i - j != <span style=\"color: #800080;\">1<\/span>)<span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\">;\n    getpost(root <\/span>+ <span style=\"color: #800080;\">1<\/span>, j);<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u904d\u5386\u5de6\u5b50\u8282\u70b9<\/span>\n    getpost(i, last);<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u904d\u5386\u53f3\u5b50\u8282\u70b9<\/span>\n    v.push_back(a[root]);<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">pb\u6839\u8282\u70b9(\u5de6\u53f3\u6839)<\/span>\n}<\/pre>\n<\/div>\n<p>*\u7ed9\u51fa\u4e8c\u53c9\u641c\u7d22\u6811\u7684\u4e00\u4e2a\u904d\u5386\uff0c\u53ea\u8981\u4ece\u5c0f\u5230\u5927\u6392\u5e8f\u5c31\u662f\u5176\u4e2d\u5e8f\u904d\u5386\uff0c\u6839\u636e\u4e2d\u5e8f\u904d\u5386\u4ece0\u4e0b\u6807\u5f00\u59cb\u5728\u8fdb\u884c\u5de6\u6839\u53f3\u904d\u5386\u5f97\u5230\u5c42\u5e8f\u904d\u5386&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e8c\u53c9\u6811\u540e\u4e2d\u5e8f\u8f93\u51fa\u5c42\u5e8f<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #0000ff;\">int<\/span> post[<span style=\"color: #800080;\">1005<\/span>], <span style=\"color: #0000ff;\">in<\/span>[<span style=\"color: #800080;\">1005<\/span><span style=\"color: #000000;\">];\nmap<\/span>&lt;<span style=\"color: #0000ff;\">int<\/span>, <span style=\"color: #0000ff;\">int<\/span>&gt;<span style=\"color: #000000;\"> ma, le;\n<\/span><span style=\"color: #0000ff;\">void<\/span> level(<span style=\"color: #0000ff;\">int<\/span> root, <span style=\"color: #0000ff;\">int<\/span> l, <span style=\"color: #0000ff;\">int<\/span> r, <span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> index) {\n    <\/span><span style=\"color: #0000ff;\">if<\/span> (l &gt; r)<span style=\"color: #0000ff;\">return<\/span><span style=\"color: #000000;\">;\n    <\/span><span style=\"color: #0000ff;\">int<\/span> p = ma[post[root]];<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5f53\u524d\u540e\u5e8f\u6240\u5728\u6839\u8282\u70b9\u524d\u5e8f\u4f4d\u7f6e<\/span>\n    le[index] = post[root];<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">index\u4e3a\u8282\u70b9\u4e0b\u6807<\/span>\n    level(root - r + p - <span style=\"color: #800080;\">1<\/span>, l, p - <span style=\"color: #800080;\">1<\/span>, <span style=\"color: #800080;\">2<\/span> * index);<span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">root - (r - p) - 1\u662f\u5f53\u524d\u540e\u5e8f\u6839\u8282\u70b9\u4f4d\u7f6e\u51cf\u53bb(\u5176\u53f3\u5b50\u6811\u8282\u70b9\u4e2a\u6570)\u518d\u51cf\u4e00\u4f4d<\/span>\n    level(root - <span style=\"color: #800080;\">1<\/span>, p + <span style=\"color: #800080;\">1<\/span>, r, <span style=\"color: #800080;\">2<\/span> * index + <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n}\n\n<\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> main() {\n    <\/span><span style=\"color: #0000ff;\">int<\/span><span style=\"color: #000000;\"> n;\n    cin <\/span>&gt;&gt;<span style=\"color: #000000;\"> n;\n    <\/span><span style=\"color: #0000ff;\">for<\/span> (<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">1<\/span>; i &lt;= n; i++<span style=\"color: #000000;\">) {\n        cin <\/span>&gt;&gt;<span style=\"color: #000000;\"> post[i];\n    }\n    <\/span><span style=\"color: #0000ff;\">for<\/span> (<span style=\"color: #0000ff;\">int<\/span> i = <span style=\"color: #800080;\">1<\/span>; i &lt;= n; i++<span style=\"color: #000000;\">) {\n        cin <\/span>&gt;&gt; <span style=\"color: #0000ff;\">in<\/span><span style=\"color: #000000;\">[i];\n        ma[<\/span><span style=\"color: #0000ff;\">in<\/span>[i]] =<span style=\"color: #000000;\"> i;\n    }\n    level(n, <\/span><span style=\"color: #800080;\">1<\/span>, n, <span style=\"color: #800080;\">1<\/span><span style=\"color: #000000;\">);\n}<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>15\u3001\u4f18\u5148\u5217\u961f<\/p>\n<div class=\"cnblogs_code\">\n<pre><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u5bf9\u4e8e\u57fa\u7840\u7c7b\u578b \u9ed8\u8ba4\u662f\u5927\u9876\u5806<\/span>\n    priority_queue&lt;<span style=\"color: #0000ff;\">int<\/span>&gt;<span style=\"color: #000000;\"> a; \n    <\/span><span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u7b49\u540c\u4e8e priority_queue&lt;int, vector&lt;int&gt;, less&lt;int&gt; &gt; a;<\/span><span style=\"color: #000000;\">\n    priority_queue<\/span>&lt;<span style=\"color: #0000ff;\">int<\/span>, vector&lt;<span style=\"color: #0000ff;\">int<\/span>&gt;, greater&lt;<span style=\"color: #0000ff;\">int<\/span>&gt; &gt; c;  <span style=\"color: #008000;\">\/\/<\/span><span style=\"color: #008000;\">\u8fd9\u6837\u5c31\u662f\u5c0f\u9876\u5806<\/span><\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u6162\u6162\u628a\u4e00\u4e9b\u8981\u8001\u5fd8\u8bb0\u4f46\u662f\u5f88\u6709\u7528\u7684\u4e00\u4e9b\u4e1c\u897f\u653e\u8fd9\u91cc 1\u3001lower_bound\u662f\u627e\u7b2c\u4e00\u4e2a\u5927\u4e8e\u7b49\u4e8e\u7684\u6570 &#038;n [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":39,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-124","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6574\u5408\u6ce8\u610f\u70b9 - imwarming<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/imwarming.com\/?p=124\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6574\u5408\u6ce8\u610f\u70b9 - imwarming\" \/>\n<meta property=\"og:description\" content=\"\u6162\u6162\u628a\u4e00\u4e9b\u8981\u8001\u5fd8\u8bb0\u4f46\u662f\u5f88\u6709\u7528\u7684\u4e00\u4e9b\u4e1c\u897f\u653e\u8fd9\u91cc 1\u3001lower_bound\u662f\u627e\u7b2c\u4e00\u4e2a\u5927\u4e8e\u7b49\u4e8e\u7684\u6570 &amp;n [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/imwarming.com\/?p=124\" \/>\n<meta property=\"og:site_name\" content=\"imwarming\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-26T14:14:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-03T15:45:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/imwarming.com\/wp-content\/uploads\/2022\/05\/123.png\" \/>\n\t<meta property=\"og:image:width\" content=\"711\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"warming\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/imwarming.com\/#website\",\"url\":\"https:\/\/imwarming.com\/\",\"name\":\"imwarming\",\"description\":\"\u6c38\u8fdc\u5e74\u8f7b\uff0c\u6c38\u8fdc\u70ed\u6cea\u76c8\u7736\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/imwarming.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/imwarming.com\/?p=124#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/imwarming.com\/wp-content\/uploads\/2022\/05\/123.png\",\"contentUrl\":\"https:\/\/imwarming.com\/wp-content\/uploads\/2022\/05\/123.png\",\"width\":711,\"height\":400},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/imwarming.com\/?p=124#webpage\",\"url\":\"https:\/\/imwarming.com\/?p=124\",\"name\":\"\u6574\u5408\u6ce8\u610f\u70b9 - imwarming\",\"isPartOf\":{\"@id\":\"https:\/\/imwarming.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/imwarming.com\/?p=124#primaryimage\"},\"datePublished\":\"2022-02-26T14:14:00+00:00\",\"dateModified\":\"2022-05-03T15:45:07+00:00\",\"author\":{\"@id\":\"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea\"},\"breadcrumb\":{\"@id\":\"https:\/\/imwarming.com\/?p=124#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/imwarming.com\/?p=124\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/imwarming.com\/?p=124#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/imwarming.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6574\u5408\u6ce8\u610f\u70b9\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea\",\"name\":\"warming\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/imwarming.com\/#personlogo\",\"inLanguage\":\"zh-Hans\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g\",\"caption\":\"warming\"},\"sameAs\":[\"https:\/\/imwarming.com\"],\"url\":\"https:\/\/imwarming.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6574\u5408\u6ce8\u610f\u70b9 - imwarming","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/imwarming.com\/?p=124","og_locale":"zh_CN","og_type":"article","og_title":"\u6574\u5408\u6ce8\u610f\u70b9 - imwarming","og_description":"\u6162\u6162\u628a\u4e00\u4e9b\u8981\u8001\u5fd8\u8bb0\u4f46\u662f\u5f88\u6709\u7528\u7684\u4e00\u4e9b\u4e1c\u897f\u653e\u8fd9\u91cc 1\u3001lower_bound\u662f\u627e\u7b2c\u4e00\u4e2a\u5927\u4e8e\u7b49\u4e8e\u7684\u6570 &n [&hellip;]","og_url":"https:\/\/imwarming.com\/?p=124","og_site_name":"imwarming","article_published_time":"2022-02-26T14:14:00+00:00","article_modified_time":"2022-05-03T15:45:07+00:00","og_image":[{"width":711,"height":400,"url":"https:\/\/imwarming.com\/wp-content\/uploads\/2022\/05\/123.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"warming","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/imwarming.com\/#website","url":"https:\/\/imwarming.com\/","name":"imwarming","description":"\u6c38\u8fdc\u5e74\u8f7b\uff0c\u6c38\u8fdc\u70ed\u6cea\u76c8\u7736","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/imwarming.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"https:\/\/imwarming.com\/?p=124#primaryimage","inLanguage":"zh-Hans","url":"https:\/\/imwarming.com\/wp-content\/uploads\/2022\/05\/123.png","contentUrl":"https:\/\/imwarming.com\/wp-content\/uploads\/2022\/05\/123.png","width":711,"height":400},{"@type":"WebPage","@id":"https:\/\/imwarming.com\/?p=124#webpage","url":"https:\/\/imwarming.com\/?p=124","name":"\u6574\u5408\u6ce8\u610f\u70b9 - imwarming","isPartOf":{"@id":"https:\/\/imwarming.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/imwarming.com\/?p=124#primaryimage"},"datePublished":"2022-02-26T14:14:00+00:00","dateModified":"2022-05-03T15:45:07+00:00","author":{"@id":"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea"},"breadcrumb":{"@id":"https:\/\/imwarming.com\/?p=124#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/imwarming.com\/?p=124"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/imwarming.com\/?p=124#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/imwarming.com\/"},{"@type":"ListItem","position":2,"name":"\u6574\u5408\u6ce8\u610f\u70b9"}]},{"@type":"Person","@id":"https:\/\/imwarming.com\/#\/schema\/person\/9d76869a558bac6dd0d6d58f420ee8ea","name":"warming","image":{"@type":"ImageObject","@id":"https:\/\/imwarming.com\/#personlogo","inLanguage":"zh-Hans","url":"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c4a913eed88f7601b76bbf2b103472621195b6fa2f742af89b5ea185b60e7cff?s=96&d=mm&r=g","caption":"warming"},"sameAs":["https:\/\/imwarming.com"],"url":"https:\/\/imwarming.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=124"}],"version-history":[{"count":1,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions"}],"predecessor-version":[{"id":200,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/posts\/124\/revisions\/200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=\/wp\/v2\/media\/39"}],"wp:attachment":[{"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imwarming.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}