# Category: Solutions

### Force / turn off garbage collection in python

Force garbage collection Turn off garbage collection

### Get indexes of all matches from Array.filter in JavaScript

For simple arrays For Array of Objects

### Export JSON to XLSX using Sheet.js

This code snippet exports a JSON / JSON Array to a XLSX formatted file. I used Sheet.js version 0.14.0.

### Pad a number to two digits with Javascript

Similar to padding a number with leading zeros, we can pad a number into two digits in JavaScript.

### Get the URL port number of a web page using JavaScript

To get the URL port number of a web page in JavaScript we can use the window.location object in Location API. This method will return aÂ USVStringÂ containing theÂ portÂ number of the URL, […]

### Remove decimal part from a number in JavaScript

In JavaScript, we can use the parseInt() or Math.trunc() function to remove the decimal parts from a number.

### Implement a Queue using two Stacks – JavaScript Solution

This problem is the opposite of implementing stacks using two queues. Aim is to construct a queue data structure using only the two stacks in JavaScript.

### Implement a Queue using two Stacks – C# Solution

This problem is the opposite of implementing stacks using two queues. Aim is to construct a queue data structure using only the two stacks in C#.

### Implement a Queue using two Stacks – Python Solution

This problem is the opposite of implementing stacks using two queues. Aim is to construct a queue data structure using only the two stacks in Python

### Implement a Queue using two Stacks – Java Solution

This problem is the opposite of implementing stacks using two queues. Aim is to construct a queue data structure using only the two stacks.

### Implement Stack using Two Queues – Java Solution

Convert a queue with their standard operations (enqueue,Â dequeue,Â isempty,Â size) to a stack with its standard operations (pop,Â push,Â isempty,Â size).

### Convert a Singly Linked List to Circular Linked List – Python Solution

To convert a singly linked list to circular linked list, we will set next pointer of tail node to head pointer. Create a copy of head pointer (temp). Traverse the […]