Skip to content

Commit d8cea41

Browse files
committed
fix:<Coming Soon> coming soon image add and image centralize
1 parent 8d8843c commit d8cea41

File tree

9 files changed

+29
-29
lines changed

9 files changed

+29
-29
lines changed

src/app/components/Algorithms/sorting/insertion-sort/insertion-sort.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h1 class="text-center">Insertion Sort</h1>
22
<div class="mt-md-4 mt-3" [innerHtml]="insertionSortMetaData.defination"></div>
33
<div class="mt-md-4 mt-3" [innerHtml]="insertionSortMetaData.workingProcedure"></div>
4-
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="insertionSortMetaData.flowChart"></div>
5-
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="insertionSortMetaData.explainImage"></div>
4+
<div class="mt-md-4 mt-3" [innerHtml]="insertionSortMetaData.flowChart"></div>
5+
<div class="mt-md-4 mt-3 " [innerHtml]="insertionSortMetaData.explainImage"></div>
66
<div class="mt-md-4 mt-3" [innerHtml]="insertionSortMetaData.properties"></div>
77
<div class="mt-md-4 mt-3" [innerHtml]="insertionSortMetaData.applications"></div>
88
<div class="mt-md-4 mt-3" [innerHtml]="insertionSortMetaData.other"></div>

src/app/components/Algorithms/sorting/merge-sort/merge-sort.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<h1 class="text-center"> Merge Sort </h1>
22
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.defination"></div>
33
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.workingProcedure"></div>
4-
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="mergeSortMetaData.flowChart"></div>
5-
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="mergeSortMetaData.explainImage"></div>
4+
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.flowChart"></div>
5+
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.explainImage"></div>
66
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.properties"></div>
77
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.applications"></div>
88
<div class="mt-md-4 mt-3" [innerHtml]="mergeSortMetaData.other"></div>

src/app/components/Algorithms/sorting/selection-sort/selection-sort.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ <h1 class="text-center">Selection Sort</h1>
22
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.defination"></div>
33
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.properties"></div>
44
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.workingProcedure"></div>
5-
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="selectionSortMetaData.flowChart"></div>
6-
<div class="mt-md-4 mt-3 col-md-7" [innerHtml]="selectionSortMetaData.explainImage"></div>
5+
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.flowChart"></div>
6+
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.explainImage"></div>
77
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.applications"></div>
88
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.advantage"></div>
99
<div class="mt-md-4 mt-3" [innerHtml]="selectionSortMetaData.disadvantage"></div>

