
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
688 Views
We are required to write a JavaScript function that takes in a number and determines whether or not it is a palindrome number.Palindrome numbers − A palindrome number is that number which reads the same from both left and right sides.For example −343 is a palindrome number6789876 is a palindrome ... Read More

AmitDiwan
237 Views
We are required to write a JavaScript function that takes in a number and determines whether or not it is a self−dividing number.A self−dividing number is a number that is divisible by every digit it contains.It should output “This number is self−dividing” if it is otherwise, it should output “This ... Read More

AmitDiwan
450 Views
We are required to write a JavaScript function that takes in a bunch of numbers and returns the correct sequence of operations to satisfy the equation. The operator that can be used are (+, −, *, /, ^, %).For example −Input : 5 3 8 ... Read More

AmitDiwan
818 Views
Suppose, we have two arrays of numbers that represents two ranges like these −const arr1 = [2, 5]; const arr2 = [4, 7];We are required to write a JavaScript function that takes in two such arrays.The function should then create a new array of range, that is the intersection of ... Read More

AmitDiwan
446 Views
We are required to write a JavaScript function that takes in an array of literals that have repeating values. Our function should return an array of the most common element(s) in the array (if two or more elements appear for the same number of most times then the array should ... Read More

AmitDiwan
338 Views
Suppose we have an array of objects like this −const arr = [ {_id : "1", S : "2"}, {_id : "1", M : "4"}, {_id : "2", M : "1"}, {_id : "" , M : "1"}, {_id : "3", S : "3"} ];We ... Read More

AmitDiwan
214 Views
Suppose, we have two objects like these −const obj1 = { positive: ['happy', 'excited', 'joyful'], negative: ['depressed', 'sad', 'unhappy'] }; const obj2 = { happy: 6, excited: 1, unhappy: 3 };We are required to write a JavaScript function that takes in two such objects. The ... Read More

AmitDiwan
2K+ Views
Given an array of five positive integers, we are required to find the minimum and maximum values that can be calculated by summing exactly four of the five integers.Then print the respective minimum and maximum values as a single line of two spaceseparated long integers.The array is not sorted all ... Read More

AmitDiwan
161 Views
Suppose, we have a long string that represents a number like this −const str = '11222233344444445666';We are required to write a JavaScript function that takes in one such string. Our function is supposed to return an object that should assign a unique "id" property to each unique number in the ... Read More

AmitDiwan
150 Views
We are required to write a JavaScript function that takes in an array of sorted integers and a target average as first and second arguments.The function should determine whether there is a pair of values in the array where the average of the pair equals to the target average.There's a ... Read More