{"description":"next_permutation string\u3084\u4ed6\u306e\u30b3\u30f3\u30c6\u30ca\u306e\u5168\u3066\u306e\u9806\u5217\u3092\u751f\u6210\u3059\u308b\u3002 #include <algorithm> ... string str = \"ABCDEF\"; do { cout << str << endl; } while(next_permutation(str.begin(), str.end())); Result: ABCDEF ABCDFE ABCEDF ABCEFD ... FEDCBA (\u8a08 6! = 720\u500b\u306e\u6587\u5b57\u5217\u3092\u751f\u6210)","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","url":"https://logfiles.hatenablog.com/entry/20131101/1383331265","type":"rich","blog_title":"Logfiles","author_url":"https://blog.hatena.ne.jp/moistx/","height":"190","title":"algorithm","blog_url":"https://logfiles.hatenablog.com/","version":"1.0","image_url":null,"published":"2013-11-01 03:41:05","width":"100%","author_name":"moistx","categories":["STL"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20131101%2F1383331265\" title=\"algorithm - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}