AmitDiwan has Published 10744 Articles

Difference Between Server-side Scripting and Clientside Scripting

AmitDiwan

AmitDiwan

Updated on 23-Mar-2021 07:38:59

5K+ Views

In this post, we will understand the difference between server-side scripting and client-side scripting.Server-side ScriptingIt helps work with the back end.It doesn’t depend on the client.It runs on the web server.It helps provide a response to every request that comes in from the user/client.This is not visible to the client ... Read More

Difference Between GET and POST Method in HTML

AmitDiwan

AmitDiwan

Updated on 23-Mar-2021 07:30:17

4K+ Views

In this post, we will understand the difference between GET and POST methods in HTML.GET MethodThe parameters are placed inside the URL.Its main goal is to retrieve the data/documents present inside it.It has the ability to bookmark the results of the query.It is vulnerable, and not secure enough.This is because ... Read More

Difference Between Linear Queue and Circular Queue

AmitDiwan

AmitDiwan

Updated on 23-Mar-2021 07:14:18

3K+ Views

In this post, we will understand the difference between linear queue and circular queue −Linear QueueIt is a linear data structure, which data is arranged in a linear pattern.Operations such as insertion and deletion are done from rear and front respectively.It requires more memory, since data is stored in a ... Read More

Explain the Difference Between Definition and Declaration

AmitDiwan

AmitDiwan

Updated on 23-Mar-2021 07:13:31

2K+ Views

In this post, we will understand the difference between definition and declaration.DefinitionDefinition, with respect to a function indicates that the body of the function has been developed.With respect to variable, it means a value has been associated/defined with that variable.A function can be defined only once.Once a function or variable ... Read More

Explain the Difference Between Linear and Non-linear Data Structure

AmitDiwan

AmitDiwan

Updated on 23-Mar-2021 07:11:07

898 Views

In this post, we will understand the difference between linear data structure and non-linear data structure.Linear Data StructureThe elements of such a structure are arranged sequentially.Every element can be accessed by traversing through the linear structure.All the elements of a linear structure are at a single level, i.e there is ... Read More

Super Ugly Numbers JavaScript

AmitDiwan

AmitDiwan

Updated on 20-Mar-2021 05:46:18

213 Views

Super Ugly NumberSuper ugly numbers are positive numbers whose all prime factors are in the given prime list primes of size k. For example, [1, 2, 4, 7, 8, 13, 14, 16, 19, 26, 28, 32] is the sequence of the first 12 super ugly numbers given primes = [2, ... Read More

Counting smaller numbers after corresponding numbers in JavaScript

AmitDiwan

AmitDiwan

Updated on 20-Mar-2021 05:43:50

198 Views

ProblemWe are required to write a JavaScript function that takes in an array of Numbers as the first and the only argument.Our function should prepare a new array based on the input array. And each corresponding element of this new array should be the count of elements smaller than the ... Read More

Limiting duplicate character occurrence to once in JavaScript

AmitDiwan

AmitDiwan

Updated on 20-Mar-2021 05:42:10

183 Views

ProblemWe are required to write a JavaScript function that takes in a string, str, as the only argument.The function should prepare a new string based on the input string in which the only one appearance of each character is kept and the character kept is the one which makes the ... Read More

Maximum length product of unique words in JavaScript

AmitDiwan

AmitDiwan

Updated on 20-Mar-2021 05:39:40

138 Views

ProblemWe are required to write a JavaScript function that takes in an array of strings (only lowercase string alphabets) as the first and the only argument.The function should pick two such strings from the array that shares no common characters and have the maximum product of their lengths. And then ... Read More

Switching on and off bulb in JavaScript

AmitDiwan

AmitDiwan

Updated on 20-Mar-2021 05:37:36

659 Views

ProblemConsider this following situation −There are n bulbs that are initially off. We first turn on all the bulbs. Then, we turn off every second bulb. On the third round, we toggle every third bulb (turning on if it's off or turning off if it's on).In general, for the ith ... Read More

Advertisements