« first day (3186 days earlier)      last day (839 days later) » 

12:00 AM
REFRESH! There are 8023 unanswered questions (89.2244 answered)
 
 
5 hours later…
5:19 AM
0
Q: sorting without using array

Jahirul SarkerProblem: https://codeforces.com/problemset/problem/230/A I have used array to solve the problem. What I have tried[accepted but I didn't like my solution]: #include<stdio.h> int main(void) { int i=0, j=0, k=0, l=0, count=0; int myStrength, testCase; int dragonStrength[1000], killingBo...

 
 
4 hours later…
9:06 AM
0
Q: Efficient algorithm to generate random multigraph (undirected) given nodes and degree

skynaiveI wrote a simple algorithm to generate 1000 random graphs given total nodes and associated node degree. Graph is undirected with multiple edges and no self-loops. My current algorithm is very slow: Pick 2 random node ids from node list using np.random Check if node degree is full, if not connect...

 
possible answer invalidation by scripta on question by scripta: codereview.stackexchange.com/posts/273183/revisions
 
10:03 AM
possible answer invalidation by Jahirul Sarker on question by Jahirul Sarker: codereview.stackexchange.com/posts/273267/revisions
 
10:13 AM
@Duga rollbacked with comment
 
10:52 AM
0
Q: rebuild message from strings parts in scala

Imed The problem is to develop a scala function called rebuildMessage which receives an array of character strings as a parameter. Each part element was cut from a single message. I must reconstruct the message from the rules : two parts can be joined when the last character of the first part is equa...

 
11:44 AM
0
Q: how to convert python program into OOP Structure

Mohanraj MSince i'm new to OOP as well as python. I have completed these three classes but cannot use this because I don't know how to write the main class for theese code and i'm facing more difficulties with passing the returned object of one class to another class. Here comming to my main problem bank_w...

 
 
3 hours later…
2:49 PM
0
Q: Multiple grouped value select component

Zac LI've been designing a React component to select countries that a user has visited, grouped by continent. This component is a part of larger project but is relatively self contained. This is my first time using React (and JS really!) and I feel like passing props from the top level component down ...

 
3:28 PM
possible answer invalidation by Jahirul Sarker on question by Jahirul Sarker: codereview.stackexchange.com/posts/273267/revisions
 
@Duga Basically a rollback of 60229301
 
3:45 PM
Welcome to Stack Overflow. Please read How to Ask and stackoverflow.com/help/dont-ask. "could you give me tips if this is right or what is the best way to do this within a class way?" We don't take questions like that here; if you have working code that you want feedback for improvement on, that is what codereview.stackexchange.com is for. Also, please read the formatting help and make sure you understand how to post code formatted properly. — Karl Knechtel 57 secs ago
I’m voting to close this question because it belongs on code reviewburan 37 secs ago
 
4:21 PM
Monking
 
4:35 PM
0
Q: QMediaPlaylist python

edu.si'm trying to play a background music that is already in my python project folder, the music plays very well, but i'm working with classes and i don't know if the way i wrote to play the music inside the graphical interface is the best, could you give me tips if this is right or what is the best ...

 
5:02 PM
0
Q: Java OOP Hangman - revision (get word in category)

scriptaI've revised the code in the light of comments (the initial post was here). I've initially just redone the logic to get a random word for the category chosen by the player. I'd appreciate any feedback on that, then I'll revise the rest of it. Main points addressed: separate out GUI code and use s...

 
5:36 PM
A good Stack Overflow question is about a narrow, specific problem -- we don't do general review or comments here. (There's a separate Stack Exchange site that does do code review, but they only accept questions about working code). — Charles Duffy 18 secs ago
 
@CaptainObvious Hopefully I rescued this question.
 
6:19 PM
Hello @Luis Miguel Mejía Suárez, thank you for your response, how about if my table contains strings and wanna applicate some tests between each couple (a,b) to construct strings results. Please look to this link codereview.stackexchange.com/questions/273271/…, thank you — user8810618 45 secs ago
 
0
Q: How can I make these implementations less verbose?

Natalie PerretI've been writing a bunch of helper functions lately, all revolving around the concept of an early exit fold (which is a bit like unfold, i.e. you can control when the looping ends but you pass a list of items). A dummy example: [<EntryPoint>] let main args = let guidFrom i = Guid(0, 0s, 0s,...

0
Q: Python - Temperature - descriptors with conversion

ThingamabobsSo I'm trying to understand the concept of descriptors and gathered some code together and made an exampel out of different sources. Like the offical documentation and StackOverflow answers. I'd hope someone can me tell some tricks about this concept or how to make this code better in general. Th...

 
I’m voting to close this question because this question would be a better fit for CodeReview. — Daniel Mann 30 secs ago
 
6:48 PM
1
Q: Coding style and idiomaticity of solution to the Word Search II problem on LeetCode

AlwaysLearning"Word Search II" is a hard problem on LeetCode (problem #212): Given an m x n board of characters and a list of strings words, return all words on the board. Each word must be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring...

 
7:30 PM
If you have working code, an want tipps for improvement, better ask at codereview.se — πάντα ῥεῖ 33 secs ago
Maybe visit Code Review? — skara9 10 secs ago
 
 
2 hours later…
9:53 PM
0
Q: rust on esp32 no-std no-idf

Jason Klebanhttps://github.com/JasonKleban/rust-esp32/tree/no-idf main branch of this project runs blinky with a oled printout and console output. I'm trying to get rid of unnecessary complexity in this no-idf branch. Instead of a working program, it compiles but I get this at runtime(?) instead: ets Jun 8...

 
0
Q: Leaky Bucket algorithm with concurrency

user8707488Trying to mimic a scenario where multiple threads are creating the traffic to fill the buckets & a thread which leaks the bucket at a specified rate. Could you review this code? #include <iostream> #include <mutex> #include <condition_variable> #include <thread> #include <atomic> #include <chrono>...

 

« first day (3186 days earlier)      last day (839 days later) »