Skip to content

Commit d374d78

Browse files
update
1 parent df7caae commit d374d78

File tree

2 files changed

+26
-38
lines changed

2 files changed

+26
-38
lines changed

dsa/1.html

+25-37
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,15 @@
1212

1313
<!-- FONT AWESOME -->
1414

15-
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.1/css/all.css"
16-
integrity="sha384-xxzQGERXS00kBmZW/6qxqJPyxW3UR0BPsL4c8ILaIWXva5kFi7TxkIIaMiKtqV1Q" crossorigin="anonymous">
15+
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.1/css/all.css" integrity="sha384-xxzQGERXS00kBmZW/6qxqJPyxW3UR0BPsL4c8ILaIWXva5kFi7TxkIIaMiKtqV1Q" crossorigin="anonymous">
1716

1817
<!-- FONTS -->
1918

20-
<link href="https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Ubuntu&family=Varela+Round&display=swap"
21-
rel="stylesheet">
19+
<link href="https://fonts.googleapis.com/css2?family=Kalam:wght@700&family=Ubuntu&family=Varela+Round&display=swap" rel="stylesheet">
2220

2321
<!-- Bootstrap -->
2422

25-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
26-
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
23+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
2724

2825
<!-- CSS -->
2926

@@ -36,8 +33,7 @@
3633

3734
<nav class="navbar fixed-top navbar-expand-xl navbar-dark">
3835
<a class="navbar-brand" href="../index.html">CODEMISTIC</a>
39-
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
40-
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
36+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
4137
<span class="navbar-toggler-icon"></span>
4238
</button>
4339
<div class="collapse navbar-collapse" id="navbarSupportedContent">
@@ -76,25 +72,23 @@
7672
class="fas fa-arrow-left "></i>&nbsp;Back to Index</a></button>
7773
</div>
7874
<div class="wrapper">
79-
<h1>What is an Algorithm?</h1>
75+
<h2>What is an Algorithm?</h2>
8076

8177

8278
<p>An algorithm is a set of well-defined instructions in sequence to solve a problem.</p>
8379

8480
<hr />
85-
<h2>Qualities of a good algorithm</h2>
81+
<h3>Qualities of a good algorithm</h3>
8682

8783
<ol>
8884
<li>Input and output should be defined precisely.</li>
8985
<li>Each step in the algorithm should be clear and unambiguous.</li>
9086
<li>Algorithms should be most effective among many different ways to solve a problem.</li>
91-
<li>An algorithm shouldn&#39;t include computer code. Instead, the algorithm should be written in such a
92-
way
93-
that it can be used in different programming languages.</li>
87+
<li>An algorithm shouldn&#39;t include computer code. Instead, the algorithm should be written in such a way that it can be used in different programming languages.</li>
9488
</ol>
9589

9690
<hr />
97-
<h2>Algorithm Examples</h2>
91+
<h3>Algorithm Examples</h3>
9892

9993
<p><a href="#add">Algorithm to add two numbers</a></p>
10094

@@ -109,11 +103,11 @@ <h2>Algorithm Examples</h2>
109103
<p><a href="#fab">Algorithm of Fibonacci series</a></p>
110104

111105
<hr />
112-
<h2>Examples Of Algorithms In Programming</h2>
106+
<h3>Examples Of Algorithms In Programming</h3>
113107

114108
<p id="add"><strong>Write an algorithm to add two numbers entered by the user.</strong></p>
115109

116-
<pre>
110+
<pre>
117111
Step 1: Start
118112
Step 2: Declare variables num1, num2 and sum.
119113
Step 3: Read values num1 and num2.
@@ -122,11 +116,11 @@ <h2>Examples Of Algorithms In Programming</h2>
122116
Step 5: Display sum
123117
Step 6: Stop
124118
</pre>
125-
<p id="largest"><strong>Write an algorithm to find the largest among three different numbers entered by
119+
<p id="largest"><strong>Write an algorithm to find the largest among three different numbers entered by
126120
the
127121
user.</strong></p>
128122

129-
<pre>
123+
<pre>
130124
Step 1: Start
131125
Step 2: Declare variables a,b and c.
132126
Step 3: Read variables a,b and c.
@@ -143,10 +137,10 @@ <h2>Examples Of Algorithms In Programming</h2>
143137
Step 5: Stop
144138
</pre>
145139

146-
<p id="quadratic"><strong>Write an algorithm to find all roots of a quadratic equation
140+
<p id="quadratic"><strong>Write an algorithm to find all roots of a quadratic equation
147141
ax</strong><strong><sup>2</sup></strong><strong>+bx+c=0.</strong></p>
148142

149-
<pre>
143+
<pre>
150144
Step 1: Start
151145
Step 2: Declare variables a, b, c, D, x1, x2, rp and ip;
152146
Step 3: Calculate discriminant
@@ -163,11 +157,11 @@ <h2>Examples Of Algorithms In Programming</h2>
163157
Step 5: Stop
164158
</pre>
165159

166-
<p id="factorial"><strong>Write an algorithm to find the factorial of a number entered by the
160+
<p id="factorial"><strong>Write an algorithm to find the factorial of a number entered by the
167161
user.</strong>
168-
</p>
162+
</p>
169163

170-
<pre>
164+
<pre>
171165
Step 1: Start
172166
Step 2: Declare variables n, factorial and i.
173167
Step 3: Initialize variables
@@ -181,11 +175,11 @@ <h2>Examples Of Algorithms In Programming</h2>
181175
Step 7: Stop
182176
</pre>
183177

184-
<p id="prime"><strong>Write an algorithm to check whether a number entered by the user is prime or
178+
<p id="prime"><strong>Write an algorithm to check whether a number entered by the user is prime or
185179
not.</strong>
186-
</p>
180+
</p>
187181

188-
<pre>
182+
<pre>
189183
Step 1: Start
190184
Step 2: Declare variables n, i, flag.
191185
Step 3: Initialize variables
@@ -204,9 +198,9 @@ <h2>Examples Of Algorithms In Programming</h2>
204198
Step 7: Stop
205199
</pre>
206200

207-
<p id="fab"><strong>Write an algorithm to find the Fibonacci series till term &le; 1000.</strong></p>
201+
<p id="fab"><strong>Write an algorithm to find the Fibonacci series till term &le; 1000.</strong></p>
208202

209-
<pre>
203+
<pre>
210204
Step 1: Start
211205
Step 2: Declare variables first_term,second_term and temp.
212206
Step 3: Initialize variables first_term &larr; 0 second_term &larr; 1
@@ -298,14 +292,8 @@ <h4 class="foot foot-header">Made with <i style="color:red " class="fa fa-heart
298292

299293

300294
<!-- CSS Scripts -->
301-
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js "
302-
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj "
303-
crossorigin="anonymous "></script>
304-
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js "
305-
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo "
306-
crossorigin="anonymous "></script>
307-
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js "
308-
integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI "
309-
crossorigin="anonymous "></script>
295+
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js " integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj " crossorigin="anonymous "></script>
296+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js " integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo " crossorigin="anonymous "></script>
297+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js " integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI " crossorigin="anonymous "></script>
310298

311299
</body>

dsa_styles.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ h2,
1515
h3,
1616
h5,
1717
h6 {
18-
margin: 50px auto;
18+
margin: 20px auto;
1919
line-height: 1.5;
2020
text-align: left;
2121
}

0 commit comments

Comments
 (0)