« first day (2367 days earlier)      last day (1652 days later) » 

12:00 AM
RELOAD! There are 6186 unanswered questions (90.1267% answered)
 
12:16 AM
0
Q: complicated pascal triangle using javascript

SalmaI wrote a function to generate a complicated version of the pascal triangle. The generated triangle should look like that: ┌─────────┬───┬───┬────┬────┬────┬────┬────┬───┬───┐ │ (index) │ 0 │ 1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ ├─────────┼───┼───┼────┼────┼────┼────┼────┼───┼───┤ │ 0 │ 1 ...

0
Q: python search replace and join with delimiter

spenceI'm brand new and been going through some beginner code problems on checkIO. I finished this one today and am posting because I'm sure there is a much more elegant way to accomplish this, and I think this particular problem as a lot a useful applications. I would like to know what are the 'clean ...

 
 
3 hours later…
3:04 AM
Welcome to SO! When you place a question try to add a minimum content: input sample, expected output sample, what did you try, research and where are you stuck. If you code is working, then you should go to CodeDavid García Bodego 13 secs ago
 
3:43 AM
0
Q: Implementation of narrow_cast in C++

ArnilTo summarize what I've been trying to do, I basically tried to make a safe narrow_cast operator, which casts to the Target type if and only if the value is unchanged (not narrowed) in the process, and throws an exception if the conversation will cause the value to change. So I implemented this b...

 
 
2 hours later…
5:48 AM
0
Q: Concise way of creating a IntRange out of an Int

HooniI want to create a collection (in this case a map due to the extended function 'groupBy') that maps an IntRange to a list of a data class, which members are determined whether an int inside the data class is within the IntRange. The IntRanges are 0..9, 10..19, 20..29, etc. Concrete example: dat...

 
 
1 hour later…
6:50 AM
0
Q: Algorithm for finding coordinates of edge of a square

NL03Is it possible to find coordinates of edges of squares using c#, if so, can someone point me in the right direction? You don't have to make something whole, just give me resources, so it is possible for me to do so. 1 2 3

 
Monking
 
7:52 AM
2
Q: Implementing chat commands

calvinesI'm new to C++ and I'm writting some kind of chat server and client who talk to each other through commands for learning purposes. I serialize and deserialize these commands using a JSON library. My first approach has been to create a base class called Command and have a derived class for each co...

 
8:33 AM
0
Q: Binary search guess game in C++

user212136I'm trying to write a program where computer attempts to guess a number entered by user. Computer should keep asking until guessed number will be equal to user number. If you know what can be improved to make this code more readable, if implementation of the binary search algorithm is efficient,...

 
9:09 AM
I tested a Windows based multi-threaded merge sort with a larger data set on a 4 core processor. 4 threads is ~3.0x faster, 8 threads ~3.9x faster. — rcgldr 44 secs ago
 
0
Q: Count number of occurences of the given number in the range

coderLeft limit, right limit and the number to be counted is entered. This code works only for whole numbers i. e. from 0 to n. This code returns the number of occurence of the n in the given range. Please review this code and suggest improvements. #include <iostream> int count_n(int l, int r, int n...

 
9:35 AM
0
Q: uploading a quality manual for advice/suggestion

js bibracan I upload a QMS Manual I created with Latex for review and advice/suggestions \begin{tikzpicture} \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- (0,1.5); \end{tikzpicture} I have uploaded one page below of 40 pages--need advice on better/shorter code--better layout etc Is it possible?

 
9:52 AM
What does that question have to do with data structures or binary search trees? BTW: As a new user here, take the tour and read How to Ask. Also, consider submitting your code for review at codereview.stackexchange.com. — Ulrich Eckhardt 34 secs ago
@UlrichEckhardt I'm not sure this partial code would be good for codereview as-is. See also obligatory codereview.meta.stackexchange.com/questions/5777/…Andras Deak 18 secs ago
 
 
2 hours later…
11:38 AM
-1
Q: Implementation of Djikstra's shortest path

