{"blog_url":"https://kenta11626918.hatenadiary.org/","width":"100%","type":"rich","title":"\u4e8c\u5206\u6728\u306e\u5b9f\u88c5\u3068\u304b","author_name":"kenta11626918","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/kenta11626918/","published":"2011-04-04 14:29:08","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkenta11626918.hatenadiary.org%2Fentry%2F20110404%2F1301894948\" title=\"\u4e8c\u5206\u6728\u306e\u5b9f\u88c5\u3068\u304b - Set::prototype\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/k/kenta11626918/20110404/20110404142829.jpg","description":"\u30ce\u30fc\u30c9\u3092\u69cb\u9020\u4f53\u3067\u8868\u3059 typedef struct _node { int val; struct _node *lch; struct _node *rch; } node; \u8d64\u8272\u6ce8\u610f\u3002\u307e\u3060\u3001typedef\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u3053\u3046\u66f8\u304b\u306a\u3051\u308c\u3070\u3001\u30a8\u30e9\u30fc \u633f\u5165 //x\uff1a\u633f\u5165\u3059\u308b\u6570\u5b57 p\uff1a\u691c\u7d22\u3059\u308b\u30ce\u30fc\u30c9 node *insert(node *p, int x) { //\u30ce\u30fc\u30c9\u306a\u3057 if(p == NULL) { node *q = new node; //\u65b0\u3057\u3044\u30ce\u30fc\u30c9\u306e\u8a2d\u5b9a q->val = x; q->lch = q->rch = NULL; return q; //\u30ce\u30fc\u30c9\u304c\u5b58\u5728\u3059\u308b } else \u2026","url":"https://kenta11626918.hatenadiary.org/entry/20110404/1301894948","height":"190","provider_url":"https://hatena.blog","categories":["\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\uff08\u521d\u7d1a\uff09","C++"],"version":"1.0","blog_title":"Set::prototype"}