Click here to Skip to main content
15,898,978 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WPF? WTF... Pin
Nelek7-Jan-17 12:18
protectorNelek7-Jan-17 12:18 
GeneralRe: WPF? WTF... Pin
glennPattonWork38-Jan-17 0:38
professionalglennPattonWork38-Jan-17 0:38 
GeneralRe: WPF? WTF... Pin
GuyThiebaut8-Jan-17 5:17
professionalGuyThiebaut8-Jan-17 5:17 
GeneralRe: WPF? WTF... Pin
glennPattonWork38-Jan-17 7:02
professionalglennPattonWork38-Jan-17 7:02 
GeneralHackerRank Pin
Marc Clifton7-Jan-17 5:57
mvaMarc Clifton7-Jan-17 5:57 
GeneralRe: HackerRank Pin
Richard Andrew x647-Jan-17 7:05
professionalRichard Andrew x647-Jan-17 7:05 
GeneralRe: HackerRank Pin
Marc Clifton7-Jan-17 8:00
mvaMarc Clifton7-Jan-17 8:00 
GeneralRe: HackerRank Pin
virang_217-Jan-17 13:33
virang_217-Jan-17 13:33 
Recently I did a similar coding challenge for one of the company and I was rejected because I used too many If else statement according to them. Test was asking solution for such a trivial things you don't even bother about such things. One of the solution I provided was to find most common ints from array of ints. I guess I could have put first if else together.


public int[] GetMostCommonInts(int[] input)
       {
           if (input == null)
           {
               return input;
           }
           else if (input.Length == 0)
           {
               return input;
           }
           else
           {
               var groups = input.GroupBy(x => x);
               Dictionary<int, int> dictInputCount = groups.ToDictionary(res => res.Key, res => res.Count());

               int[] resultInts = dictInputCount.Where(x => x.Value == dictInputCount.Max(y => y.Value))
                   .Select(x => x.Key)
                   .OrderBy(x => x)
                   .ToArray();

               return resultInts;
           }


Zen and the art of software maintenance : rm -rf *

Maths is like love : a simple idea but it can get complicated.

JokeHuman Evolution Pin
Cornelius Henning7-Jan-17 2:57
professionalCornelius Henning7-Jan-17 2:57 
GeneralVilmos's New Toy Pin
Nagy Vilmos7-Jan-17 0:45
professionalNagy Vilmos7-Jan-17 0:45 
GeneralRe: Vilmos's New Toy Pin
OriginalGriff7-Jan-17 1:19
mveOriginalGriff7-Jan-17 1:19 
GeneralRe: Vilmos's New Toy Pin
glennPattonWork37-Jan-17 1:20
professionalglennPattonWork37-Jan-17 1:20 
GeneralRe: Vilmos's New Toy Pin
OriginalGriff7-Jan-17 1:40
mveOriginalGriff7-Jan-17 1:40 
GeneralRe: Vilmos's New Toy Pin
glennPattonWork37-Jan-17 1:58
professionalglennPattonWork37-Jan-17 1:58 
GeneralRe: Vilmos's New Toy Pin
OriginalGriff7-Jan-17 2:42
mveOriginalGriff7-Jan-17 2:42 
GeneralRe: Vilmos's New Toy Pin
glennPattonWork37-Jan-17 2:48
professionalglennPattonWork37-Jan-17 2:48 
GeneralRe: Vilmos's New Toy Pin
Nagy Vilmos7-Jan-17 10:02
professionalNagy Vilmos7-Jan-17 10:02 
GeneralHerself's new toy PinPopular
OriginalGriff6-Jan-17 22:15
mveOriginalGriff6-Jan-17 22:15 
GeneralRe: Herself's new toy Pin
Richard MacCutchan6-Jan-17 23:29
mveRichard MacCutchan6-Jan-17 23:29 
GeneralRe: Herself's new toy Pin
Nathan Minier7-Jan-17 0:17
professionalNathan Minier7-Jan-17 0:17 
GeneralRe: Herself's new toy Pin
Mike Hankey7-Jan-17 1:44
mveMike Hankey7-Jan-17 1:44 
GeneralRe: Herself's new toy Pin
Ravi Bhavnani7-Jan-17 2:17
professionalRavi Bhavnani7-Jan-17 2:17 
GeneralRe: Herself's new toy Pin
lopatir7-Jan-17 2:51
lopatir7-Jan-17 2:51 
GeneralRe: Herself's new toy Pin
charlieg7-Jan-17 4:44
charlieg7-Jan-17 4:44 
GeneralRe: Herself's new toy Pin
OriginalGriff7-Jan-17 5:08
mveOriginalGriff7-Jan-17 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   441 votes