Clock SlaveI am taking an online course where Djikstra's algorithm is part of the lesson. I am yet to implement the solution which uses priority queues to solve the task. I have implemented a rudimentary solution to solve the assignment but I am getting the wrong answers. This the code I have class DSP:...

 
11:59 AM
-1
Q: Refactor by removing nested for loop

김태홍 KIMThis simulation is given finding the minimum numbers of patrollers, given patroller's coverage and position of the weak points. The weak points are the weak points on the wall that needs to be fixed. The wall is circular, and that's why there exists additional push_back when creating create_dist_...

 
 
1 hour later…
1:01 PM
-1
Q: Short ES6 Redux replacement: improvements and variable naming

MercPlease have a look at the code below. It's only 22 lines of ES6 code. let state = null const beforeSetStateCallbacks = [] const afterSetStateCallbacks = [] export const beforeSetState = (fn) => beforeSetStateCallbacks.push(fn) export const afterSetState = (fn) => afterSetStateCallbacks.push(fn)...

-2
Q: Storing values to Another Node

NinjaEvery time my main call newOrder function, the menu user picked will be stored under the same Order ID which is the first one, 1001. I need the menu option picked by the user to be stored under different Order ID each time the main function calls newOrder(). I know that the syntax/flow of the co...

 
1:50 PM
I'm voting to close this question as off-topic because: This question might be better suited for Code Reviewstovfl 1 min ago
 
 
2 hours later…
3:25 PM
-1
Q: Set com.sun.management.jmxremote.ssl as False

talWhat might be the risks while the following setting is configured at pom.xml file? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <ext...

 
 
1 hour later…
4:35 PM
possible answer invalidation by Salma on question by Salma: codereview.stackexchange.com/posts/231359/revisions
 
5:08 PM
0
Q: Observer Design Pattern in Golang

MazdakI am trying to practice the Observer design pattern in Golang, here is my code. I would be pleased to receive your comments, improvements, etc. package observer import ( "container/list" "fmt" "math/rand" ) //interface that receive updates type Observer interface{ Update(s *Sub...

 
 
1 hour later…
6:31 PM
0
Q: Daubechies wavelet and scaling filters: Is there a better way?

user14717I have computed the Daubechies wavelet and scaling filters in float, double, long double, and quad precision, and now want to expose these filters in a usable API. My problem is as follows: I want to make sure that these filters are correct to every single bit, so I wrote them as hexadecimal floa...

 
7:12 PM
0
Q: RegEX to search string and sort into groups

Wiley25I'm attempting to split a website rip string into different groups. But am getting a nil return. The RegEx is working fine as I've fault checked it. The String Builder isn't getting populated with any information though. Thanks in advance using System; using System.IO; using System.Linq; using...

 
7:54 PM
0
Q: Word search grid shape needs to be rectangular

Nikki Met CodeI'm new to coding and am building a word search generator using Python and would like to shape the grid to have 11 rows and 19 columns. Everything I've tried so far has resulted in some variation in a box shape of 11*19 wide by 11*19 high. If anyone can help point me in the right direction, it wo...

 
@Duga shrug
Oh, wait
Ugh
There.
Can't fix that on mobile, so desktop to the rescue.
 
8:49 PM
"not quite sure what you mean": You state: "The code is working the way it is" therefore Code Review is better suited to get a answer. — stovfl 53 secs ago
 
 
2 hours later…
11:07 PM
"Code review helps" - Yes. But teachers engaging in the problem helps even more. So why was my comment about asking the OP's teacher deleted? — Stephen C 33 secs ago
 
11:41 PM
0
Q: How can I make this block of code more visually appealing/is there a more efficient way to go about it? React

Rob MorrisseyJust wondering how I can go about doing this more efficiently/make it more visually appealing to the user? Any help is really appreciated! switch (this.state.selected) { case "all": styled = this.state.allKeywords.map(keyword => <div style={{display: "flex", flexDirection: "ro...

 

« first day (2367 days earlier)      last day (1652 days later) »