Sharon Christine has Published 433 Articles

Cycle Sort

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 15:43:42

627 Views

Cycle Sort is an in-place sorting algorithm. It is also a comparison based sort and efficient for any other in-place sorting technique. It finds the minimum number of memory write to perform the sorting tasks.The complexity of Cycle Sort TechniqueTime Complexity: O(n^2)Space Complexity: O(1)Input and OutputInput: A list of unsorted ... Read More

Pigeonhole Sort

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 15:31:17

760 Views

This is an example of the non-comparison sorting technique. It is used where the number of items and the range of possible key values is approximately the same.To perform this sort, we need to make some holes. The number of holes needed is decided by the range of numbers. In ... Read More

Removing an element from an Array in Javascript

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 14:39:26

140 Views

Let’s consider two cases while removing elements from an array. First, we will see how we can remove an element from the end of the array and in next section we will see how we can remove elements from the start of the array and from a given position of ... Read More

Multi-Dimensional Array in Javascript

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 14:37:44

506 Views

Basically, multi-dimension arrays are used if you want to put arrays inside an array. Let's take an example. Say you wanted to store every 6 hour's temperature for every weekday. You could do something like:let monday = [35, 28, 29, 31]; let tuesday = [33, 24, 25, 29]; //...This is ... Read More

Why formaction attribute is not working outside of
tag?

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 11:31:20

562 Views

We can make the formaction attribute to work outside the tag. The formaction attribute is used to specify more than one submit URLs for one form. When you submit a form, the web browser first checks for a formaction attribute.If the formaction is not present, the web browser moves ... Read More

How to link a submit button to another webpage using HTML?

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 11:16:23

2K+ Views

Submit button automatically submits a form on click. Using HTML forms, you can easily take user input. The tag is used to get user input, by adding the form elements. Different types of form elements include text input, radio button input, submit button, etc.To link a submit button to ... Read More

Joining two Arrays in Javascript

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 08:12:22

167 Views

There are two ways to join 2 arrays in Javascript. If you want to get a new array and not want to disturb the existing arrays while joining the two arrays then you should use the concat method as follows − Examplelet arr1 = [1, 2, 3, 4]; let arr2 = ... Read More

Searching an element in Javascript Array

Sharon Christine

Sharon Christine

Updated on 15-Jun-2020 08:05:09

376 Views

Javascript provides a collection of functions that you can use to find elements in an array. Let's start with the most basic one. The indexOf function goes through the entire array and returns the index of the element you searched for, if it is found else it returns -1. For ... Read More

SAP Associate Level Exam preparation

Sharon Christine

Sharon Christine

Updated on 13-Jun-2020 14:45:10

84 Views

First, let me make your core basics clear.When you are referring to SAP ECC, you are referring to SAP ERP Central Component which is more or less equivalent to the prior SAP R3 System.  ABAP does not play any much part over here.But ABAP resides in the kernel of SAP ... Read More

HTML DOM Input Month step Property

Sharon Christine

Sharon Christine

Updated on 13-Jun-2020 08:50:42

63 Views

The HTML DOM input month step property returns and modify the value of the step attribute of input month field in an HTML document.SyntaxFollowing is the syntax −1. Returning stepobject.step2. Modifying stepobject.step = “number”ExampleLet us see an example of HTML DOM input month step property − Live Demo ... Read More

Advertisements