http://codereview.stackexchange.com/review/suggested-edits/24111
The asker posts a false statement: "This code runs in time complexity X." Should they be corrected in an answer or in an edit? ... or maybe a comment?
More generic:
The asker posts a false statement: "This code even handles corner...
@Tarik After your code problem is solved we should probably figure out how to merge your accounts so you can post questions again, with all the privileges you had earned already (like chatting and voting =D)
If you can, all you have to do is label that one either "merge keep" in the event you want that to be your main account or "merge delete" in case you want your current (the one with the radio avatar) account to be your main account.
@Vogel612 nudge: Register a nudge after an interval. /nudge intervalInMinutes message, /nudge remove id to remove, or the listener, nudge|remind|poke me? in? intervalInMinutes message
No it is not possible my old account I accessed it with a student-email. It had the same services as a gmail account.. So I could log in with my student account as it was a gmail account. Now my student account is blocked therefor I opened another gmail account.
I actually like the OpenID (since SO is one of the first sites I use that has it consistently implemented), but now I have about 5 accounts in varying degrees of answered questions. Is it possible to consolidate them into the primary OpenID that I am starting to use more and more as more sites ar...
Containing the following: Links to both accounts, a description of your situation (that you're unable to access one account now that your email is blocked, that you made a new account with email you can use, etc)
I just would like to know if I am heading in the right direction with this. I am trying to learn and understand the concept of MVC, and I am doing that while making my own webpage, so I can learn a little bit more each time. I do not want to put too much code here, but I would simply like to ask,...
Worst case, you will have to use the account you're using now for, well, ever, and you won't be able to accept the answers to the questions you posted before
@Vogel612 You're not that well versed in meta-so as I thought... the joke is 6 to 8 weeks
oh yeah guys a meta question that got a bit lost just now
http://codereview.stackexchange.com/review/suggested-edits/24111
The asker posts a false statement: "This code runs in time complexity X." Should they be corrected in an answer or in an edit? ... or maybe a comment?
More generic:
The asker posts a false statement: "This code even handles corner...
IMO this should be a comment. Especially the way it is formulated it is more a "request for clarification" than an "answer". This is not a forum, for questions about questions use comments and not answers ;) — Vogel6129 secs ago
@Edward However, the size of the string must be know at compile-time. But that shouldn't be that much of a problem considering what you are trying to achieve.
I am creating a Trie class in Java, and am wondering what else can be done to make it even better. I am hoping to add concurrency to speed querying up.
public class Trie {
private HashMap<Character, HashMap> root;
private final Character END_CHARACTER = '$';
public Trie() {
...
In computer science, a trie, also called digital tree and sometimes radix tree or prefix tree (as they can be searched by prefixes), is an ordered tree data structure that is used to store a dynamic set or associative array where the keys are usually strings. Unlike a binary search tree, no node in the tree stores the key associated with that node; instead, its position in the tree defines the key with which it is associated. All the descendants of a node have a common prefix of the string associated with that node, and the root is associated with the empty string. Values are normally not associated...
this is the improved code to my last question :
package Utils;
import java.util.ArrayList;
import java.util.Random;
/**
* A ShuffleGenerator will create a private list of indices and shuffle them.
* You can access the shuffled indices with the methods getPrevious() and getNext().
* The meth...
> I think that's [mis|ab]using regex: if your pattern is just a plain word, you're most probably trying to kill a mosquito with a bazooka. Wrong tool for the job here.
@Edward Well, actually this is harder than I thought. Grouping the chars by two would require some heavy template wizardry if I am not mistaken. This is probably possible with lots of work.
I wish I knew more about those hidden attributes at the top of a class module.. looks like "VB_PredeclaredId" turns it into some kind of a static class??
I know the below code is too hard as well not optimized. Could you please refer below code
if (!string.IsNullOrEmpty(criteria.DemographicsCategory) && criteria.DemographicsCategory.ToLower() == "income")
{
DataTable dtresult = results.Results[0].DataTable;
...
It Depends
My favorite answer to these questions. ;)
No matter the scenario, I don't recommend editing the question. The sort of statement you're talking about is part of the definition of "as intended" in the phrase "works as intended". By editing the statement, you're editing the users def...
select null link, l.Firmanaam label, count(w.LeveranciersID) value
from Leveranciers l
join Wijnen w
on l.LeveranciersID = w.LeveranciersID
group by w.LeveranciersID
Is this not supposed to give me all wines (Wijnen) of each distributor (Leverancier)?
I changed it to this but it made no difference. I tried to group by `w.LeveranciersID`, `l.LeveranciersID` and `value`.
select null link, l.Firmanaam label, count(w.WijnID) value
from Leveranciers l
join Wijnen w
on l.LeveranciersID = w.LeveranciersID
group by w.LeveranciersID
select null link,
l.Firmanaam label,
w.WijnenID,
count(w.WijnenID) value
from Leveranciers l
inner join Wijnen w
on l.LeveranciersID = w.LeveranciersID
group by w.LeveranciersID, w.WijnenID;
I've been writing bash script on and off, with pretty good results in terms of getting the job done. However, I'm worried that my script might be very ugly, as I am a beginner. So I'm looking for advice concerning this particular one.
I want to extract some part of a big text file (here a lammps...
Example: If a linkedlist list contains 10->20->30->40, and 2nd node has to be deleted then the output should be 10->30->40
This question is attributed to Geeksforgeeks. Looking for code-review, optimizations and best-practices.
class Nodde<T> {
Nodde<T> next;
T item;
...
I've been writing bash script on and off, with pretty good results in terms of getting the job done. However, I'm worried that my script might be very ugly, as I am a beginner. I'm looking for advice concerning this particular one.
I want to extract some part of a big text file (here a lammps ....
@Phrancis: I didn't select the LeveranciersID in my nested select query so it basically was an invalid query. This is the right one:
select null link, l.Firmanaam label, w.w_count value
from
(select count(WijnID) w_count, LeveranciersID
from Wijnen
group by LeveranciersID) w,
Leveranciers l
where l.LeveranciersID = w.LeveranciersID
@Pimgd JavaDeveloper is an established member, and should know how to word his questions better. I have put the question on hold.
What was the programming challenge question — this one? If so, the inputs, and therefore the solution, should be quite different. — 200_success ♦1 min ago
@200_success And the only difference between them is the challenge (usually). I think we also refrain from tagging each question as programming-challenge or interview-question because all of these questions will inflate those tags.
- If you leave the question as it is, it's pretty good. The answers are pretty good too.
- If you alter the question to only mention the challenge and allow users to answer "you didn't fulfill the requirements", that'd be a pretty valid solution too (my answer is the only one that would need some changes)
What I'm more annoyed about is why JD posted that question in the first place. Splicing a linked list by mutation is just a crappy thing to do. And there is probably no practical application for it.
@Pimgd You're right, clarifying the question now would just make an even bigger mess. I've just reopened it — and downvoted. — 200_success ♦10 secs ago
This code doesn't address case insensitive comparison, but you're correct. The regex is overkill and string comparison is preferred in this case. (Welcome to Code Review by the way!) — ckuhn2034 mins ago
Regarding these two functions, which do the same thing...
large and confusing:
var fade = function(flag){
if (volumeIntervalId)
clearInterval(volumeIntervalId);
switch (flag){
case 'in':
volumeIntervalId = setInterval(function(){
...