« first day (4018 days earlier)      last day (296 days later) » 

00:16
REFRESH! There are 6202 unanswered questions (92.0087 answered)
 
2 hours later…
02:01
 
1 hour later…
03:15
If the code works and you just want to optimize it, you should ask on Code Review instead of StackOverflow. — Remy Lebeau 51 secs ago
03:54
0
Q: Is there a way to make it faster?

yuri nunesI'm working on adding image drawing and erasing capabilities using OpenCV in C++. But the problem is that it's not fluid at all, the drawing only appears when I release the mouse and it appears very straight, as you can see in this video #include <opencv2/opencv.hpp> using namespace std; using n...

 
2 hours later…
06:18
@CaptainObvious How do I write a title?
06:49
By the way, StackOverflow is for broken code, CodeReview StackExchange is for working code — flackoverstow 41 secs ago
 
3 hours later…
09:20
Check out this solution. We are using it for a few years now and it's great. codereview.stackexchange.com/a/238506/224952Artur 40 secs ago
09:49
If your code works, you can seek more in-depth feedback at codereview.se — mickmackusa 28 secs ago
10:15
possible answer invalidation by Peter Mortensen on question by John: codereview.stackexchange.com/posts/291868/revisions
@Duga Fine - code fence only
possible answer invalidation by Peter Mortensen on question by John: codereview.stackexchange.com/posts/291868/revisions
possible answer invalidation by Peter Mortensen on question by John: codereview.stackexchange.com/posts/291868/revisions
possible answer invalidation by Peter Mortensen on question by John: codereview.stackexchange.com/posts/291868/revisions
 
3 hours later…
13:25
Monking
 
1 hour later…
14:35
0
Q: String Calculator in C++

JimmyHuAs a coding exercise, I am trying to implement a calculator which takes string as input, with addition (+), subtraction (-), multiplication (*), division (/) and power (^) functions. For example, given input string "-12.3456 + 2 ^ 3 * 3.123" to a function, it can output double result "12.6384". T...

14:52
15:21
-1
Q: Clique Connect: minimum spanning tree

user24714692Problem Statement You are given a weighted undirected graph G with N vertices, numbered 1 to N. Initially, G has no edges. You will perform M operations to add edges to G. The i-th operation (1≤i≤M) is as follows: You are given a subset of vertices Si={Ai,1, Ai,2, ,…,Ai,Ki} consisting of Ki verti...

 
1 hour later…
16:29
0
Q: Loops - Why is my solution so much slower for hackerrank new year chaos

user12138762I was doing the hackerrank "new year chaos" problem. Here is the description: It is New Year's Day and people are in line for the Wonderland rollercoaster ride. Each person wears a sticker indicating their initial position in the queue from 1 to n. Any person can bribe the person directly in fron...

 
1 hour later…
17:38
0
Q: Rust implementation of a BTree

Lucas PaixãoI'm studying rust, and I decided to implement a BTree as a way of learning the language. Can anyone give me suggestions on the code? As the language has no inheritance, and we must replace it with delegation, I believe I am a little lost in the concepts of an object-oriented language. My concerns...

 
1 hour later…
18:47
0
Q: How to refactor the invoice function to prevent spaghetti code in Laravel?

Fauzan ZamanI'm learning Laravel to create a simple marketplace project, with a shopping cart feature, using a query builder. So the user can add products to the cart, when the user wants to pay an invoice will be created, along with the items purchased in the invoice Below is an example of the logic for the...

19:15
1
Q: how can I make the webRTC and signaling feature code production ready?

AamirI am learning webRTC and tried to implement signaling service through websockets. I am still a beginner in backend development so not sure how correct my code is. Can you please review it and let me know the mistakes and how can I make scale it for multiple users using the service in real-time? s...

19:43
I’m voting to close this question because it was reposted on Code ReviewBergi 37 secs ago
 
2 hours later…
21:55
0
Q: A simple ray marcher for the command line

KnoggerThis is my attempt at creating a ray marcher for the command line for fun. I have some prior experience with C programming, although I'm far from being an expert, and little to no experience with computer graphics (so the renderer is probably going to be a mess 😅). Any feedback on the implementa...


« first day (4018 days earlier)      last day (296 days later) »