last day (18 days later) » 

20:27
hey, just was curious for asking a question about an interview question i had. basically was going to post the solution i came up with in 20 minutes and see if there was a better way of doing it
We got at least 954 interview-questions.
there are a few sort of arbitrary limitations on it, like using a List<LIst<String>> instead of a list of objects, but just wanted to see if there was a more efficient way of doing it.
Asking for better solutions is generally frowned upon. What you'd really want to do, is ask for a review. If there's a better solution, it may or may not be provided. But it's your code that's the focus on Code Review, not the original problem.
Do you understand the difference?
asking how to make my solution better or where my solution is inefficient as opposed to asking for a better solution?
You can ask just about everything about your code. And the more you can provide about the original problem you're solving, including constraints, the better. But the focus will remain your code. Not alternatives.
If you have arbitrary limitations, that's great to know.
It illustrates how you came to your solution.
We can show you where to improve your solution. And if a better one is available, preferably an answer will point out why it's better.
Code Review is not Stack Overflow, where "Try this:" answers are common.
85
Q: How to get the best value out of Code Review - Asking Questions

rolfl I have a project I am working on, and I would like some, or all of it reviewed, how can I ask for this review on Code Review in a way that produces the best possible value? This is not about a question being on-topic, or off topic. Rather, this is about making on-topic questions great questions...

219
Q: A guide to Code Review for Stack Overflow users

durron597You're on Stack Overflow and you've found a question that seems to be about improving code. You are trying to be helpful, and you put a comment in the question: You should try asking on CodeReview.SE instead. —YourName 2 minutes ago … and suddenly, out of nowhere CodeReview.SE users swoop i...

Efficiency is poorly defined. If you want memory-optimization, there's a tag for that. If you want to take less CPU cycles, there's a performance tag for that.
But in the end, one of the weird things about CR is that you get what you get. And that may not be what you had in mind, but it's usually helpful regardless. Sometimes you don't know what you need to be taught upfront.
If that's something you can work with, CR is a great place to be. If you're simply looking for the most-optimized (for whatever value of optimized) solution to your interview question, Reddit or SO are probably better bets.
20:36
ok. my main sort of thing is checking for a match between one of two strings to filter the list, and then sorting by a date in it. i have a solution that works, but I am unsure if it is an efficient solution and if it could be better. im not super worried about memory in this case, i know one or two spots i could improve that, but more handling very large amounts of data, so CPU optimiztion would be my focus i guess
Give those meta posts a good skim, write a good description and tag it performance.
And your question will probably do fine.
@Mast will do, thanks
Don't forget a language tag, those are important.
If you want me to proofread anything, that's fine too.
Remember, SO likes generalities. CR really wants to see your code as-is.
sure. ill write up the post after I read through those meta posts and drop the markdown here. I have all the code written up in dotnetfiddle atm waiting to be pasted in
Good luck :-)
Feel free to let me know if you have any questions.
21:07
my title was "Extracting records from a 2D List of strings." with c# and performance tags
interview-questions is a tag as well, may as well use it.
Looks good enough to be posted.
Possibly 'Filtering records' is more applicable than 'Extracting records', but English is not my primary language.
@Mast oh right. thanks.
@Mast i think the original interview question used extracting, but yeah, either could work. thanks for the help
No problem.

  last day (18 days later) »