ããã°ã©ãã»ã½ããã¦ã§ã¢ã¨ã³ã¸ãã¢ã¨å¼ã°ãã人éã«ã¯ã 2ã¤ã®ã¿ã¤ãããããããªæ°ããã¦ãã¾ãã ã²ã¨ã¤ã¯ããã¨ãã¨æ©æ¢°ãããããã¼ãã¦ã§ã¢ã好ã㪠ããã¼ãã¦ã§ã¢ãããã°ã©ããããä¸ã¤ã¯ãã®å対ã®ãã½ããã¦ã§ã¢ãããã°ã©ãã ããããã©ãããç¹å¾´ãããããç¬æã¨åè¦ã§ã¾ã¨ãã¦ã¿ã¾ããã (ç§èªèº«ãã¼ãåºèº«ãªã®ã§ãã¡ãã«åéãã¦ãã¾ãw ) ããã¼ãã¦ã§ã¢ãããã°ã©ã ãæé©åãã¨ããè¨èã好ã å¤çãªå¶ç´(ã¡ã¢ãª/é度/ãã£ã¹ã¯)ãããæ¹ãçããããçã®è½åãçºæ®ã§ãã éã«å¶ç´ããªãã¨ä½ãã¦ããã®ããããããå¹³å¡ãªã¢ã¤ãã¢ããæãã¤ããªã éçºè¨èªã¯ãå¶ç´ãã決å®ãã O(n) ã®è¨ç®éã§ãããã®å®æ°é ãæ°ã«ãã å°ç¨ãã¼ã好ã (å°çã·ãã¥ã¬ã¼ã¿, ã¡ã¼ã³ãã¬ã¼ã ) å®éè©ä¾¡ãã§ããªããããªä»äºã¯èå³ãªã åºå®é·ãã¼ã¿ ãã¤ããªãã¼ã¿ å帰ãªãã¦ãã£ã¦ã®ã»ã ã¹ãã¼ãç CPUãã©ã
{{#tags}}- {{label}}
{{/tags}}