-
Notifications
You must be signed in to change notification settings - Fork 0
/
index2.ejs
219 lines (210 loc) · 7.67 KB
/
index2.ejs
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<!-- Bootstrap CSS -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn"
crossorigin="anonymous"
/>
<title>AZ Hackathon</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">DSA Voyager</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="#"
>Home <span class="sr-only">(current)</span></a
>
</li>
<li class="nav-item">
<a class="nav-link" href="https://clist.by/" target="none"
>Contests</a
>
</li>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle"
href="#"
id="navbarDropdown"
role="button"
data-toggle="dropdown"
aria-expanded="false"
>
Menu
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a
class="dropdown-item"
href="https://www.linkedin.com/in/rohit-mistry-0563251a0/"
target="none"
>Contact Admin</a
>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled"></a>
</li>
</ul>
<form class="form-inline my-2 my-lg-0">
<input
class="form-control mr-sm-2"
type="search"
name="question"
id="question"
placeholder="Search"
aria-label="Search"
/>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">
Search
</button>
</form>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h1 class="display-4">Welcome, Coders!</h1>
<p class="lead">
This website is a one stop solution for all your Algorithms and Data
Structures queris and doubts. Not only theory but we have also
compiled the questions that you can practise along with it.
</p>
<hr class="my-4" />
<p>Get Mentored by ICPC World Finalists.</p>
<a
class="btn btn-primary btn-lg"
href="https://algozenith.com/home"
target="none"
role="button"
>Learn more</a
>
</div>
</div>
<div class="container">
<div class="container">
<!-- Example row of columns -->
<div class="row">
<div class="col-md-4">
<h2>Graphs</h2>
<p>
A Graph is a non-linear data structure consisting of nodes and
edges. The nodes are sometimes also referred to as vertices and
the edges are lines or arcs that connect any two nodes in the
graph. More formally a Graph can be defined as
<b
>A Graph consists of a finite set of vertices(or nodes) and set
of Edges which connect a pair of nodes.</b
>
</p>
<p>
<a
class="btn btn-secondary"
href="https://www.geeksforgeeks.org/graph-data-structure-and-algorithms/"
target="none"
role="button"
>View details »</a
>
</p>
</div>
<div class="col-md-4">
<h2>Dynamic Programming</h2>
<p>
Dynamic Programming is mainly an optimization over plain
recursion. Wherever we see a recursive solution that has repeated
calls for same inputs, we can optimize it using Dynamic
Programming. The idea is to simply store the results of
subproblems, so that we do not have to re-compute them when needed
later.
</p>
<p>
<a
class="btn btn-secondary"
href="https://www.geeksforgeeks.org/dynamic-programming/"
target="none"
role="button"
>View details »</a
>
</p>
</div>
<div class="col-md-4">
<h2>Tree</h2>
<p>
The data structure is a specialized method to organize and store
data in the computer to be used more effectively. There are
various types of data structures, such as stack, linked list, and
queue, arranged in sequential order. For example, a linked data
structure consists of a set of nodes that are linked together by
links or points.
</p>
<p>
<a
class="btn btn-secondary"
href="https://www.geeksforgeeks.org/introduction-to-tree-data-structure/"
target="none"
role="button"
>View details »</a
>
</p>
</div>
</div>
<hr />
</div>
</div>
<!-- Optional JavaScript; choose one of the two! -->
<script>
const form = document.querySelector("form");
const ques = form.question;
form.addEventListener("submit", async (e) => {
e.preventDefault();
console.log(ques.value);
const qr=ques.value;
try {
const res = await fetch(`/search?question=${qr}`,{method: "GET"});
const data = await res.json();
} catch (error) {
alert(error);
}
});
</script>
<!-- Option 1: jQuery and Bootstrap Bundle (includes Popper) -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF"
crossorigin="anonymous"
></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2" crossorigin="anonymous"></script>
-->
</body>
</html>