-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.html
More file actions
67 lines (63 loc) · 2.21 KB
/
array.html
File metadata and controls
67 lines (63 loc) · 2.21 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!doctype html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<title>동적 배열 시뮬레이터</title>
<link rel="stylesheet" href="css/base.css" />
<link rel="stylesheet" href="css/layout.css" />
<link rel="stylesheet" href="css/components.css" />
<link rel="stylesheet" href="css/pages/array.css" />
</head>
<body class="page-array">
<div class="main-container">
<div class="header-area">
<a href="index.html" class="back-btn">← 뒤로가기</a>
<h1 class="simulator-title">동적 배열 시뮬레이터</h1>
</div>
<div class="simulator-box">
<div class="control-group">
<input
type="text"
id="arrInput"
class="control-input value-input"
placeholder="값 입력"
/>
<input
type="number"
id="arrIndex"
class="control-input index-input"
placeholder="인덱스 입력 (접근/삽입용)"
/>
<button id="arrAddLastBtn" class="btn btn-blue">맨뒤 추가</button>
<button id="arrInsertBtn" class="btn btn-green">중간 삽입</button>
<button id="arrRemoveLastBtn" class="btn btn-red">맨뒤 삭제</button>
</div>
<div class="control-group">
<button id="arrGetBtn" class="btn btn-purple">
인덱스 접근 O(1)
</button>
<button
id="arrSearchBtn"
class="btn accent-field"
>
값 검색 O(n)
</button>
<button id="arrSortBtn" class="btn btn-orange">정렬</button>
<button id="arrReverseBtn" class="btn btn-teal">역순</button>
<button id="arrClearBtn" class="btn btn-gray">초기화</button>
</div>
<div
id="array-visualizer"
class="visualizer-area array-visualizer"
></div>
<div class="info-panel">
• 배열 크기(Size):
<span id="arrSize" style="font-weight: bold">0</span><br />
• 용량(Capacity):
<span id="arrCapacity" style="font-weight: bold">4</span>
</div>
</div>
</div>
<script type="module" src="js/main.js"></script>
</body>
</html>