projectkmscom
@projectkmscom
Reviews Written
-
Average Rating
-
The introduction is empty
Posts
Q&A
(res.push(a),res).length;
์ ๋ ํด๋น๋ถ๋ถ์ด ๊ถ๊ธํ๋๋ฐ comma operator์ ๋ํด ์๊ฒ ๋์์ต๋๋ค!์ง๋ฌธ์๋ ๋ฟ๋ง์๋๋ผ ๋ค๋ฅธ ๋ถ๋ค๋ ๋์๋์๋ฉด ์ข์ ๊ฒ ๊ฐ์์~https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_operator
- 1
- 3
- 369
Q&A
์ฐ์๋ถ๋ถ์์ด2 ์ง๋ฌธ
์์์ ์๋ ํ์ด ๊ทธ๋๋ก ํด๋ ์๊ด์์๊ฒ๊ฐ์์!while(sum>m) sum -= arr[lt++];๋ถ๋ถ์์ lt๊ฐ rt๋ณด๋ค ์ค๋ฅธ์ชฝ์ (rt+1 == lt)์๊ฒ๋ผ์ answer ์๋ ๊ฒฐ๊ตญ 0(rt-lt+1) ์ด ๋ํด์ง๋๋ค.
- 0
- 1
- 303




