Skip to main content

Questions tagged [c++]

Programming questions are off-topic here. Do not ask questions about how to write code in C++. However, conceptual questions about computer science are more appropriate. See our help center for the scope of this site.

3 votes
2 answers
117 views

I just solved the following Leetcode problem: All Paths From Source to Target Here is my solution: ...
Platus's user avatar
  • 127
0 votes
0 answers
50 views

Walter E. Brown's CppCon 2014 talk mentions the fact that "concepts" in C++ are built upon the concepts of abstract algebra. The reference mentions work by A. Stepanov which led me to the ...
Utkarsh Sharma's user avatar
-2 votes
1 answer
71 views

I'm trying to solve the following Leetcode problem: https://leetcode.com/problems/path-sum-ii/description/ This solution I came up with is working: https://pastebin.com/ma3DtU5b However, I was not ...
Platus's user avatar
  • 127
1 vote
0 answers
22 views

There is mathematical software for an area of mathematics (i.e., group theory), called GAP. For a while now, I have heard the vague statement that it is "based on C++". I don't know what ...
Shaun's user avatar
  • 141
0 votes
0 answers
26 views

My questions is about the implementation of a BA method to calculate the structure of a scene. More specifically, I would like to calculate, from a single iteration and using two images from two ...
Nelson's user avatar
  • 1
2 votes
0 answers
119 views

The problem is as follows (I got this from CSES). Here is the link of the original problem https://cses.fi/problemset/task/3415/: "You are given a grid of letters. Your task is to calculate the ...
user186575's user avatar
0 votes
0 answers
52 views

int ival = (ia != 0) ? ix = get_value(), ia[index] = ix : ia = new int[sz], ia[index] = 0; In the following example, each side of the conditional operator is a ...
svq0231's user avatar
-1 votes
1 answer
75 views

I am a mathematics student and I want to get data of options from https://bigcharts.marketwatch.com/quickchart/options.asp?symb=SPX into c++ (the strike prices etc.), but is there a way to import it ...
student's user avatar
1 vote
1 answer
214 views

I want to construct a threaded binary tree consisting of nine nodes A, B, C, D, E, F, G, H, and I with post-order threads. Each node has five fields, which are LeftThread (true or false), LeftChild (...
benhpark's user avatar
0 votes
1 answer
105 views

I am currently working on a C++ project where I've introduced some new code to extend its functionality. However, it is very important to ensure that this new code does not introduce any side effects ...
Gizmo's user avatar
  • 73
0 votes
0 answers
62 views

I have been trying to find ways to display a 3d scene on a screen (specifically 480x240px Vex robotics brain). The only ways that I can draw to the screen is with drawing individual pixels or with ...
RBLX Reid's user avatar
-1 votes
1 answer
182 views

I have designed a C++ program to recognize the digits on an ID card based on OpenCV. First I preprocess the ID card image and then segment it based on contours. The segmentation results are as ...
wzh1023's user avatar
  • 11
2 votes
2 answers
579 views

I had a discussion with a C++ developer on whether aborting a thread causes memory leaks. His opinion on how aborting a thread works was all destructors of the stack objects of the thread to abort ...
Thomas W.'s user avatar
  • 271
0 votes
1 answer
78 views

what is the time complexity of: for (i = 1; i <= n; i = 2*i) for (j = 0; j < i; j++) sum++; ? I thought it is O(nlogn) since the otter loop ...
user163594's user avatar
0 votes
0 answers
64 views

Since design ideas, and even the concept of Physical Design (exactly where you put your files), are such a broad topic, may I give a definite example and ask for feedback on the example? Suppose you ...
tarstevs's user avatar

15 30 50 per page
1
2 3 4 5
7