Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 08-10-2018, 02:37 PM   #34376
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I'm the opposite right now. I'm so rattled on whiteboard/codepad. My brain just freezes up and I can't think creatively.

It's like trying to be witty when some hot girl across the room smiles at you. Some people are good at it. I can barely put a sentence together. So it comes out mechanical, boring and awkward. Over the cacophony of my panic, I can't hear my inner-voice which is trying to offer up some creative/funny take.

I've always been like that with women. I didn't used to be like this in coding stuff. But after bombing that first codepad interview I'm super shook now.
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 02:48 PM   #34377
RustyBrooks
Carpal \'Tunnel
 
RustyBrooks's Avatar
 
Join Date: Feb 2006
Location: Austin, TX
Posts: 23,776
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

OK, but I was showing them some stuff I'd already done, not creating something new. No whiteboarding or anything, just like a software demo and showing some of the more interesting pieces of the code.
RustyBrooks is offline   Reply With Quote
Old 08-10-2018, 02:53 PM   #34378
Chips Ahoy
help me help you
 
Chips Ahoy's Avatar
 
Join Date: Apr 2007
Location: making triangles
Posts: 28,708
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by RustyBrooks View Post
I've done it before. For my current job, for example, I suggested that I present to them a few projects I'd worked on, in lieu of a coding test. I wasn't worried about passing the test, and the presentation probably took longer and was harder, but it was a stronger result. Passing the test is a low bar, showing off an interesting piece of software is better.
I noticed they didn't ask for a project I've done, just a presentation where the audience learns something and gets a feel for how I approach difficult problems.

My plan is to present hierarchical state machines. This is a design pattern I've used successfully for a long time. I don't think it's widely known? so some of the audience will learn something. It is representative of how I approach difficult problems.

I'll include code from projects where I used it.

My concerns:
* they expect something different?
* it's a complicated topic for a short presentation?

but I am outweighing those with: the engineers will learn something interesting.
Chips Ahoy is offline   Reply With Quote
Old 08-10-2018, 02:54 PM   #34379
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by RustyBrooks View Post
OK, but I was showing them some stuff I'd already done, not creating something new. No whiteboarding or anything, just like a software demo and showing some of the more interesting pieces of the code.
Right - which I can do all day. It's in my presentation.
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 02:56 PM   #34380
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Chips Ahoy View Post
I noticed they didn't ask for a project I've done, just a presentation where the audience learns something and gets a feel for how I approach difficult problems.

My plan is to present hierarchical state machines. This is a design pattern I've used successfully for a long time. I don't think it's widely known? so some of the audience will learn something. It is representative of how I approach difficult problems.

I'll include code from projects where I used it.

My concerns:
* they expect something different?
* it's a complicated topic for a short presentation?

but I am outweighing those with: the engineers will learn something interesting.
I'd like to learn about hierarchical state machines.
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 02:56 PM   #34381
well named
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: esse est coesse
Posts: 74,225
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

me too
well named is offline   Reply With Quote
Old 08-10-2018, 03:03 PM   #34382
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 22,196
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Chips Ahoy View Post
Is this a common thing?


I think we do something like this for senior (director+) hires.
jjshabado is offline   Reply With Quote
Old 08-10-2018, 03:07 PM   #34383
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

You don't make them figure out what this.length is?
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 03:07 PM   #34384
Chips Ahoy
help me help you
 
Chips Ahoy's Avatar
 
Join Date: Apr 2007
Location: making triangles
Posts: 28,708
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
I'd like to learn about hierarchical state machines.
k, I'll share
Chips Ahoy is offline   Reply With Quote
Old 08-10-2018, 06:29 PM   #34385
jmakin
 
jmakin's Avatar
 
Join Date: Jan 2008
Location: Streaming
Posts: 28,294
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
I'm the opposite right now. I'm so rattled on whiteboard/codepad. My brain just freezes up and I can't think creatively.

It's like trying to be witty when some hot girl across the room smiles at you. Some people are good at it. I can barely put a sentence together. So it comes out mechanical, boring and awkward. Over the cacophony of my panic, I can't hear my inner-voice which is trying to offer up some creative/funny take.

I've always been like that with women. I didn't used to be like this in coding stuff. But after bombing that first codepad interview I'm super shook now.
The key, as with women, is to absolutely not give a **** what the outcome is.

If this is impossible, at least try to pretend you don’t.
jmakin is online now   Reply With Quote
Old 08-10-2018, 06:42 PM   #34386
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Might work with women, but code doesn’t care how much confidence you project.
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 06:44 PM   #34387
well named
poorly undertitled
 
well named's Avatar
 
Join Date: Jun 2007
Location: esse est coesse
Posts: 74,225
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I neg my code all the time. 10% performance increase! Wonderful!
well named is offline   Reply With Quote
Old 08-10-2018, 08:17 PM   #34388
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I touch my code in non-threatening places to establish a rapport.
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 08:29 PM   #34389
adios
Carpal \'Tunnel
 
Join Date: Sep 2002
Location: Russian Troll
Posts: 21,291
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

@Rusty - thanks for the response.
@suzzer - Congrats on new job. In the grand scheme of things, seemingly it worked out well for you. Pretty sure you are exaggerating about your apprehension with white board coding challenges. If not time to move on.
adios is offline   Reply With Quote
Old 08-10-2018, 09:10 PM   #34390
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I'm muddling through them. But all these places have some kind of a metric about how fast you get through, how far, what innovations etc. I'm middle of the pack at best right now. I can basically prove my resume probably isn't a fraud, but I'm not impressing anyone.

