{"blog_title":"HRR Co., Ltd.","published":"2022-12-12 00:46:08","title":"LeetCode: 1. Two Sum (Easy) by PHP","author_name":"hrroct","provider_name":"Hatena Blog","type":"rich","categories":["PHP","LeetCode"],"height":"190","url":"https://hrroct.hatenablog.com/entry/2022/12/12/004608","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhrroct.hatenablog.com%2Fentry%2F2022%2F12%2F12%2F004608\" title=\"LeetCode: 1. Two Sum (Easy) by PHP - HRR Co., Ltd.\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://hrroct.hatenablog.com/","width":"100%","image_url":null,"author_url":"https://blog.hatena.ne.jp/hrroct/","version":"1.0","description":"\u306f\u3058\u3081\u306b LeetCode\u306e\u300c1. Two Sum\u300d\u306e\u500b\u4eba\u7684\u306a\u8003\u5bdf\u3067\u3059\u3002 \u89e3\u3044\u3066\u304b\u3089\u6a21\u7bc4\u89e3\u7b54\u3092\u898b\u3066\u66f8\u3044\u3066\u3044\u307e\u3059\u3002 \u8a00\u8a9e\u306fPHP\u3067\u3059\u3002 \u554f\u984c leetcode.com \u89e3\u6cd5 1. Blute Force (\u7dcf\u5f53\u305f\u308a) <?php class Solution { /** * @param Integer[] $nums * @param Integer $target * @return Integer[] */ function twoSum($nums, $target) { $count = count($nums); for ($i = 0; $i < $count; $i++) { f\u2026"}