Top "Construction" questions

Use for questions related to building a data structure, such as a heap.

How can building a heap be O(n) time complexity?

Can someone help explain how can building a heap be O(n) complexity? Inserting an item into a heap is …

algorithm heap complexity-theory construction
Thread safe lazy construction of a singleton in C++

Is there a way to implement a singleton object in C++ that is: Lazily constructed in a thread safe manner (…

c++ multithreading singleton construction lazy-initialization
Programmatic HTMLDocument generation using Java

Does anyone know how to generate an HTMLDocument object programmatically in Java without resorting to generating a String externally and …

java html construction
jquery widget, _create or _init

Some jquery plugin extend widget use _create method, while others use _init method, can someone explain the differences between the …

jquery jquery-ui widget construction
Weird "candidate expects 1 argument, 0 provided" in constructor

I'm making a simple threaded server application in C++, thing is, I use libconfig++ to parse my configuration files. Well, …

c++ exception-handling construction member-variables function-try-block
Create mesh from point cloud

I have a set of points that need to be constructed as a set of triangular faces to form a …

mesh construction
Is It Safe to Put a Java Enum in a Static Map During Its Construction Call?

As the title reads, I have the following Enum: public enum MyEnum { FIRST_ENUM("first enum"), SECOND_ENUM("second enum"), …

java enums hashmap instantiation construction