æè¡é¨ã®ãã«ã¿ã¤ã Rubyã³ããã¿ã®é è¤ï¼@mametterï¼ã§ããæ¨æ¥ã® Hackarade #04 ã®éå¬å ±åã«ç¶ãã2æ¥é£ç¶ã§è¨äºãæ稿ãã¾ãã ä»åã¯ãããæ¡ä»¶ä¸ã§ã®Rubyã®å®è¡é度ãé«éåãã話ãç´¹ä»ãã¾ãããã®æ¹åã¯ãã§ã«MRIã®å 端ã«ã³ãããããã¦ãã¦*1ãå¹´æ«ãªãªã¼ã¹äºå®ã®Ruby 2.6ã«å«ã¾ããäºå®ã§ãã ã²ã¨ãã¨ã§è¨ãã¨ããç°¡æ½ããããã¯ãã«ãç´¢å¼ã«ä½¿ããã¨ã§ãããã°ã©ã ã«ã¦ã³ã¿ããè¡çªå·ãè¨ç®ããã¢ã«ã´ãªãºã ãO(log N)ããO(1)ã«æ¹åãããããã«ãããTracePointæå¹æãã³ã¼ãã«ãã¬ãã¸æ¸¬å®ä¸ã§ãé·ã N ã®ã¡ã½ããã®å®è¡ã O(N log N) ãã O(N) ã«é«éåããããã¨ãããã¨ã§ããé ã«èª¬æãã¾ãã èæ¯ï¼Rubyã®ãã¤ãã³ã¼ãã®æ§é ãã®æé©åãç解ããã«ã¯ã¾ããRubyã®ãã¤ãã³ã¼ãã®ããç¹å¾´ãç¥ãå¿ è¦ãããã¾ãã ãã¨ãã° x
{{#tags}}- {{label}}
{{/tags}}