
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
126 Views
We are required to write a JavaScript function that takes in an array of numbers and returns true if it’s either strictly increasing or strictly decreasing, otherwise returns false.In Mathematics, a strictly increasing function is that function in which the value to be plotted always increases. Similarly, a strictly decreasing ... Read More

AmitDiwan
218 Views
We are required to write a JavaScript function that takes in a number as the first argument, say n, and an array of numbers as the second argument. The function should return the smallest n digit number which is a multiple of all the elements specified in the array.If there ... Read More

AmitDiwan
111 Views
We have an array of arrays like this −const arr = [[12, 56], [3, 45], [23, 2], [2, 6], [2, 8]];Note that while the array can have any number of elements, each subarray should strictly contain two numbers.The two numbers in each subarray represents a fraction. Like the fraction represented ... Read More

AmitDiwan
182 Views
We are required to write a JavaScript function that takes in two numbers a and b returns their digit distance.Digit distance:The digit distance of two numbers is the absolute sum of the difference between their corresponding digits.For example:If the numbers are: 345 and 678Then the digit distance will be −|3-6| ... Read More

AmitDiwan
1K+ Views
Suppose, we have an array of strings like this where strings might contain duplicate characters −const arr = ['54gdgdfe3', '434ffd', '43frdf', '43fdhnh', 'wgcxhjny', 'fsdf34'];We are required to write a JavaScript function that takes in one such array and returns the very first element from the array that contains 0 duplicate ... Read More

AmitDiwan
130 Views
We are required to write a JavaScript function that takes in an array of numbers and sorts the array such that first all the even numbers appear in ascending order and then all the odd numbers appear in ascending order.For example: If the input array is −const arr = [2, ... Read More

AmitDiwan
195 Views
We have a string of length m that contains first m letters of the English alphabets, but somehow, one element went missing from the string. So now the string contains m-1 letters.We are required to write a function that takes in one such string and returns the missing element from ... Read More

AmitDiwan
100 Views
We are required to write a JavaScript function that takes in a string and a number, say n, and the function should return a new string in which all the letters of the original string are repeated n times.For example: If the string is −const str = 'how are you'And ... Read More

AmitDiwan
204 Views
We are required to write a JavaScript function that takes in a string and changes every letter of the string from the English alphabets to its succeeding element.For example: If the string is −const str = 'how are you';OutputThen the output should be −const output = 'ipx bsf zpv'Therefore, let’s ... Read More

AmitDiwan
508 Views
We are required to write a JavaScript function that takes in an array with both positive and negative numbers and returns the absolute sum of all the elements of the array. We are required to do this without taking help of any inbuilt library function.For example: If the array is ... Read More