home
#include <iostream> #include <vector> #include <algorithm> using namespace...
I need to simulate the execution of a set of tasks that are given. This means that you need to...
I read the answer to some of the similar questions but my question is little different due to fact...
This program checks if given string is in alphabetical order and I am allocating new memory every...
What is SPACE complexity of heapq.heapify in python? Docs says that heapq.heapify(x) ...
The input consists of a set of tasks given in increasing order of start time, and each task has a...
This question is not about difference between Stack and Heap in Java. In C++, both Stack and Heap...
Write the code breaking abstraction to have better efficiency for insertion and changeKey...
This is the common question asked in interviews nowadays that how we can overflow the heap? I have...
Concerning heap problem and memory leaks, I read the following article that stressed on creating...
I made a struct which needs 1 GB of memory. When I allocated it on the heap the program started...
I am currently working on a text-based RPG to keep up my C++ knowledge (and, of course, learn more...
I have the following sheet of data (called "WeightsDB", and below line 30 is my formatting sheet...
I want to learn how to load multiple structures (many students: name, surname, index, address...)...
How do you manually set the VM heap size for Android Studio emulators? I'm trying to set it really...
The max-heaps can have arbitrary branching factors within the same tree itself. For instance given...
I'm trying to test how and where the data is located and destroyed. For the example code below: A...
As we know the following String is saved in the String Constant Pool. String a = "AB"; The...
I have configured 16GB heap in my elastic search node and the node has 36GB in it, the elastic...
In C++ can I return the object unit by reference instead of returning a pointer?
An application is exceeding the expected amount of memory allocated to it, and the top three...
Here is my code: #include<iostream> #include<cstdlib> using namespace std; int...
In the K-Nearest-Neighbor algorithm, we find the top k neighbors closest to a new point out of N...
I have a list structure updated continiously. In every iteration the following steps are...
I'm trying to implement a min heap on a list of tuple. For example: A=[('a',2),('b',1)] how can...
I'm working on adapting a clock program in NodeMCU. The program is reporting heap usage to the...
I have an application server server and 64 GB memory on it. And a java web application on it. What...
I am not able to proceed with heap size range i.e. -Xss512k -Xms512m -Xmx2048m. Even i have tried...
I found this piece of code: void* aligned_malloc(size_t required_bytes, size_t alignment) { int...
Whenever i try to execute any gradle command on any project I get: FAILURE: Build failed with an...