{"provider_url":"https://hatena.blog","categories":["Python","30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0"],"type":"rich","height":"190","blog_url":"https://mzp.hatenadiary.org/","provider_name":"Hatena Blog","url":"https://mzp.hatenadiary.org/entry/20071217/set","width":"100%","author_name":"mzp","title":"set(\u96c6\u5408)\u578b\u3092\u4f7f\u3046","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmzp.hatenadiary.org%2Fentry%2F20071217%2Fset\" title=\"set(\u96c6\u5408)\u578b\u3092\u4f7f\u3046 - \u307f\u305a\u3074\u30fc\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/mzp/","version":"1.0","blog_title":"\u307f\u305a\u3074\u30fc\u65e5\u8a18","description":"30\u5206\u30d7\u30ed\u30b0\u30e9\u30e0\u3001\u305d\u306e205\u3002\u65b0\u3057\u3081\u306e\u6a5f\u80fd\u3067\u3042\u308bset(\u96c6\u5408)\u578b\u3092\u4f7f\u3063\u3066\u307f\u308b\u3002 \u540d\u524d\u304b\u3089\u5206\u304b\u308b\u3088\u3046\u306b\u91cd\u8907\u304c\u8a31\u3055\u308c\u3066\u3044\u306a\u3044\u3002\u305d\u308c\u4ee5\u5916\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306b\u4f3c\u3066\u3044\u308b\u3002 \u4f7f\u3044\u65b9 # \u91cd\u8907\u306e\u524a\u9664 >>> uniq(\"aba\") ['a', 'b'] >>> uniq(\"ab\") ['a', 'b'] # \u91cd\u8907\u306e\u30c1\u30a7\u30c3\u30af >>> isDup(\"aa\") True >>> isDup(\"ab\") False \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 #! /usr/bin/python # -*- mode:python; coding:utf-8 -*- # # uniq.py - # # Copyright(C) \u2026","published":"2007-12-17 00:00:00","image_url":null}