@RobertHarvey I hate this canned response -> People have this interview concept that no matter what people answer, they should press them for a better solution because no true scotsman fails to come up with improvements to their code. Sorry, some of us basically get simple things like that right the first time...
@Ampt the linq part isn't the fast portion-> the fact that they were in a sorted list kind of solves the problem for you... there's no way to get the smallest number from a list of numbers without sorting it, and using the standard sortedlist implementation in .NET is the right way to sort a list...
Where can I ask a Question regarding the following matter?
What this question should ask is:
1. When are private sector algorithms going to be released to the public?
2. Are these algorithms just implementations of scholarly articles and other sources of Academia, implemented in the pr...
As an aside, if you have difficulty getting the meta question opened here, I would urge you to ask in the whiteboard chat room. Its associated with the Programmers.SE site where the topicality of the question would be more appropriate (though, as I mentioned, as asked this question would likely be closed). The chat room, however, doesn't have such restrictions about open or closed and the people there are familiar with the issues. The room is most active 9-5 M-F (work day second monitor). — MichaelT11 mins ago
So the right answer depends on whether or not you're only doing it once. If you're adding numbers to the list and still want an answer, it's better to use a SortedList, even though it's more expensive to add the numbers initially.
@RobertHarvey so did your last contract appraisal not go so good? Sorry to hear, seems I'm hearing a lot of people losing space in the employed population lately; If I paid attention to economic indicators I might know this is a known thing? shrug
@enderland one of the reasons I bone up on this stuff as much as I do... no CS background-> I had no idea what a lot of things like that were for a long time, eventually it got to me enough to try studying it a bit.. (turned out studying it was as miserable as I thought it would be)
“I couldn’t help but think we were finally over the worst of our troubles. I was such an idiot.”
The bad guy’s dead and gone, Jakob’s given Rob and Anja his blessing and left town, so everything should be smooth sailing, right? Right? Not so fast. Lodinn’s still wreaking havoc with their lives from beyond the grave as the search for Carys pulls Bishop and Jakob into the most unlikely of partnerships.
As Anja settles into her hard won bliss, she finds that things aren’t necessarily happy ever after as Rob’s mounting secrets begin to take their toll. All around her violence against humans is spilling into the city streets, threatening to expose vampires to human eyes and bringing vampire hunter Carter back into the picture. His direct but effective methods lead her to ask – is it wrong to kill a killer? Is there anything she can do to bring the violence to a halt apart from compelling the entire vampire community to her will?
When Bishop discovers Carys’ long lost diary, it holds the key to his past as well as Rob’s future. The burning question remains – is Carys really alive out there somewhere or was it merely a beautiful lie and Lodinn’s final revenge?
And can Anja survive a betrayal so deep it shakes her to the very core?
@enderland ? yeah I know, my wife's pestering me to read it too...
The nonfiction book The Last Stand of the Tin Can Sailors: The Extraordinary World War II Story of the U.S. Navy's Finest Hour is the first full narrative account of the Battle off Samar, which author James D. Hornfischer calls the greatest upset in the history of naval warfare. Published by Bantam Books in February 2004, the book won the Samuel Eliot Morison Award for Naval Literature in 2004 from the Naval Order of the United States.
A Main Selection of the Book-of-the-Month Club and the Military Book Club, the book tells the story of the remarkable two-and-a-half-hour sea battle fought on October...
Years ago, Vlad Taltos came to make his way as a human amidst the impossibly tall, fantastically long-lived natives of the Dragaeran Empire. He joined the Jhereg, the Dragaeran House (of which there are seventeen) that handles the Empire's vices: gambling, rackets, organized crime. He became a professional assassin. He was good at it.But that was then, before Vlad and the Jhereg became mortal enemies.For years, Vlad has run from one end of the Empire to the other, avoiding the Jhereg assassins who pursue him. Now, finally, he's back in the imperial capital where his family and friends are. He means to stay there this time. Whatever happens. And whatever it takes.Hawk is the latest in Steven Brust's New York Times bestselling Vlad Taltos series. “Watch Steven Brust. He's good. He moves fast. He surprises you. Watching him untangle the diverse threads of intrigue, honor, character and mayhem from amid the gears of a world as intricately constructed as a Swiss watch is a rare pleasure.” —Roger ZelaznyAt the publisher's request, this title is being sold without Digital Rights Management software (DRM) applied.
He does wonderful things with chapter titles / flavor text. For example, one starts out with a prologue with a laundry list (blood spot on shirt). Then, each chapter, that bit of clothing that lead the chapter flavor text needs to get cleaned for the reason in the laundry list in the prologue.
In another book, it seems like's he's jumping back and forth between two timeframes. And he is. The chapter flavor text seems a bit odd... and then in the end you realize that it was a spell being cast taking place at the end of the first timeline and just before the second timeline.
For example, Tiassa takes place in the early bits, the late bits, and the very late bits... the last two bracket another book that was released just before... and so the additional insight into the setup in Tiassa makes Iorich make a bit more sense... so you go back and re-read it.
@RobertHarvey the algorithm design manual is free online (just google it) and it opens immediately to a bunch of graph stuff and talks in pretty simple terms, worth poking at if you're concerned about getting more questions like that as you interview etc
The Khaavren Romances are a series of fantasy novels written by Steven Brust and set in the fictional world of Dragaera. The novels are swashbuckling adventure stories involving war, intrigue, and romance. They are heavily influenced by the d'Artagnan Romances written by Alexandre Dumas.
== Books ==
The Phoenix Guards (1991)
Five Hundred Years After (1994)
The Viscount of Adrilankha, published in three volumes:
The Paths of the Dead (2002)
The Lord of Castle Black (2003)
Sethra Lavode (2004)
The title of each book roughly corresponds with its equivalent in the d'Artagnan Romances. The Phoenix...
Three musketeer novels: The Three Musketeers, Twenty Years After, The Vicomte of Bragelonne.
Cross-site scripting (XSS) is a type of computer security vulnerability typically found in Web applications. XSS enables attackers to inject client-side script into Web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same origin policy. Cross-site scripting carried out on websites accounted for roughly 84% of all security vulnerabilities documented by Symantec as of 2007. Their effect may range from a petty nuisance to a significant security risk, depending on the sensitivity of the data handled by the vulnerable site...