{"id":50521,"date":"2025-08-10T09:54:34","date_gmt":"2025-08-10T01:54:34","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/50521.html"},"modified":"2025-08-10T09:54:34","modified_gmt":"2025-08-10T01:54:34","slug":"%e4%bb%a3%e7%a0%81%e9%9a%8f%e6%83%b3%e5%bd%95day44%ef%bc%9a%e5%8a%a8%e6%80%81%e8%a7%84%e5%88%92%ef%bc%88%e6%9c%80%e9%95%bf%e5%85%ac%e5%85%b1%e5%ad%90%e5%ba%8f%e5%88%97%e3%80%81%e4%b8%8d%e7%9b%b8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/50521.html","title":{"rendered":"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09"},"content":{"rendered":"<h2>\u4e00\u3001\u5b9e\u6218<\/h2>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:left\"><span style=\"color:#1a1a1a\">1143\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217 <\/span><\/h3>\n<p>1143. \u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217 &#8211; \u529b\u6263&#xff08;LeetCode&#xff09;<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9adp\u6570\u7ec4&#xff08;dp table&#xff09;\u4ee5\u53ca\u4e0b\u6807\u7684\u542b\u4e49<\/span><\/li>\n<\/ul>\n<p>dp[i][j]&#xff1a;\u957f\u5ea6\u4e3a[0, i &#8211; 1]\u7684\u5b57\u7b26\u4e32text1\u4e0e\u957f\u5ea6\u4e3a[0, j &#8211; 1]\u7684\u5b57\u7b26\u4e32text2\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u4e3adp[i][j]<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9a\u9012\u63a8\u516c\u5f0f<\/span><\/li>\n<\/ul>\n<p>\u4e24\u5927\u60c5\u51b5&#xff1a; text1[i &#8211; 1] \u4e0e text2[j &#8211; 1]\u76f8\u540c&#xff0c;text1[i &#8211; 1] \u4e0e text2[j &#8211; 1]\u4e0d\u76f8\u540c<\/p>\n<p>\u5982\u679ctext1[i &#8211; 1] \u4e0e text2[j &#8211; 1]\u76f8\u540c&#xff0c;\u90a3\u4e48\u627e\u5230\u4e86\u4e00\u4e2a\u516c\u5171\u5143\u7d20&#xff0c;\u6240\u4ee5dp[i][j] &#061; dp[i &#8211; 1][j &#8211; 1] &#043; 1;<\/p>\n<p>\u5982\u679ctext1[i &#8211; 1] \u4e0e text2[j &#8211; 1]\u4e0d\u76f8\u540c&#xff0c;\u90a3\u5c31\u770b\u770btext1[0, i &#8211; 2]\u4e0etext2[0, j &#8211; 1]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217 \u548c text1[0, i &#8211; 1]\u4e0etext2[0, j &#8211; 2]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217&#xff0c;\u53d6\u6700\u5927\u7684\u3002<\/p>\n<p>\u5373&#xff1a;dp[i][j] &#061; max(dp[i &#8211; 1][j], dp[i][j &#8211; 1]);<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">dp\u6570\u7ec4\u5982\u4f55\u521d\u59cb\u5316<\/span><\/li>\n<\/ul>\n<p>dp[i][0]&#xff0c;text1[0, i-1]\u548c\u7a7a\u4e32\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u81ea\u7136\u662f0&#xff0c;\u6240\u4ee5dp[i][0] &#061; 0;\u540c\u7406dp[0][j]\u4e5f\u662f0\u3002<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9a\u904d\u5386\u987a\u5e8f<\/span><\/li>\n<\/ul>\n<p><span style=\"background-color:null\">\u6839\u636e\u9012\u63a8\u516c\u5f0f&#xff0c;\u4ece\u524d<\/span>\u5411\u540e&#xff0c;\u4ece\u4e0a\u5230\u4e0b\u6765\u904d\u5386\u8fd9\u4e2a\u77e9\u9635\u3002<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u4e3e\u4f8b\u63a8\u5bfcdp\u6570\u7ec4<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"806\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015431-6897fbd710544.png\" width=\"814\" \/><\/p>\n<p>  package org.example.DP;<\/p>\n<p>public class longestCommonSubsequence1143 {<br \/>\n    \/**<br \/>\n     * \u8ba1\u7b97\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217&#xff08;Longest Common Subsequence, LCS&#xff09;\u7684\u957f\u5ea6<br \/>\n     * \u4f7f\u7528\u52a8\u6001\u89c4\u5212&#xff08;Dynamic Programming&#xff09;\u65b9\u6cd5\u5b9e\u73b0<br \/>\n     *<br \/>\n     * &#064;param text1 \u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e32<br \/>\n     * &#064;param text2 \u7b2c\u4e8c\u4e2a\u5b57\u7b26\u4e32<br \/>\n     * &#064;return \u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u957f\u5ea6<br \/>\n     *\/<br \/>\n    public int longestCommonSubsequence(String text1, String text2) {<br \/>\n        \/\/ \u521b\u5efa DP \u8868&#xff0c;dp[i][j] \u8868\u793a text1 \u7684\u524d i-1 \u4e2a\u5b57\u7b26 \u548c text2 \u7684\u524d j-1 \u4e2a\u5b57\u7b26 \u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u957f\u5ea6<br \/>\n        \/\/ \u591a\u5f00\u4e00\u884c\u4e00\u5217\u7528\u4e8e\u5904\u7406\u8fb9\u754c\u60c5\u51b5&#xff08;\u7a7a\u5b57\u7b26\u4e32&#xff09;<br \/>\n        int[][] dp &#061; new int[text1.length() &#043; 1][text2.length() &#043; 1];<\/p>\n<p>        \/\/ \u5916\u5c42\u5faa\u73af&#xff1a;\u904d\u5386 text1 \u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26&#xff08;\u4ece\u7b2c1\u4e2a\u5230\u7b2cn\u4e2a&#xff09;<br \/>\n        for (int i &#061; 1; i &lt;&#061; text1.length(); i&#043;&#043;) {<br \/>\n            char char1 &#061; text1.charAt(i &#8211; 1); \/\/ \u83b7\u53d6 text1 \u4e2d\u7b2c i \u4e2a\u5b57\u7b26&#xff08;\u7d22\u5f15\u4e3a i-1&#xff09;<\/p>\n<p>            \/\/ \u5185\u5c42\u5faa\u73af&#xff1a;\u904d\u5386 text2 \u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26&#xff08;\u4ece\u7b2c1\u4e2a\u5230\u7b2cm\u4e2a&#xff09;<br \/>\n            for (int j &#061; 1; j &lt;&#061; text2.length(); j&#043;&#043;) {<br \/>\n                char char2 &#061; text2.charAt(j &#8211; 1); \/\/ \u83b7\u53d6 text2 \u4e2d\u7b2c j \u4e2a\u5b57\u7b26&#xff08;\u7d22\u5f15\u4e3a j-1&#xff09;<\/p>\n<p>                if (char1 &#061;&#061; char2) {<br \/>\n                    \/\/ \u5f53\u524d\u5b57\u7b26\u5339\u914d&#xff0c;\u5373dp[i-1][j-1] \u662f\u53bb\u6389\u5f53\u524d\u5339\u914d\u5b57\u7b26\u540e\u7684 LCS \u957f\u5ea6<br \/>\n                    dp[i][j] &#061; dp[i &#8211; 1][j &#8211; 1] &#043; 1;<br \/>\n                } else {<br \/>\n                    \/\/ \u5f53\u524d\u5b57\u7b26\u4e0d\u5339\u914d&#xff1a;\u53d6\u4e24\u79cd\u60c5\u51b5\u7684\u6700\u5927\u503c<br \/>\n                    \/\/ 1. \u4e0d\u8003\u8651 text1 \u7684\u5f53\u524d\u5b57\u7b26&#xff08;\u5373 dp[i-1][j]&#xff09;<br \/>\n                    \/\/ 2. \u4e0d\u8003\u8651 text2 \u7684\u5f53\u524d\u5b57\u7b26&#xff08;\u5373 dp[i][j-1]&#xff09;<br \/>\n                    dp[i][j] &#061; Math.max(dp[i &#8211; 1][j], dp[i][j &#8211; 1]);<br \/>\n                }<br \/>\n            }<br \/>\n        }<\/p>\n<p>        \/\/ dp[text1.length()][text2.length()] \u5373\u4e3a\u6574\u4e2a\u5b57\u7b26\u4e32\u7684 LCS \u957f\u5ea6<br \/>\n        return dp[text1.length()][text2.length()];<br \/>\n    }<br \/>\n}<\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:left\"><span style=\"color:#1a1a1a\">1035\u4e0d\u76f8\u4ea4\u7684\u7ebf <\/span><\/h3>\n<p>1035. \u4e0d\u76f8\u4ea4\u7684\u7ebf &#8211; \u529b\u6263&#xff08;LeetCode&#xff09;<\/p>\n<ul>\n<li>\u672c\u8d28\u4e0a\u548c\u4e0a\u4e00\u9898\u662f\u4e00\u6837\u7684<\/li>\n<\/ul>\n<p>\u76f4\u7ebf\u4e0d\u80fd\u76f8\u4ea4&#xff0c;\u8fd9\u5c31\u662f\u8bf4\u660e\u5728\u5b57\u7b26\u4e32nums1\u4e2d \u627e\u5230\u4e00\u4e2a\u4e0e\u5b57\u7b26\u4e32nums2\u76f8\u540c\u7684\u5b50\u5e8f\u5217&#xff0c;\u4e14\u8fd9\u4e2a\u5b50\u5e8f\u5217\u4e0d\u80fd\u6539\u53d8\u76f8\u5bf9\u987a\u5e8f&#xff0c;\u53ea\u8981\u76f8\u5bf9\u987a\u5e8f\u4e0d\u6539\u53d8&#xff0c;\u8fde\u63a5\u76f8\u540c\u6570\u5b57\u7684\u76f4\u7ebf\u5c31\u4e0d\u4f1a\u76f8\u4ea4\u3002<\/p>\n<p>nums1 &#061; [1,4,2], nums2 &#061; [1,2,4]\u4e3a\u4f8b&#xff0c;\u76f8\u4ea4\u60c5\u51b5\u5982\u56fe&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"546\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015431-6897fbd7933da.png\" width=\"798\" \/><\/p>\n<p>nums1\u548cnums2\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u662f[1,4]&#xff0c;\u957f\u5ea6\u4e3a2\u3002 \u8fd9\u4e2a\u516c\u5171\u5b50\u5e8f\u5217\u6307\u7684\u662f\u76f8\u5bf9\u987a\u5e8f\u4e0d\u53d8&#xff08;\u5373\u6570\u5b574\u5728\u5b57\u7b26\u4e32nums1\u4e2d\u6570\u5b571\u7684\u540e\u9762&#xff0c;\u90a3\u4e48\u6570\u5b574\u4e5f\u5e94\u8be5\u5728\u5b57\u7b26\u4e32nums2\u6570\u5b571\u7684\u540e\u9762&#xff09;\u3002\u672c\u9898\u8bf4\u662f\u6c42\u7ed8\u5236\u7684\u6700\u5927\u8fde\u7ebf\u6570&#xff0c;\u5176\u5b9e\u5c31\u662f\u6c42\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u7684\u957f\u5ea6&#xff01;<\/p>\n<\/p>\n<\/p>\n<p>\u4ee3\u7801\u76f4\u63a5\u5728\u4e0a\u4e00\u9898\u7684\u57fa\u7840\u4e0a\u8fdb\u884c\u4fee\u6539<\/p>\n<p>    package org.example.DP;<\/p>\n<p>public class maxUncrossedLines1035 {<\/p>\n<p>    \/**<br \/>\n     * \u8ba1\u7b97\u4e24\u4e2a\u6570\u7ec4\u4e4b\u95f4\u201c\u4e0d\u76f8\u4ea4\u8fde\u7ebf\u201d\u7684\u6700\u5927\u6570\u91cf\u3002<br \/>\n     * \u6bcf\u6761\u7ebf\u8fde\u63a5 nums1 \u548c nums2 \u4e2d\u76f8\u7b49\u7684\u5143\u7d20&#xff0c;\u4e14\u7ebf\u4e0d\u80fd\u4ea4\u53c9\u3002<br \/>\n     * \u672c\u8d28\u662f\u6c42\u4e24\u4e2a\u6570\u7ec4\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217&#xff08;LCS&#xff09;\u957f\u5ea6\u3002<br \/>\n     *<br \/>\n     * &#064;param nums1 \u7b2c\u4e00\u4e2a\u6574\u6570\u6570\u7ec4<br \/>\n     * &#064;param nums2 \u7b2c\u4e8c\u4e2a\u6574\u6570\u6570\u7ec4<br \/>\n     * &#064;return \u6700\u5927\u4e0d\u76f8\u4ea4\u8fde\u7ebf\u6570&#xff08;\u5373\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u957f\u5ea6&#xff09;<br \/>\n     *\/<br \/>\n    public int maxUncrossedLines(int[] nums1, int[] nums2) {<br \/>\n        \/\/ \u521b\u5efa DP \u8868&#xff1a;dp[i][j] \u8868\u793a nums1 \u7684\u524d i-1 \u4e2a\u5143\u7d20 \u548c nums2 \u7684\u524d j-1 \u4e2a\u5143\u7d20 \u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u957f\u5ea6<br \/>\n        \/\/ \u591a\u5f00\u4e00\u884c\u4e00\u5217&#xff0c;\u7528\u4e8e\u5904\u7406\u8fb9\u754c\u60c5\u51b5&#xff08;\u7a7a\u5e8f\u5217&#xff09;<br \/>\n        int[][] dp &#061; new int[nums1.length &#043; 1][nums2.length &#043; 1];<\/p>\n<p>        \/\/ \u904d\u5386 nums1 \u7684\u6bcf\u4e2a\u5143\u7d20&#xff08;\u4ece\u7b2c1\u4e2a\u5230\u672b\u5c3e&#xff09;<br \/>\n        for (int i &#061; 1; i &lt;&#061; nums1.length; i&#043;&#043;) {<br \/>\n            int n1 &#061; nums1[i &#8211; 1]; \/\/ \u5f53\u524d\u5143\u7d20\u503c<\/p>\n<p>            \/\/ \u904d\u5386 nums2 \u7684\u6bcf\u4e2a\u5143\u7d20<br \/>\n            for (int j &#061; 1; j &lt;&#061; nums2.length; j&#043;&#043;) {<br \/>\n                int n2 &#061; nums2[j &#8211; 1]; \/\/ \u5f53\u524d\u5143\u7d20\u503c<\/p>\n<p>                if (n1 &#061;&#061; n2) {<br \/>\n                    \/\/ \u5143\u7d20\u76f8\u7b49&#xff1a;\u53ef\u4ee5\u8fde\u4e00\u6761\u7ebf&#xff0c;\u4e14\u4e0d\u4e0e\u5176\u4ed6\u7ebf\u4ea4\u53c9<br \/>\n                    \/\/ \u5f53\u524d LCS \u957f\u5ea6 &#061; \u4e4b\u524d LCS \u957f\u5ea6 &#043; 1<br \/>\n                    dp[i][j] &#061; dp[i &#8211; 1][j &#8211; 1] &#043; 1;<br \/>\n                } else {<br \/>\n                    \/\/ \u5143\u7d20\u4e0d\u76f8\u7b49&#xff1a;\u4e0d\u80fd\u8fde\u7ebf&#xff0c;\u7ee7\u627f\u8f83\u5927\u503c<br \/>\n                    \/\/ \u8981\u4e48\u4e0d\u8003\u8651 nums1 \u7684\u5f53\u524d\u5143\u7d20&#xff0c;\u8981\u4e48\u4e0d\u8003\u8651 nums2 \u7684\u5f53\u524d\u5143\u7d20<br \/>\n                    dp[i][j] &#061; Math.max(dp[i &#8211; 1][j], dp[i][j &#8211; 1]);<br \/>\n                }<br \/>\n            }<br \/>\n        }<\/p>\n<p>        \/\/ \u8fd4\u56de\u6574\u4e2a\u6570\u7ec4\u8303\u56f4\u5185\u7684\u6700\u5927\u4e0d\u76f8\u4ea4\u8fde\u7ebf\u6570<br \/>\n        return dp[nums1.length][nums2.length];<br \/>\n    }<br \/>\n} <\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:left\"><span style=\"color:#1a1a1a\">53\u6700\u5927\u5b50\u5e8f\u548c&#xff08;\u4e4b\u524d\u7528\u8d2a\u5fc3\u505a\u8fc7&#xff0c;\u8fd9\u91cc\u7528DP&#xff09;<\/span><\/h3>\n<p>53. \u6700\u5927\u5b50\u6570\u7ec4\u548c &#8211; \u529b\u6263&#xff08;LeetCode&#xff09;<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9adp\u6570\u7ec4&#xff08;dp table&#xff09;\u4ee5\u53ca\u4e0b\u6807\u7684\u542b\u4e49<\/span><\/li>\n<\/ul>\n<p>\u4ee5nums[i]\u4e3a\u7ed3\u5c3e\u7684\u6700\u5927\u8fde\u7eed\u5b50\u5e8f\u5217\u548c\u4e3adp[i]\u3002<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9a\u9012\u63a8\u516c\u5f0f<\/span><\/li>\n<\/ul>\n<p>dp[i &#8211; 1] &#043; nums[i]&#xff0c;\u5373&#xff1a;nums[i]\u52a0\u5165\u5f53\u524d\u8fde\u7eed\u5b50\u5e8f\u5217\u548c<\/p>\n<p>nums[i]&#xff0c;\u5373&#xff1a;\u4ece\u5934\u5f00\u59cb\u8ba1\u7b97\u5f53\u524d\u8fde\u7eed\u5b50\u5e8f\u5217\u548c<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">dp\u6570\u7ec4\u5982\u4f55\u521d\u59cb\u5316&#xff1a;<\/span>dp[0] &#061; nums[0]<\/li>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9a\u904d\u5386\u987a\u5e8f&#xff1a;<\/span>\u4ece\u524d\u5411\u540e<\/li>\n<li><span style=\"background-color:#f9eda6\">\u4e3e\u4f8b\u63a8\u5bfcdp\u6570\u7ec4<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"536\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015432-6897fbd827de6.png\" width=\"1008\" \/><\/p>\n<p>        package org.example.DP;<\/p>\n<p>public class maxSubArray53_DP {<br \/>\n    public int maxSubArray(int[] nums) {<br \/>\n       int[] dp&#061;new int[nums.length];<br \/>\n       dp[0]&#061;nums[0];<br \/>\n       int result&#061;dp[0];<\/p>\n<p>       for(int i&#061;1;i&lt; nums.length;i&#043;&#043;)<br \/>\n       {<br \/>\n           dp[i]&#061;Math.max(<br \/>\n                   nums[i],<br \/>\n                   nums[i]&#043;dp[i-1]<br \/>\n           );<br \/>\n           if(dp[i]&gt;result)result&#061;dp[i];<br \/>\n       }<\/p>\n<p>       \/\/\u7ed3\u679c\u4e0d\u4e00\u5b9a\u662f\u6700\u540e\u4e00\u4e2a<br \/>\n       return result;<br \/>\n    }<br \/>\n}<\/p>\n<h3 style=\"margin-left:0pt;margin-right:0pt;text-align:left\"><span style=\"color:#1a1a1a\">392\u5224\u65ad\u5b50\u5e8f\u5217<\/span><\/h3>\n<p>392. \u5224\u65ad\u5b50\u5e8f\u5217 &#8211; \u529b\u6263&#xff08;LeetCode&#xff09;<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9adp\u6570\u7ec4&#xff08;dp table&#xff09;\u4ee5\u53ca\u4e0b\u6807\u7684\u542b\u4e49<\/span><\/li>\n<\/ul>\n<p>dp[i][j] \u8868\u793a\u4ee5\u4e0b\u6807i-1\u4e3a\u7ed3\u5c3e\u7684\u5b57\u7b26\u4e32s&#xff0c;\u548c\u4ee5\u4e0b\u6807j-1\u4e3a\u7ed3\u5c3e\u7684\u5b57\u7b26\u4e32t&#xff0c;\u76f8\u540c\u5b50\u5e8f\u5217\u7684\u957f\u5ea6\u4e3adp[i][j]\u3002\u6ce8\u610f\u8fd9\u91cc\u662f\u5224\u65ads\u662f\u5426\u4e3at\u7684\u5b50\u5e8f\u5217\u3002\u5373t\u7684\u957f\u5ea6\u5927\u4e8e\u7b49\u4e8es\u3002<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9a\u9012\u63a8\u516c\u5f0f<\/span><\/li>\n<\/ul>\n<ul>\n<li>f (s[i &#8211; 1] &#061;&#061; t[j &#8211; 1])\n<ul>\n<li>t\u4e2d\u627e\u5230\u4e86\u4e00\u4e2a\u5b57\u7b26\u5728s\u4e2d\u4e5f\u51fa\u73b0\u4e86<\/li>\n<\/ul>\n<\/li>\n<li>if (s[i &#8211; 1] !&#061; t[j &#8211; 1])\n<ul>\n<li>\u76f8\u5f53\u4e8et\u8981\u5220\u9664\u5143\u7d20&#xff0c;\u7ee7\u7eed\u5339\u914d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>if (s[i &#8211; 1] &#061;&#061; t[j &#8211; 1])&#xff0c;\u90a3\u4e48dp[i][j] &#061; dp[i &#8211; 1][j &#8211; 1] &#043; 1;&#xff0c;\u56e0\u4e3a\u627e\u5230\u4e86\u4e00\u4e2a\u76f8\u540c\u7684\u5b57\u7b26&#xff0c;\u76f8\u540c\u5b50\u5e8f\u5217\u957f\u5ea6\u81ea\u7136\u8981\u5728dp[i-1][j-1]\u7684\u57fa\u7840\u4e0a\u52a01&#xff08;\u5982\u679c\u4e0d\u7406\u89e3&#xff0c;\u5728\u56de\u770b\u4e00\u4e0bdp[i][j]\u7684\u5b9a\u4e49&#xff09;<\/p>\n<p>if (s[i &#8211; 1] !&#061; t[j &#8211; 1])&#xff0c;\u6b64\u65f6\u76f8\u5f53\u4e8et\u8981\u5220\u9664\u5143\u7d20&#xff0c;t\u5982\u679c\u628a\u5f53\u524d\u5143\u7d20t[j &#8211; 1]\u5220\u9664&#xff0c;\u90a3\u4e48dp[i][j] \u7684\u6570\u503c\u5c31\u662f \u770bs[i &#8211; 1]\u4e0e t[j &#8211; 2]\u7684\u6bd4\u8f83\u7ed3\u679c\u4e86&#xff0c;\u5373&#xff1a;dp[i][j] &#061; dp[i][j &#8211; 1];<\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">dp\u6570\u7ec4\u5982\u4f55\u521d\u59cb\u5316<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"616\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015432-6897fbd87b92b.png\" width=\"1094\" \/><\/p>\n<ul>\n<li><span style=\"background-color:#f9eda6\">\u786e\u5b9a\u904d\u5386\u987a\u5e8f&#xff1a;<\/span>\u4ece\u4e0a\u5230\u4e0b&#xff0c;\u4ece\u5de6\u5230\u53f3<\/li>\n<li><span style=\"background-color:#f9eda6\">\u4e3e\u4f8b\u63a8\u5bfcdp\u6570\u7ec4<\/span><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"590\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015432-6897fbd8da2a5.png\" width=\"1084\" \/><\/p>\n<p>\u6700\u540e\u7684\u7ed3\u679c\u4e0d\u662fdp[nums.size() &#8211; 1]&#xff01;\u00a0&#xff0c;\u800c\u662fdp[6]\u3002<\/p>\n<p>        \/**<br \/>\n * \u5224\u65ad\u5b57\u7b26\u4e32 s \u662f\u5426\u662f\u5b57\u7b26\u4e32 t \u7684\u5b50\u5e8f\u5217&#xff08;subsequence&#xff09;<br \/>\n * \u4f7f\u7528\u52a8\u6001\u89c4\u5212\u8ba1\u7b97 s \u548c t \u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u957f\u5ea6&#xff0c;\u82e5\u7b49\u4e8e s \u7684\u957f\u5ea6&#xff0c;\u5219 s \u662f t \u7684\u5b50\u5e8f\u5217<br \/>\n *<br \/>\n * &#064;param s \u53ef\u80fd\u8f83\u77ed\u7684\u5b57\u7b26\u4e32&#xff08;\u5f85\u5224\u65ad\u662f\u5426\u4e3a\u5b50\u5e8f\u5217&#xff09;<br \/>\n * &#064;param t \u8f83\u957f\u7684\u5b57\u7b26\u4e32&#xff08;\u6bcd\u4e32&#xff09;<br \/>\n * &#064;return \u5982\u679c s \u662f t \u7684\u5b50\u5e8f\u5217&#xff0c;\u8fd4\u56de true&#xff1b;\u5426\u5219\u8fd4\u56de false<br \/>\n *\/<br \/>\npublic boolean isSubsequence(String s, String t) {<br \/>\n    int length1 &#061; s.length(); \/\/ s \u7684\u957f\u5ea6<br \/>\n    int length2 &#061; t.length(); \/\/ t \u7684\u957f\u5ea6<\/p>\n<p>    \/\/ dp[i][j] \u8868\u793a s \u7684\u524d i-1 \u4e2a\u5b57\u7b26 \u548c t \u7684\u524d j-1 \u4e2a\u5b57\u7b26 \u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217&#xff08;LCS&#xff09;\u7684\u957f\u5ea6<br \/>\n    int[][] dp &#061; new int[length1 &#043; 1][length2 &#043; 1];<\/p>\n<p>    for (int i &#061; 1; i &lt;&#061; length1; i&#043;&#043;) {<br \/>\n        for (int j &#061; 1; j &lt;&#061; length2; j&#043;&#043;) {<br \/>\n            if (s.charAt(i &#8211; 1) &#061;&#061; t.charAt(j &#8211; 1)) {<br \/>\n                \/\/ \u5f53\u524d\u5b57\u7b26\u5339\u914d&#xff1a;LCS \u957f\u5ea6 &#061; \u524d\u4e00\u4e2a\u72b6\u6001 &#043; 1<br \/>\n                dp[i][j] &#061; dp[i &#8211; 1][j &#8211; 1] &#043; 1;<br \/>\n            } else {<br \/>\n                \/\/ \u4e0d\u5339\u914d&#xff1a;\u7ee7\u627f t \u524d\u4e00\u4e2a\u4f4d\u7f6e\u7684\u7ed3\u679c&#xff08;\u56e0\u4e3a s \u5fc5\u987b\u8fde\u7eed\u5339\u914d&#xff0c;\u4e0d\u80fd\u8df3\u8fc7 s \u7684\u5b57\u7b26&#xff09;<br \/>\n                \/\/ \u5373&#xff1a;\u8003\u8651 t \u7684\u524d j-1 \u4e2a\u5b57\u7b26\u662f\u5426\u80fd\u5339\u914d s \u7684\u524d i \u4e2a\u5b57\u7b26<br \/>\n                dp[i][j] &#061; dp[i][j &#8211; 1];<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u5982\u679c s \u548c t \u7684 LCS \u957f\u5ea6\u7b49\u4e8e s \u7684\u957f\u5ea6&#xff0c;\u8bf4\u660e s \u5b8c\u5168\u88ab\u5339\u914d&#xff0c;\u5373 s \u662f t \u7684\u5b50\u5e8f\u5217<br \/>\n    return dp[length1][length2] &#061;&#061; length1;<br \/>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb309\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf10\u6b21\u3002t[j &#8211; 1])\uff0c\u6b64\u65f6\u76f8\u5f53\u4e8et\u8981\u5220\u9664\u5143\u7d20\uff0ct\u5982\u679c\u628a\u5f53\u524d\u5143\u7d20t[j &#8211; 1]\u5220\u9664\uff0c\u90a3\u4e48dp[i][j] \u7684\u6570\u503c\u5c31\u662f \u770bs[i &#8211; 1]\u4e0e t[j &#8211; 2]\u7684\u6bd4\u8f83\u7ed3\u679c\u4e86\uff0c\u5373\uff1adp[i][j] = dp[i][j &#8211; 1];\u5982\u679ctext1[i &#8211; 1] \u4e0e text2[j &#8211; 1]\u4e0d\u76f8\u540c\uff0c\u90a3\u5c31\u770b\u770btext1[0, i &#8211; 2]\u4e0etext2[0, j &#8211; 1]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217 \u548c text1[0, i &#8211; 1]\u4e0etext2[0, j &#8211; 2]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\uff0c\u53d6\u6700\u5927\u7684\u3002\u540c\u7406dp[0][j]\u4e5f\u662f0\u3002<\/p>\n","protected":false},"author":2,"featured_media":50516,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,2692,4931,2865,1813,427],"topic":[],"class_list":["post-50521","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-leetcode","tag-4931","tag-2865","tag-1813","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/50521.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb309\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf10\u6b21\u3002t[j - 1])\uff0c\u6b64\u65f6\u76f8\u5f53\u4e8et\u8981\u5220\u9664\u5143\u7d20\uff0ct\u5982\u679c\u628a\u5f53\u524d\u5143\u7d20t[j - 1]\u5220\u9664\uff0c\u90a3\u4e48dp[i][j] \u7684\u6570\u503c\u5c31\u662f \u770bs[i - 1]\u4e0e t[j - 2]\u7684\u6bd4\u8f83\u7ed3\u679c\u4e86\uff0c\u5373\uff1adp[i][j] = dp[i][j - 1];\u5982\u679ctext1[i - 1] \u4e0e text2[j - 1]\u4e0d\u76f8\u540c\uff0c\u90a3\u5c31\u770b\u770btext1[0, i - 2]\u4e0etext2[0, j - 1]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217 \u548c text1[0, i - 1]\u4e0etext2[0, j - 2]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\uff0c\u53d6\u6700\u5927\u7684\u3002\u540c\u7406dp[0][j]\u4e5f\u662f0\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/50521.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-10T01:54:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015431-6897fbd710544.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50521.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/50521.html\",\"name\":\"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-10T01:54:34+00:00\",\"dateModified\":\"2025-08-10T01:54:34+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/50521.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/50521.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50521.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/50521.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb309\u6b21\uff0c\u70b9\u8d5e13\u6b21\uff0c\u6536\u85cf10\u6b21\u3002t[j - 1])\uff0c\u6b64\u65f6\u76f8\u5f53\u4e8et\u8981\u5220\u9664\u5143\u7d20\uff0ct\u5982\u679c\u628a\u5f53\u524d\u5143\u7d20t[j - 1]\u5220\u9664\uff0c\u90a3\u4e48dp[i][j] \u7684\u6570\u503c\u5c31\u662f \u770bs[i - 1]\u4e0e t[j - 2]\u7684\u6bd4\u8f83\u7ed3\u679c\u4e86\uff0c\u5373\uff1adp[i][j] = dp[i][j - 1];\u5982\u679ctext1[i - 1] \u4e0e text2[j - 1]\u4e0d\u76f8\u540c\uff0c\u90a3\u5c31\u770b\u770btext1[0, i - 2]\u4e0etext2[0, j - 1]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217 \u548c text1[0, i - 1]\u4e0etext2[0, j - 2]\u7684\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\uff0c\u53d6\u6700\u5927\u7684\u3002\u540c\u7406dp[0][j]\u4e5f\u662f0\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/50521.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-10T01:54:34+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810015431-6897fbd710544.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/50521.html","url":"https:\/\/www.wsisp.com\/helps\/50521.html","name":"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-10T01:54:34+00:00","dateModified":"2025-08-10T01:54:34+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/50521.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/50521.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/50521.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ee3\u7801\u968f\u60f3\u5f55Day44\uff1a\u52a8\u6001\u89c4\u5212\uff08\u6700\u957f\u516c\u5171\u5b50\u5e8f\u5217\u3001\u4e0d\u76f8\u4ea4\u7684\u7ebf\u3001\u6700\u5927\u5b50\u5e8f\u548c\u3001\u5224\u65ad\u5b50\u5e8f\u5217\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=50521"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50521\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/50516"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=50521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=50521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=50521"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=50521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}