
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
406 Views
Let’s say, we have two arrays, one contains the correct answer strings of some questions and one contains the answers attempted by a candidate, but somehow the arrays got shuffled and now they don’t have answers in corresponding order. But we can be sure that no two questions had the ... Read More

AmitDiwan
211 Views
Let’s say, we have an array of objects like this −Exampleconst arr = [ {text:'use'}, {text: 'secur'}, {text: 'form'}, {text: 'user'}, {text: 'users'}, {text: 'form'}, {text: 'secur'}, {text: 'sec'}, {text: 'users'}, {text: 'secu'}, {text: 'secur'}, {text: 'for'}, ... Read More

AmitDiwan
272 Views
We have to write an array function (Array.prototype.get()) that takes in three arguments first, a number n, second is also a number, say m, (m this.length-1){ return false; }; const res = []; for(let i = ind, j = 0; j < num; ... Read More

AmitDiwan
416 Views
Let’s say, we have an array of strings, basically it is an array of number strings like this −const arr = ['3', '3', '55', '23', '67', '43', '12', '67', '87', '12'];We are required to write a JavaScript function that takes in one such array and returns the sum of all ... Read More

AmitDiwan
670 Views
Watson gives Sherlock an array A of length N. Then he asks him to determine if there exists an element in the array such that the sum of the elements on its left is equal to the sum of the elements on its right.We have to write this function, it ... Read More

AmitDiwan
554 Views
Let’s say, we have two objects like these −const a = { Make: "Apple", Model: "iPad", hasScreen: "yes", Review: "Great product!", }; const b = { Make: "Apple", Model: "iPad", waterResistant: false };We are required to write a function that counts the number ... Read More

AmitDiwan
139 Views
We have an array of Number / String literals that contains some values (some are repetitive as well). Our job is to write a function that returns the element from the array which appears for the greatest number of times in the array.For example − if the input array is ... Read More

AmitDiwan
266 Views
Let’s say, we have an array with a huge number of Number entries and are required to compare the time recursion takes versus the time a simple loop takes versus the time ES6 function takes in summing all the entries of the array i.e. recursion vs for loop vs ES6 ... Read More

AmitDiwan
480 Views
We have an array of Numbers, and we are required to write a function that returns the second smallest value from the array.For example − if the array is −const arr = [67, 87, 56, 8, 56, 78, 54, 67, 98, 56, 54];Then the output should be the following −54because ... Read More

AmitDiwan
1K+ Views
We have a string that contains some repeated letters like this −const a = "fdsfjngjkdsfhhhhhhhhhhhfsdfsd";Our job is to write a function that returns the count of maximum consecutive same letters in a streak. Like in the above string the letter h appears for 11 times in a row consecutively, so ... Read More