I completely aced the realistic one about building a like button widget and how you'd store it. I just suck at the super abstract stuff right now. Here's one I got a couple days ago:

Imagine an array of ints that corresponds to wall height, from left to right. So basically a bar chart. Calculate how much water the bar chart will hold (if you poured water all over it).

I muddled through but I didn't wow anyone. The funny part was the guy giving the problem (greybeard) got just as mixed up as I was at a couple places.

I think it will change once I get back to serious coding. I'm just really rusty right now. It's gonna take a month or two to get back up to top speed I think.
suzzer99 is offline   Reply With Quote
Old 08-10-2018, 09:28 PM   #34391
ChrisV
Carpal \'Tunnel
 
ChrisV's Avatar
 
Join Date: Jul 2004
Location: Adelaide, Australia
Posts: 37,496
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I grab my code by the pussy. When you're a star it lets you do it. You can do anything.
ChrisV is offline   Reply With Quote
Old 08-10-2018, 10:39 PM   #34392
OmgGlutten!
Pooh-Bah
 
Join Date: Aug 2016
Posts: 3,839
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

is your offer from the company with grey beard?
OmgGlutten! is offline   Reply With Quote
Old 08-11-2018, 01:39 AM   #34393
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Nope. Kinda hot Asian lady who really liked me and she's the only one I talked to.
suzzer99 is offline   Reply With Quote
Old 08-11-2018, 07:58 AM   #34394
Wolfram
Carpal \'Tunnel
 
Wolfram's Avatar
 
Join Date: Jan 2006
Location: You can be my wingman any time
Posts: 14,667
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by suzzer99 View Post
Imagine an array of ints that corresponds to wall height, from left to right. So basically a bar chart. Calculate how much water the bar chart will hold (if you poured water all over it).
Is this a trick question? A wall or a bar chart has no volume so it holds zero amount of water, except for maybe a small amount of film clinging to the surface. Did they want you to be a mind reader about the requirements? Maybe assume that they're asking for the area of the bar chart assuming water behaves like a liquid in 2d?

If that's the case then this would be my attempt:
Code:
const arr = [7, 2, 8, 4, 9, 6];

let spaceBetweenBars = 2;
let area = 0;
for (i = 1; i < arr.length; i++) {
	area += Math.min(arr[i - 1], arr[i]) * spaceBetweenBars;
}
console.log(area);

Last edited by Wolfram; 08-11-2018 at 08:08 AM.
Wolfram is offline   Reply With Quote
Old 08-11-2018, 12:48 PM   #34395
:::grimReaper:::
veteran
 
:::grimReaper:::'s Avatar
 
Join Date: Jul 2010
Posts: 2,418
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Wolfram View Post
Is this a trick question? A wall or a bar chart has no volume so it holds zero amount of water, except for maybe a small amount of film clinging to the surface. Did they want you to be a mind reader about the requirements? Maybe assume that they're asking for the area of the bar chart assuming water behaves like a liquid in 2d?

If that's the case then this would be my attempt:
Code:
const arr = [7, 2, 8, 4, 9, 6];

let spaceBetweenBars = 2;
let area = 0;
for (i = 1; i < arr.length; i++) {
area += Math.min(arr[i - 1], arr[i]) * spaceBetweenBars;
}
console.log(area);
I don't think this is right. Consider [10, 1, 10]. The water would fill in the 10x2 area. Also, as written, factor spaceBetweenBars.

Though is a horrible question given how much room for confusion there is.
:::grimReaper::: is offline   Reply With Quote
Old 08-11-2018, 01:08 PM   #34396
Wolfram
Carpal \'Tunnel
 
Wolfram's Avatar
 
Join Date: Jan 2006
Location: You can be my wingman any time
Posts: 14,667
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

yeah, I just figured out why my thing won't work and came here to post that.
Wolfram is offline   Reply With Quote
Old 08-11-2018, 01:25 PM   #34397
blackize5
old hand
 
Join Date: Sep 2012
Posts: 1,233
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Lots of interview questions are intentionally confusing or ambiguous. The point is to get you to ask questions to flesh out exactly what you're trying to solve.
blackize5 is offline   Reply With Quote
Old 08-11-2018, 01:58 PM   #34398
jjshabado
Carpal Tunnel
 
jjshabado's Avatar
 
Join Date: Jul 2006
Posts: 22,196
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yeah, I don’t see a problem with a somewhat ambiguous question or one that you have to think about a bit. Figuring out what exactly people are asking you to do is a pretty big part of most jobs.
jjshabado is offline   Reply With Quote
Old 08-11-2018, 02:37 PM   #34399
suzzer99
Carpal \'Tunnel
 
suzzer99's Avatar
 
Join Date: Nov 2005
Location: on top of the bell curve
Posts: 86,222
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Sorry in the interview there was a diagram too.

But yeah assume it's 2D water. So arr=[2,6,3,2,4,1] would hold 3 sq. units of water as only arr[2] and arr[3] would have water over their heads.
suzzer99 is offline   Reply With Quote
Old 08-11-2018, 02:53 PM   #34400
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 12,704
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I don't understand it at all lol, I think I'd need the diagram (and then probably the expected result!)
_dave_ is online now   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 01:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online