-
Notifications
You must be signed in to change notification settings - Fork 0
/
Practice.html
84 lines (73 loc) · 3.77 KB
/
Practice.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Code Hub | Practice</title>
<!-- Link to Bootstrap CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles.css">
<style>
.col-md-4 {
border: 1px solid #3498db;
padding: 15px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="#">
<img src="Images/icon.png" alt="The Code Hub Logo" width="30" height="30" class="d-inline-block align-top">
The Code Hub
</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">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="lessons.html">Lessons</a>
</li>
<li class="nav-item">
<a class="nav-link" href="practice.html">Practice</a>
</li>
<li class="nav-item">
<a class="nav-link" href="flashcards.html">Flashcards</a>
</li>
<li class="nav-item">
<a class="nav-link" href="register.html">Register</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="FAQ.html">FAQ</a>
</li>
</ul>
</div>
</nav>
<div class="container mt-4">
<h1 class="text-center">Practice Problems</h1>
<p>On this page, you can find programming problems with their corresponding answers. You can practice various languages here such as Python, C++, and Java.</p>
<div class="row">
<div class="col-md-4">
<h2>Problem 1</h2>
<p>Given an array arr of n elements that is first strictly increasing and then maybe strictly decreasing, find the maximum element in the array.</p>
<p>Solution can be found <a href="https://www.geeksforgeeks.org/find-a-peak-in-a-given-array/" target="_blank">here</a>.</p>
</div>
<div class="col-md-4">
<h2>Problem 2</h2>
<p>Given a string, the task is to reverse the order of the words in the given string. </p>
<p>Solution can be found <a href="https://www.geeksforgeeks.org/reverse-words-in-a-given-string/" target="_blank">here</a>.</p>
</div>
<div class="col-md-4">
<h2>Problem 3</h2>
<p>"Given an array arr[] of size N and a number K, where K is smaller than the size of the array. Find the K’th smallest element in the given array. Given that all array elements are distinct.</p>
<p>Solution can be found <a href="https://www.geeksforgeeks.org/kth-smallest-largest-element-in-unsorted-array/" target="_blank">here</a>.</p>
</div>
</div>
<p>You can use this <a href="https://www.programiz.com/java-programming/online-compiler/" target="_blank">compiler</a> to test and run your code.</p>
</div>
</body>
</html>