src/app/core/algorithms/backtracking-meta-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const backtracking = {
1717
at 'A' and we divided our problem into three smaller sub-probelms 'B', 'D' and 'F'. And using this sub-problem, we have three
1818
possible path to get to our solution -- 'C', 'E', & 'G'.`,
1919

20-
example:'assets/ds-image/DSA-404.webp',
20+
example:'assets/ds-image/comming-soon.jpg',
2121

2222
properties:[
2323
`A backtracking algorithm uses the depth-first search method. When it starts exploring the solutions, a bounding function is

src/app/core/algorithms/greedy-meta-data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const greedyData = {
88
This algorithm may not produce the best result for all the problems. It's because it always goes for the local best
99
choice to produce the global best result.
1010
`,
11-
example: 'assets/ds-image/DSA-404.webp',
11+
example: 'assets/ds-image/comming-soon.jpg',
1212
properties:[
1313
`<b>Greedy Choice Property:</b> If an optimal solution to the problem can be found by choosing the best choice at
1414
each step without reconsidering the previous steps once chosen, the problem can be solved using a greedy approach.

src/app/core/algorithms/searching-meta-data.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const linearSearchData = {
3131
defination: `Linear Search is defined as a sequential search algorithm that starts at one end and goes through each
3232
element of a list until the desired element is found, otherwise the search continues till the end of the data set.
3333
It is the easiest searching algorithm`,
34-
flowChart: 'assets/ds-image/DSA-404.webp',
35-
explainImage: 'assets/ds-image/DSA-404.webp',
34+
flowChart: 'assets/ds-image/comming-soon.jpg',
35+
explainImage: 'assets/ds-image/comming-soon.jpg',
3636
workingProcedure: [
3737
`Start from the leftmost element of arr and one by one compare 'x' with each element of arr`,
3838
`If 'x' matches with an element, return the index`,
@@ -92,8 +92,8 @@ export const linearSearchMetaData: Algorithms = {
9292
const binarySearchData = {
9393
defination:`Binary Search is a searching algorithm used in a sorted array by repeatedly dividing the search interval in half.
9494
The idea of binary search is to use the information that the array is sorted and reduce the time complexity to O(Log n)`,
95-
flowChart: 'assets/ds-image/DSA-404.webp',
96-
explainImage: 'assets/ds-image/DSA-404.webp',
95+
flowChart: 'assets/ds-image/comming-soon.jpg',
96+
explainImage: 'assets/ds-image/comming-soon.jpg',
9797
properties: [
9898
`The pre-condition for the binary search is that the elements must be arranged in a sorted order`,
9999
`The implementation of binary search is limited as it can be implemented only on those data structures
@@ -157,8 +157,8 @@ export const binarySearchMetaData : Algorithms = {
157157
const jumpSearchData = {
158158
defination:`Jump Search is a searching algorithm for sorted arrays. The basic idea is to check fewer elements by
159159
jumping ahead by fixed steps or skipping some elements in place of searching all elements.`,
160-
flowChart: 'assets/ds-image/DSA-404.webp',
161-
explainImage: 'assets/ds-image/DSA-404.webp',
160+
flowChart: 'assets/ds-image/comming-soon.jpg',
161+
explainImage: 'assets/ds-image/comming-soon.jpg',
162162
properties:[
163163
`This algorithm works only for sorted input arrays`,
164164
`Optimal size of the block to be skipped is √n, thus resulting in the time complexity O(√n2)`,
@@ -215,8 +215,8 @@ const interpolationSearchData = {
215215
data points. Binary Search always goes to the middle element to check. On the other hand, interpolation search may go to
216216
different locations according to the value of the key being searched. For example, if the value of the key is closer to the
217217
last element, interpolation search is likely to start search toward the end side.`,
218-
flowChart: 'assets/ds-image/DSA-404.webp',
219-
explainImage: 'assets/ds-image/DSA-404.webp',
218+
flowChart: 'assets/ds-image/comming-soon.jpg',
219+
explainImage: 'assets/ds-image/comming-soon.jpg',
220220
properties: [
221221
`Interpolation searching algorithm is only used when the elements in an array is sorted and uniformly distributed`,
222222
`pos = low + ((target – A[low]) * (high – low) / (A[high] – A[low]))`
@@ -273,8 +273,8 @@ const exponentialSearchData = {
273273
assuming that the list is sorted in ascending order, the algorithm looks for the first exponent, j, where the value 2^j is greater
274274
than the search key. This value, 2^j becomes the upper bound for the binary search with the previous power of 2, 2^(j - 1), being the
275275
lower bound for the binary search`,
276-
flowChart: 'assets/ds-image/DSA-404.webp',
277-
explainImage: 'assets/ds-image/DSA-404.webp',
276+
flowChart: 'assets/ds-image/comming-soon.jpg',
277+
explainImage: 'assets/ds-image/comming-soon.jpg',
278278
properties: [
279279
`Finding the range in which the key could sit`,
280280
`Applying binary search in this range`,

src/app/core/algorithms/sorting-meta-data.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ const quickSortData = {
245245
The list is divided into two partitions such that "all elements to the left of pivot are smaller than the pivot
246246
and all elements to the right of pivot are greater than or equal to the pivot".
247247
`,
248-
flowChart:"assets/ds-image/DSA-404.webp",
249-
explainImage:"assets/ds-image/DSA-404.webp",
248+
flowChart:"assets/ds-image/comming-soon.jpg",
249+
explainImage:"assets/ds-image/comming-soon.jpg",
250250
workingProcedure:[
251251
'Consider the first element of the list as pivot (i.e., Element at first position in the list)',
252252
'Define two variables i and j. Set i and j to first and last elements of the list respectively',
@@ -314,8 +314,8 @@ const countingSortData = {
314314
defination: `Counting sort is a sorting algorithm that sorts the elements of an array by counting the number
315315
of occurrences of each unique element in the array. The count is stored in an auxiliary array and
316316
the sorting is done by mapping the count as an index of the auxiliary array.`,
317-
flowChart:"assets/ds-image/DSA-404.webp",
318-
explainImage:"assets/ds-image/DSA-404.webp",
317+
flowChart:"assets/ds-image/comming-soon.jpg",
318+
explainImage:"assets/ds-image/comming-soon.jpg",
319319
workingProcedure:[
320320
`Iterate through the input array to find the highest value`,
321321
`Declare a new array with the value 0 and a size of max+1`,
@@ -384,8 +384,8 @@ const radixSortData = {
384384
defination: `Radix sort is an algorithm that uses counting sort as a subroutine to sort an array of integers/strings in
385385
either ascending or descending order. The main idea of radix sort revolves around applying counting sort digit by
386386
digit on the given array`,
387-
flowChart:"assets/ds-image/DSA-404.webp",
388-
explainImage:"assets/ds-image/DSA-404.webp",
387+
flowChart:"assets/ds-image/comming-soon.jpg",
388+
explainImage:"assets/ds-image/comming-soon.jpg",
389389
workingProcedure:[
390390
`Find the maximum element of the array, let it be max`,
391391
`Find the number of digits in max, let it be k`,
@@ -449,8 +449,8 @@ const bucketSortData = {
449449
defination: `Bucket sort is a sorting technique that uses the Scatter-Gather-Approach to sort the array.
450450
It divides the unsorted array into separate groups and calls them buckets. Sort the individual buckets,
451451
and then gather them all together to form the final sorted array`,
452-
flowChart: 'assets/ds-image/DSA-404.webp',
453-
explainImage: 'assets/ds-image/DSA-404.webp',
452+
flowChart: 'assets/ds-image/comming-soon.jpg',
453+
explainImage: 'assets/ds-image/comming-soon.jpg',
454454
workingProcedure: [
455455
`If All the elements are in the range of [0,1] then no need to follow initial two steps
456456
and in third step create 10 empty buckets and in step four bucketIndex = array[i]*10`,
@@ -542,8 +542,8 @@ const shellSortData = {
542542
When an element has to be moved far ahead, many movements are involved. The idea of ShellSort is to allow the exchange
543543
of far items. In Shell sort, we make the array gap-sorted for a large value of gap. We keep reducing the value of gap
544544
until it becomes 1. An array is said to be gap-sorted if all sublists of every gap’th element are sorted.`,
545-
flowChart: 'assets/ds-image/DSA-404.webp',
546-
explainImage: 'assets/ds-image/DSA-404.webp',
545+
flowChart: 'assets/ds-image/comming-soon.jpg',
546+
explainImage: 'assets/ds-image/comming-soon.jpg',
547547
workingProcedure:[
548548
'Initialize the value of gap size. Example: gap',
549549
' Divide the list into smaller sub-part. Each must have equal intervals to gap',

src/app/helper/helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Helper{
1414
}
1515

1616
static setExampleImage(title:string, url:string): string {
17-
return `<h4>${title}</h4> <img src="${url}" class="img-fluid" alt="${title}" />`;
17+
return `<h4>${title}</h4> <div class="text-center"><img src="${url}" class="img-fluid col-md-7" alt="${title}" /></div>`;
1818
}
1919

2020
static setHeader(header:string):string {
85 KB
Loading

0 commit comments

Comments
 (0)