
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
AmitDiwan has Published 10744 Articles

AmitDiwan
660 Views
ProblemWe are required to write a JavaScript function that takes in the width of the screen as the first argument and the aspect ratio (w:h) as the second argument. Based on these two inputs our function should return the height of the screen.ExampleFollowing is the code − Live Democonst ratio = ... Read More

AmitDiwan
3K+ Views
ProblemWe are required to write a JavaScript function that takes in three strings, first string specifies the first name, second string specifies the last name and the third optional string specifies the middle name.Our function should return the full name based on these inputs.ExampleFollowing is the code − Live Democonst firstName ... Read More

AmitDiwan
451 Views
ProblemWe are required to write a JavaScript function that takes in a string. Our function can do the following operations on the string −each character MUST be changed either to the one before or the one after in the alphabet."a" can only be changed to "b" and "z" to "y".Our ... Read More

AmitDiwan
569 Views
ProblemConsider the following sequence sum −$$seq(n, \:p)=\displaystyle\sum\limits_{k=0} \square(-1)^{k}\times\:p\:\times 4^{n-k}\:\times(\frac{2n-k}{k})$$We are required to write a JavaScript function that takes in the numbers n and p returns the value of seq(n, p).ExampleFollowing is the code − Live Democonst n = 12; const p = 70; const findSeqSum = (n, p) => { ... Read More

AmitDiwan
486 Views
ProblemWe are required to write a JavaScript function that takes in a English alphabet string. Our function should return the top three most frequent words present in the string.ExampleFollowing is the code − Live Democonst str = 'Python was developed by Guido van Rossum in the late eighties and early nineties ... Read More

AmitDiwan
291 Views
ProblemWe are required to write a JavaScript function that takes in a lowercase alphabet string and number num.Our function should remove num characters from the array in alphabetical order. It means we should first remove ‘a’ if they exist then ‘b’ , ‘c’ and so on until we hit the ... Read More

AmitDiwan
225 Views
ProblemWe are required to write a JavaScript function that takes in a number, gap as the first argument and a range array of two numbers as the second argument. Our function should return an array of all such prime pairs that have an absolute difference of gap and falls between ... Read More

AmitDiwan
169 Views
ProblemWe are required to write a JavaScript function that takes in an array in which all the numbers appear thrice except one which appears twice and one which appears only one. Our function should find and return these two numbers.ExampleFollowing is the code − Live Democonst arr = [1, 1, 1, ... Read More

AmitDiwan
157 Views
ProblemWe are required to write a JavaScript class, Projectile, which takes in 3 arguments when initialized −starting height (0 ≤ h0 < 200)starting velocity (0 < v0 < 200)angle of the projectile when it is released (0° < a < 90°, measured in degrees).We need to write the following method ... Read More

AmitDiwan
110 Views
ProblemWe are required to write a JavaScript function that takes in a number. Our function should return an array of strings containing the number cut off at each digit.ExampleFollowing is the code − Live Democonst num = 246; const cutOffEach = (num = 1) => { const str = String(num); ... Read More