« first day (2724 days earlier)      last day (672 days later) » 

1:40 AM
ML Classification 0.025980072867466453 (Old classification 0.43)
Your second code has undefined behaviour, since the arrays are uninitialised (accessing the value of uninitialised variable causes undefined behaviour). In the presence of undefined behaviour, compilers often take liberties such as removing code in ways that are counter-intuitive to programmers - in this case, that can result in eliminating one or more of your nested loops. — Peter just now
 
 
3 hours later…
4:13 AM
ML Classification 0.05157259696643012 (Old classification 0.4)
A textbook quality header, by the way. Two thumbs up. None of the usual mistakes that mess up new C++ programmers. — user4581301 just now
 
 
1 hour later…
5:32 AM
ML Classification 0.1694134212141261 (Old classification 0.42000002)
SWIFT exists for 50 years and Swift for how many? 5? 6? So maybe Swift programmers should look for their own tag instead? — Dmitri T 30 secs ago
 
 
1 hour later…
6:53 AM
Edits fetched for 276964: 2. quota remaining 9043
Edits fetched for 276964: 2. quota remaining 9035
 
7:42 AM
ML Classification 7.258927672106542E-4 (Old classification 0.4)
This is yet another case of not knowing C++ properly enough to involve yourself in questions on LeetCode. The leetcode site, and other "competitive coding" sites assume you know the language you will be using well enough to not make simple mistakes like this -- those sites ask random puzzle questions geared towards experienced programmers. Knowing to use an integer type that will not overflow is basic C++ knowledge. Using leetcode to learn C++ is a waste of time, as that site (and others) are not there to teach C++. — PaulMcKenzie 39 secs ago
ML Classification 7.258927672106542E-4 (Old classification 0.4)
@Sina This is yet another case of not knowing C++ properly enough to involve yourself in questions on LeetCode. The leetcode site, and other "competitive coding" sites assume you know the language you will be using well enough to not make simple mistakes like this -- those sites ask random puzzle questions geared towards experienced programmers. Knowing to use an integer type that will not overflow is basic C++ knowledge. Using leetcode to learn C++ is a waste of time, as that site (and others) are not there to teach C++. — PaulMcKenzie 11 secs ago
 
7:55 AM
ML Classification 7.084107130769439E-4 (Old classification 0.4)
This is the code for The pascal triangle problem in leetcode: -- Sites such as leetcode assume you know C++ well enough to never make mistakes such as you're making now. The questions on leetcode are geared towards experienced C++ programmers who just want to solve some random puzzle questions. Leetcode and similar "competitive coding" sites are not there to teach basic C++. — PaulMcKenzie just now
 
8:18 AM
Edits fetched for 277899: 4. quota remaining 8939
 
8:33 AM
Edits fetched for 277899: 5. quota remaining 8918
Edits fetched for 277899: 5. quota remaining 8911
 
 
1 hour later…
9:40 AM
In SO, you won't get answers to such questions. You can check at softwarerecs.stackexchange.com or ask in discussion forumns, chat channels etc. — Nishant 42 secs ago
 
 
3 hours later…
1:24 PM
ML Classification 0.11073638645328009 (Old classification 0.0)
Questions that ask "where do I start?" are typically too broad and are not a good fit for this site. People have their own method for approaching the problem and because of this there cannot be a correct answer. Give a good read over Where to Start and edit your post. — Dharman ♦ 44 secs ago
 
 
2 hours later…
3:14 PM
ML Classification 0.19539798794029886 (Old classification 0.0)
Please read the Open letter to students with homework problems and How do I ask and answer homework questions?. Just copy/pasting your assignments will not win you any friends. — Quentin 25 secs ago
 
3:34 PM
ML Classification 0.49581365314108006 (Old classification 1.6)
You might find Testing multithreaded race conditions over on Software Engineering worth reading -- the conversation includes mentions of several relevant (albeit mostly not Python-ecosystem-specific) tools, including Helgrind. — Charles Duffy 20 secs ago
 
 
1 hour later…
4:49 PM
ML Classification 0.039652006304176 (Old classification 0.4)
Pseudocode is an artificial and informal language that helps programmers develop algorithms — Aviral Jain 54 secs ago
 
5:03 PM
Edits fetched for 277885: 5. quota remaining 8304
Edits fetched for 277885: 5. quota remaining 8299
 
5:30 PM
ML Classification 0.0011161647843389389 (Old classification 0.4)
@Essam There really, truly is no way to answer this other than "it's undefined". There are unfortunately pockets of programmers who believe they have some secret means of comprehending these expressions, but since those pockets are insane and don't know C, it's impossible to for an outsider to construct an answer they'd consider "correct". — Steve Summit 50 secs ago
2022-07-06T17:34:04.408585Z Quota has been reset. Was 8263 is now 9999
 
6:12 PM
ML Classification 0.0896932131484114 (Old classification 0.0)
i know im just trying to build up my skill as i want to be a software engineer when i grow up — pugnacious unrest 36 secs ago
 
 
1 hour later…
7:16 PM
ML Classification 0.0024705264348623386 (Old classification 0.0)
Ah, gotcha - thanks for the note on pronouns. I hate to be fussy, and I am aware that this theme is a great irritation for some - I am just conscious that a significant minority of people in tech assume "all software engineers are obviously male", and I have committed myself to calling it out. — halfer 58 secs ago
 
 
2 hours later…
8:50 PM
ML Classification 0.03592016318465812 (Old classification 1.0)
I don't think this is a good fit for this site since it's quite broad and there's a lot of unknowns, like what the 350 lines of code look like. For example, does each fn* need to access self? Are they pure functions? Would any of the code be useful beyond initializing the class? Speaking of that, I can also imagine a fifth option: moving the functions into the module namespace. Stack Overflow is meant for specific problems -- things preventing you from accomplishing a goal. For this, which is more about design / best practices, it might be better to ask on Software Engineering. — wjandrea 37 secs ago
 
9:29 PM
ML Classification 0.0024780085593833698 (Old classification 0.4)
Recommendation: Always use the optional braces while learning C++ or any other language that uses them. You can leave them out once you're comfortable enough to not make mistakes like this, but after decades of writing code I stull use them religiously because I'm not the only person working on my code and I can't speak for the comfort level of the programmers working with me. — user4581301 27 secs ago
ML Classification 0.8330492194758875 (Old classification 0.0)
 
10:16 PM
Please use the software recommendations community softwarerecs.stackexchange.comEsraa Abdelmaksoud 50 secs ago
 

« first day (2724 days earlier)      last day (672 days later) »