
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
1K+ Views
In this post, we will understand the difference between internal and external fragmentation −Internal FragmentationThe difference between the memory allocated and the space required is known as internal fragmentation.In this fragmentation, fixed-sized memory blocks are used to process data.This process occurs when a method or process is larger than the ... Read More

AmitDiwan
2K+ Views
In this post, we will understand the difference between contiguous and non-contiguous memory allocation −Contiguous Memory AllocationIn this allocation type, the consecutive blocks of memory is allocated to a file/process.It executes quickly in comparison to non-contiguous memory.It is easy to be controlled by the operating system.Minimum overhead since there are ... Read More

AmitDiwan
13K+ Views
In this post, we will understand the difference between a linker and a loader −LinkerThe main function of the linker is to generate executable files.The linker takes the input as the object code which would be generated by a compiler/assembler.The process of linking can be understood as a method to ... Read More

AmitDiwan
132 Views
ProblemWe are required to write a JavaScript function that takes in a string str. The job of our function is to reverse it, omitting all non-alphabetic characters.ExampleFollowing is the code − Live Democonst str = 'exa13mple'; function reverseLetter(str) { const res = str.split('') .reverse() .filter(val => /[a-zA-Z]/.test(val)) ... Read More

AmitDiwan
172 Views
ProblemSuppose the following sequence:Seq: 1/1 , 1/1x2 , 1/1x2x3 , 1/1x2x3x4 , ....The nth term of this sequence will be −1 / 1*2*3 * ... nWe are required to write a JavaScript function that takes in a number n, and return the sum of first n terms of this sequence.ExampleFollowing ... Read More

AmitDiwan
1K+ Views
ProblemWe are required to write a JavaScript function that lives on the prototype object of the String class.It should take in a string separator as the only argument (although the original split function takes two arguments). And our function should return an array of parts of the string separated and ... Read More

AmitDiwan
363 Views
ProblemWe are required to write a JavaScript function that takes in an array of numbers. Our function should construct and return a new array in which each corresponding element is the sum of all the elements right to it (including it) in the input array.ExampleFollowing is the code − Live Democonst ... Read More

AmitDiwan
155 Views
ProblemWe are required to write a JavaScript function that takes in an array of numbers and a single number as two arguments.Our function should filter the array to contain only those numbers that are divisible by the number provided as second argument and return the filtered array.ExampleFollowing is the code ... Read More

AmitDiwan
220 Views
ProblemWe are required to write a JavaScript function that takes in an array of integers (negatives and positives).Our function should convert all positives to negatives and all negatives to positives and return the resulting array.ExampleFollowing is the code − Live Democonst arr = [5, 67, -4, 3, -45, -23, 67, 0]; ... Read More

AmitDiwan
676 Views
ProblemWe are required to write a JavaScript function that takes in a number that specifies speed in kmph and it should return the equivalent speed in cm/s.ExampleFollowing is the code − Live Democonst kmph = 12; const convertSpeed = (kmph) => { const secsInHour = 3600; const centimetersInKilometers = ... Read More