Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a71f867

Browse files
solve: 조건 문자열
1 parent 7b1cba6 commit a71f867

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎Level0/PRO181934.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// solution 1
2+
const solution = (ineq, eq, n, m) => {
3+
if (eq === '=') {
4+
return ineq === '>' ? Number(n >= m) : Number(n <= m);
5+
}
6+
7+
return ineq === '<' ? Number(n < m) : Number(n > m);
8+
};

‎README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,9 @@
325325
| 24.01.07. | `Level 0` | [세 개의 구분자](https://school.programmers.co.kr/learn/courses/30/lessons/181862) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181862.js) |
326326
| 24.01.08. | `Level 0` | [배열 조각하기](https://school.programmers.co.kr/learn/courses/30/lessons/181893) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181893.js) |
327327
| 24.01.27. | `Level 0` | [수열과 구간 쿼리 3](https://school.programmers.co.kr/learn/courses/30/lessons/181924) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181924.js) |
328+
329+
### 2024년 01월
330+
331+
| 날짜 | 난이도 | 문제 | JS 풀이 |
332+
| :-------: | :-------: | :-----------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------: |
333+
| 24.02.11. | `Level 0` | [조건 문자열](https://school.programmers.co.kr/learn/courses/30/lessons/181934) | [JS](https://github.com/JeongHwan-dev/Algorithm-solving-with-js/blob/master/Level0/PRO181934.js) |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /