Category: Trending
How to Perform SOAP Requests With Node.js
Hi All, As a developer we are very comfortable with REST API calls but we all faces problem when we need to make SOAP calls . Recently i have developed […]
Merge two sorted arrays in Javascript
In this blog we are writing program to merge two sorted arrays in javascript. Problem : Given two sorted arrays, merge them into a new array that is also sorted. […]
JWT Authentication – Json Web Tokens
Hello People, Today we are going to discuss about JWT authentication – Json Web Tokens and how it works. Securing a website is every developers goal and with http its […]
Rotate a Linked List in Javascript
In this post we are going to Rotate a Linked List in Javascript . For example, if the given linked list is 10->20->30->40->50->60 and k is 4, the list should […]
Reverse a Linked List in Javascript
In this post we are going to reverse a linked list in javascript. Input: Head of following linked list1->2->3->4->NULLOutput: Linked list should be changed to,4->3->2->1->NULL To reverse a linked list […]
Binary Tree Traversals (Inorder, Preorder and Postorder) in Javascript
In previous post we have learned about how can we create a binary search tree in javascript and tried some operations on binary tree like search a node in tree, […]
Binary Search Tree in Javascript
Binary Search Tree is node based data structure which has the below properties Left Nodes of tree is lesser than its parent node. Right Nodes of tree are greater than […]
Edit Distance program in Javascript
We have 2 strings and we can perform below operations on st1 to make it same as str2. Insert Remove Replace Input: str1 = “cat”, str2 = “cut”Output: 1We can […]
Rearrange an array in maximum minimum form in Javascript
In a sorted array of integers, rearrange the array alternately. First element should be the maximum value, second minimum value, third-second max, fourth-second min and so on. Examples Input: arr[] […]
Insertion Sort in Javascript
In last post we have posted about Bubble Sort algorithm in javascript. In this post we will write javascript program on Insertion sort. In Insertion Sort to sort an array […]