« first day (2737 days earlier)      last day (79 days later) » 

12:00 AM
RELOAD! There are 7080 unanswered questions (89.7393% answered)
2 hours later…
1:45 AM
Q: Splitting an integer to its digits

Money Oriented ProgrammerI want to split an integer of type unsigned long long to its digits. Any comments and suggestions are always welcome. vector<unsigned short> IntegerDigits(unsigned long long input) { vector<unsigned short> output; const unsigned short n = log10(ULLONG_MAX); unsigned long long divisor...

1 hour later…
3:12 AM
3:59 AM
Not a place to ask, but consider looking around on Code Review for code put up for review. They might be too short, but there's got to be stuff that's a good fit: Reasonably well written but not perfect. — user4581301 28 secs ago
4:09 AM
Q: Generating product variants in Ruby

dcanguloBased on the sample variants, I need to get all combinations of all variants. In the example I have 3x3x2=18 variants. ## SAMPLE VARIANTS sizes = ['small', 'medium', 'large'] colors = ['red', 'green', 'blue'] materials = ['cotton', 'linen'] ## ITERATE TO ALL VARIANTS titles = [] sizes.each do |s...

4:54 AM
thanks for this i responded on codereview. we can close this one — Tennis Tubbies 26 secs ago
3 hours later…
7:45 AM
Q: Retrieving a substring from an exponentially growing string

Riko KurahashiFor integer A, the base level of 1 is "XYZ" For subsequent levels, the levels become "X" + Level A - 1 + "Y" + Level A - 1 + "Z". So for level 2, the string would be "XXYZYXYZZ" The objective is to return the substring from the Level string. I have written a brute force approach for this problem ...

8:10 AM
possible answer invalidation by Money Oriented Programmer on question by Money Oriented Programmer: codereview.stackexchange.com/posts/251364/revisions
8:57 AM
"I would like to know if the logic can be improved." This is a question for codereview, not Stackoverflow — Cid 33 secs ago
2 hours later…
11:22 AM
Q: Create an int table with 100 random numbers in the range 0-1000

Hutch_I working on my homework and because Im beginner Im asking for a help with my task. Need to create an int table with 100 random numbers in the range 0-1000 and then: a)find the biggest element b)calculate the arithmetic mean c)calculate the median If someone can help with that and show me the wa...

11:57 AM
@CaptainObvious Want's us to do their homework.
Welcome oh mighty tab god.
2 hours later…
2:09 PM
@Mast If you have the time, I'd appreciate a review of my question. I've updated the code several times but have failed to get much attention. I'm not totally sure of the etiquette around 'feel free to ping me', so I apologize if this is inappropriate.
2:20 PM
You are welcome to ask such a question but on the right site which is codereview.stackexchange.com there is not much traffic lately though — Your Common Sense 48 secs ago
2:36 PM
Q: Flex panels in CSS and JS

bona-petiteI was following Wes Bos JS 30-day challenge, so HTML and CSS are mostly are copy-paste, I'd like feedback on JS (mostly). Thanks. const panels = document.querySelectorAll('.panel'); panels.forEach(panel => panel.addEventListener('click', () => { const isOpen = panel.classList.contains('ope...

3:00 PM
Q: An Add/Minus Operator For Boost.MultiArray in C++

JimmyHuThis is a follow-up question for An element_wise_add Function For Boost.MultiArray in C++. The following code is the improved version based on G. Sliepen's answer. On the other hand, the built-in function .num_dimensions() I used here for the part of array dimension mismatch detection. template<t...

3:22 PM
Sorry, but as worded the question is not focused enough for Stack Overflow. You could take a look at what kind of posts are on topic for a companion site, Code Review, it may be on topic there, provided you explain what the code is supposed to do. — Martijn Pieters ♦ 35 secs ago
3:49 PM
Q: cant move graphics from keys

SHikha Mittalso im new to programming so dont judge and please dont give links to past questions just like stack overflow , i need help , if i am doing something silly please point it out i want to move graphics in java using keys here is my code package letsTryMovement; import java.awt.Color; import java.a...

3:59 PM
@CaptainObvious Broken Code. Need 3 VTC.
4:40 PM
Slow day in the queues, at least for me.
Maybe you should post it in Code Review SE: codereview.stackexchange.comWasif Hasan just now
4:58 PM
I’m voting to close this question because it belongs on codereview.stackexchange.com — Bryan Oakley 5 secs ago
5:27 PM
Q: Efficiently remove duplicate elements from the list

AndyPI have a legacy code in which ids List has some duplicate value coming and this method is being called from lot of difference places as of now - public async Task<List<T>> Execute<T>(IList<int> ids, Policy policy, Func<CancellationToken, int, Task<T>> mapperFunc) where T : class { var holder ...

6:16 PM
Q: Quiz Game using Tkinter in Python

WilliamGI have made part of a quiz game and realize that if I continue down this route my code could get huge, is there a way to simplify my code or make it more efficient? The first couple of lines of MathsQuestions.txt are: 1.Work out the value of 3 X 8? , a)12 , b)14, c)16, d)18, 2.Work out the value ...

1 hour later…
7:16 PM
@Kama - Given that you have working code, you might be better off posting your question on the "Code Review" Stackoverflow subsite instead. Please let me know if you choose to do so. — jpmarinier 40 secs ago
7:29 PM
Q: Comma formatted list printer

Vaney RioI'm working on a list practice project from the book "Automate the Boring Stuff with Python" which asks for this: Write a function that takes a list value as an argument and returns a string with all the items separated by a comma and a space, with and inserted before the last item. For example,...

1 hour later…
8:42 PM
Q: SO golang example with infinite for / channel workers

Daniel FarrellI whipped this up as an example of how infinite loops can often be used to great effect in golang, and also to discuss closing channels and worker communications. It was strictly off the cuff, but I was curious if anybody would like to offer a critique. In particular, I feel as though inflight ...

What makes you say you're pretty sure there's something wrong with it? General humbleness, or is there some specific misbehavior it's been demonstrating where its output isn't what you expected? If the former, you may want to head over to the Code Review Stack Exchange. If the latter, please edit your question to include those specifics. — Nathan Pierson 14 secs ago
2 hours later…
10:20 PM
Q: Rust Builder pattern derive-macro

Light DrakeInspired by dtolnay's procedural macro workshop (on Github), I have implemented a derive-macro to automatically implement the Builder pattern on a Rust struct, which allows a struct instance to be created using chained method calls on an intermediate object instead of having to provide all the re...

1 hour later…
11:34 PM
Q: Cycle detection in undirected graphs with recursive DFS

Andrea IaconoI wrote a very simple implementation of cycle detection in an undirected graph; I'm not interested in applying it to any real-life case: it's just for explaining the basic idea behind cycle detection in a CS lesson. I went for recursive DFS, and unlike other implementations I found on the interne...

Q: Spawning two threads and if any of the threads returns true, let the main thread ignore the other and move on

user2495123Exact problem statement: A main thread spawns 2 new threads, the main thread waits on this threads with these conditions: if any of the threads returns True, then main thread moves on and prints the thread_id and timestamp of the thread. if both threads return false, finish execution and don't ...

11:55 PM
"Most importantly, I want there to be no conflicts during merge into master after codereview." Stop wanting that. As long as master is live, with other people able to commit to it, there is absolutely no way to guarantee no conflict when merging into it. — matt just now

« first day (2737 days earlier)      last day (79 days later) »