-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpptraining
More file actions
60 lines (60 loc) · 1.55 KB
/
Copy pathcpptraining
File metadata and controls
60 lines (60 loc) · 1.55 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Linked List Visualization</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f8f9fa;
}
.linked-list {
display: flex;
align-items: center;
gap: 20px;
}
.node {
width: 50px;
height: 50px;
background-color: #007bff;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
font-weight: bold;
position: relative;
}
.arrow {
width: 30px;
height: 2px;
background-color: black;
position: relative;
}
.arrow::after {
content: "";
position: absolute;
right: -5px;
top: -4px;
border-left: 10px solid black;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
}
</style>
</head>
<body>
<div class="linked-list">
<div class="node">1</div>
<div class="arrow"></div>
<div class="node">2</div>
<div class="arrow"></div>
<div class="node">3</div>
<div class="arrow"></div>
<div class="node">4</div>
</div>
</body>
</html>