์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- ๊ฒ์์์ง
- til
- Python
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ์ ๊ณต์ํฉ๊ฒฉํ๊ธฐ
- MySQL
- classification text
- DST fewshot learning
- fasttext text classification ํ๊ธ
- Zero-shot transfer learning with synthesized data for multi-domain dialogue state tracking
- ๋ค์ด๋๋ฏน ํ๋ก๊ทธ๋๋ฐ
- few shot dst
- DST zeroshot learning
- ๋ชจ๋์๋ฅ๋ฌ๋
- nlp๋ ผ๋ฌธ๋ฆฌ๋ทฐ
- ๋ฐฑ์ค
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์์ ๋น
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ ์ฑ ์ถ์ฒ
- ์์ฐ์ด์ฒ๋ฆฌ ๋ ผ๋ฌธ ๋ฆฌ๋ทฐ
- ์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌ์ ๊ณต์
- dialogue state tracking
- Leveraging Slot Descriptions for Zero-Shot Cross-Domain Dialogue State Tracking
- ๋ฅ๋ฌ๋๊ธฐ์ด
- ํ์ด์ฌ์ ํ์ด์ฌ๋ต๊ฒ
- From Machine Reading Comprehension to Dialogue State Tracking: Bridging the Gap
- ํ๋ก๊ทธ๋๋จธ์ค
- 2020์ ๋ณด์ฒ๋ฆฌ๊ธฐ์ฌํ๊ธฐ
- How Much Knowledge Can You Pack Into the Parameters of a Language Model?
- ๋ฐ์ดํฐ ํฉ์ฑ
- Few Shot Dialogue State Tracking using Meta-learning
- SUMBT:Slot-Utterance Matching for Universal and Scalable Belief Tracking
Archives
- Today
- Total
๐ฒ์๋ผ๋๋์ฒญ๋
[ํ๋ก๊ทธ๋๋จธ์ค]ํฐ ์ ๋ง๋ค๊ธฐ(Stack) ๋ณธ๋ฌธ
์๊ณ ๋ฆฌ์ฆ ๋ฌธ์ ํ์ด
[ํ๋ก๊ทธ๋๋จธ์ค]ํฐ ์ ๋ง๋ค๊ธฐ(Stack)
JihyunLee 2019. 11. 26. 21:56๋ฐ์ํ
ํ๋ก๊ทธ๋๋จธ์ค ํฐ์ ๋ง๋ค๊ธฐ๋ฅผ ํ์ด๋ณด์๋ค.
python ์์ stack์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ตํ๋ค
๋์ ์ฝ๋
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
def solution(number, k):
stack = []
remove =0
numlen = len(number)
for i in range(0,numlen):
idx = len(stack)-1
while(idx >=0 and stack[idx]<int(number[i]) and remove<k):
remove +=1
stack.pop()
idx = len(stack)-1
stack.append(int(number[i]))
if(remove<k):
stack.pop()
answer = ""
for num in stack:
answer += str(num)
return(answer)
|
cs |
๋ฐ์ํ
'์๊ณ ๋ฆฌ์ฆ ๋ฌธ์ ํ์ด' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค] Q1309 ์ด์ฝ๋ฆฟ ํ์ด์ฌ (0) | 2019.11.29 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค]H-Index (0) | 2019.11.26 |
[ํ๋ก๊ทธ๋๋จธ์ค] ํ๊ฒ๋๋ฒ(์ฌ๊ทํจ์) (0) | 2019.11.26 |
[๋ฐฑ์ค] ํผ๋ณด๋์น์2 (python3 , ๋ค์ด๋๋ฏน ํ๋ก๊ทธ๋๋ฐ) (0) | 2019.11.08 |
[ํ๋ก๊ทธ๋๋จธ์ค] K ๋ฒ์งธ ์, python (0) | 2019.10.31 |