Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Mush Mushi
Sep 9, 2007
Sorry if we scared you away from the accounting thread, Empress.

Anyway, I’m an accountant with no immediate plans to not be an accountant, but I’ve developed an interest in learning how to program, starting completely from scratch. This week I am completing Khan Academy’s computer science principles course. After that I’m planning on selecting courses from the “Open Source Society University” path on github.

My long term goal with this is to either continue working as an accountant with a freelancing side gig in software/data analysis, or to eventually find a role that requires both software and government regulatory knowledge. I suppose a third option is that I actually gain enough experience to become a competent full time programmer for things unrelated to finance, but that’s not the goal unless it happens naturally.

As things are, I have no need or plan to make any money from this for several years. I just want to dedicate time to learning and creating progressively better personal projects until the day that I feel comfortable doing work for someone else or building a tool worth monetizing — maybe 2 or 3 years from now if I am very consistent?

I recognize that this all sounds naive. Feel free to knock some direction into me.

Adbot
ADBOT LOVES YOU

Lockback
Sep 3, 2006

All days are nights to see till I see thee; and nights bright days when dreams do show me thee.

Mush Mushi posted:

Sorry if we scared you away from the accounting thread, Empress.

Anyway, I’m an accountant with no immediate plans to not be an accountant, but I’ve developed an interest in learning how to program, starting completely from scratch. This week I am completing Khan Academy’s computer science principles course. After that I’m planning on selecting courses from the “Open Source Society University” path on github.

My long term goal with this is to either continue working as an accountant with a freelancing side gig in software/data analysis, or to eventually find a role that requires both software and government regulatory knowledge. I suppose a third option is that I actually gain enough experience to become a competent full time programmer for things unrelated to finance, but that’s not the goal unless it happens naturally.

As things are, I have no need or plan to make any money from this for several years. I just want to dedicate time to learning and creating progressively better personal projects until the day that I feel comfortable doing work for someone else or building a tool worth monetizing — maybe 2 or 3 years from now if I am very consistent?

I recognize that this all sounds naive. Feel free to knock some direction into me.

This is great, very realistic and an absolutely effective use of your time. There is another option of being a hybrid tool builder for financial teams (which I have had my team moonlight for on occasion), there is tons of opportunities doing that.

Python is almost certainly the place I'd point you to, along with learning how to do stuff in databases (SQL and noSQL). I think you can even look at some of the things you do in your day job that can probably be automated as part of this. One of the best ways to learn is to hack away at a project, and if you can turn it into something that makes your day job easier, or gets you some love from your bosses all the better.

mes
Apr 28, 2006

Mush Mushi posted:

Sorry if we scared you away from the accounting thread, Empress.

Anyway, I’m an accountant with no immediate plans to not be an accountant, but I’ve developed an interest in learning how to program, starting completely from scratch. This week I am completing Khan Academy’s computer science principles course. After that I’m planning on selecting courses from the “Open Source Society University” path on github.

My long term goal with this is to either continue working as an accountant with a freelancing side gig in software/data analysis, or to eventually find a role that requires both software and government regulatory knowledge. I suppose a third option is that I actually gain enough experience to become a competent full time programmer for things unrelated to finance, but that’s not the goal unless it happens naturally.

As things are, I have no need or plan to make any money from this for several years. I just want to dedicate time to learning and creating progressively better personal projects until the day that I feel comfortable doing work for someone else or building a tool worth monetizing — maybe 2 or 3 years from now if I am very consistent?

I recognize that this all sounds naive. Feel free to knock some direction into me.

Last year I was able to transition into a software development role at my current company after doing aerospace engineering for ~8 years. I don't think your plan is that naive, it took me about 2 or 3 years of learning on my own (and a lot of luck!) to be able to transfer to my current job. (I was exposed to some programming in my engineering classes in the past too, though.)

Finding ways to integrate the dev skills that you're learning into your current work can be a path forward on accelerating your learning like Lockback said. Consistency is key for sure, if you can work at it a little each day your skills will pick up. Once you learn enough dev skills to see some potential of automating some of your work it'll be a boost in motivation too.

Empress Brosephine
Mar 31, 2012

by Jeffrey of YOSPOS

Mush Mushi posted:

Sorry if we scared you away from the accounting thread, Empress.

Anyway, I’m an accountant with no immediate plans to not be an accountant, but I’ve developed an interest in learning how to program, starting completely from scratch. This week I am completing Khan Academy’s computer science principles course. After that I’m planning on selecting courses from the “Open Source Society University” path on github.

My long term goal with this is to either continue working as an accountant with a freelancing side gig in software/data analysis, or to eventually find a role that requires both software and government regulatory knowledge. I suppose a third option is that I actually gain enough experience to become a competent full time programmer for things unrelated to finance, but that’s not the goal unless it happens naturally.

As things are, I have no need or plan to make any money from this for several years. I just want to dedicate time to learning and creating progressively better personal projects until the day that I feel comfortable doing work for someone else or building a tool worth monetizing — maybe 2 or 3 years from now if I am very consistent?

I recognize that this all sounds naive. Feel free to knock some direction into me.
Hey no worries, you didn't scare me away. I like accounting but I just don't see me leaving my current web dev job to do it so I think I just had a panic attack of "what's the point of this degree". I've been thinking the past few days though about it and I might just finish out accounting since I'm so close anyways. I may even enjoy it more in a real school lol.

But reading your reply gave me confidence and maybe a idea of being able to sell myself as potentially utilizing both or atleast having the knowledge behind accounting. I guess it wouldn't hurt anyways to have the accounting behind me as a emergency plan as I would have the ability to enter the accounting field with my degree, I think.

Thanks!!

The Fool
Oct 16, 2003


Imho there are way too many tech bros that only know how to do tech things and a huge shortage of people that can bring cross-discipline knowledge to the table

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS

The Fool posted:

Imho there are way too many tech bros that only know how to do tech things and a huge shortage of people that can bring cross-discipline knowledge to the table

This is extremely true. The best co-workers I've ever had weren't the best programmers but knew how to translate complex concepts for folks who weren't at the same technical level and could communicate those ideas to a diverse audience of stakeholders.

first move tengen
Dec 2, 2011
Hey all, I graduated with a B.A. in English four years ago and I've been teaching English abroad since. I'm realizing now that I don't want to keep teaching my whole life, so I want to start learning how to code and hopefully get to a level of proficiency that can get me a job in New Zealand. Naturally I have lots of worries about my prospects, given that I'll be be competing with local CS graduates, but the good thing about my current job is that I have a lot of free time, and I think I'll be able to devote around 12 hours a week to learning how to code. I also will try to present my degree and current job as positives - I've been explaining things to children who don't speak much English for years, so that ought to make me pretty good at communicating any programming issues to coworkers!

I wouldn't say I have experience coding, but I have some level of exposure, because I almost finished a Math degree in college, and used Matlab for a differential equations class, and R for a modeling class. I also took linear algebra and I heard that could be relevant for some programming. But coding in those classes just meant plugging in commands that were given to us, and I never became comfortable in either program. Also, it's been a while since then. What those experiences did tell me, though, is that I will probably enjoy coding for work.

My (probably naive) plan is to use these 12 free hours a week to get comfortable with Python (because it is simple and widely applicable) and later SQL (because being able to work with data should make me a better candidate for lots of jobs). I know that I will need to create a portfolio by making my own projects, and I don't know what these will be yet, but I'm hoping that as I get more comfortable coding I will think of stuff to do. I do play a game that could use more user-developed online tools, and I was also thinking about possibly making an app or website to help English teachers in this country find jobs. I don't need to quit my teaching job, so I can keep learning on the side indefinitely, but I would sure like to be able to transition jobs one or two years from now.

How does that plan sound to you? I think the most confusing part of this process for me is that there are so many different types of programming jobs out there, and I have no idea which one(s) I should be working towards. Thanks for reading this.

AlphaKeny1
Feb 17, 2006

You could look at job listings and take note of what companies are looking for, it might give you a better idea of what you want to shoot for and tailor your studies from there.

If you want to go the fullstack web/app dev route, that sounds like a good plan. Focus on one thing at a time. You'll learn front end as you navigate building your own projects, for example. I'd throw in data structures and algorithms later on to prepare yourself when applying, assuming companies will interview on those.

Raenir Salazar
Nov 5, 2010

College Slice
What do I do when the dream job I really want has a bit of a lengthy process (like a couple of months) but other jobs while they are also decent if not good and also in the same field I am interested in (the games industry) might offer me a job first.

I'd like to not pass up on opportunities, especially as I feel beggars can't be choosers, but I really do want that job that might take longer to get a final answer on; how do I balance entertaining other jobs as to avoid turning them down out of hand while waiting on what the final result is from my dream job?

Lockback
Sep 3, 2006

All days are nights to see till I see thee; and nights bright days when dreams do show me thee.

Raenir Salazar posted:

What do I do when the dream job I really want has a bit of a lengthy process (like a couple of months) but other jobs while they are also decent if not good and also in the same field I am interested in (the games industry) might offer me a job first.

I'd like to not pass up on opportunities, especially as I feel beggars can't be choosers, but I really do want that job that might take longer to get a final answer on; how do I balance entertaining other jobs as to avoid turning them down out of hand while waiting on what the final result is from my dream job?

While its not a good look to bail on a job shortly after taking it and it's burning a bridge, "Dream Job" would be a good reason to do that. If you're talking about "potential job is marginally better" then I'd say take the bird in the hand and don't worry about it. If potential job is truly much better then I don't think it makes you a horrible person to bail out.

And for the games industry, leaving a "typical" entry level game job for one of the few, legit really good ones is probably a real good move even if it means walking away from job #1 after a couple months.

Raenir Salazar
Nov 5, 2010

College Slice

Lockback posted:

While its not a good look to bail on a job shortly after taking it and it's burning a bridge, "Dream Job" would be a good reason to do that. If you're talking about "potential job is marginally better" then I'd say take the bird in the hand and don't worry about it. If potential job is truly much better then I don't think it makes you a horrible person to bail out.

And for the games industry, leaving a "typical" entry level game job for one of the few, legit really good ones is probably a real good move even if it means walking away from job #1 after a couple months.

To add some clarification, I don't have any job offers yet, but I am in the interview process for I think three or four game studios, one of which (the dream job, which is also a good company to work at w.r.t working conditions) told me up front that their process might take a couple of months; I don't know how long the process will be for the other companies as I've only started taking hackaranks and scheduling screening interviews, but one of them I am having a interview with their team/project lead next week.

So basically there's no job offers at hand, but I am worried one might appear before the job I really want to work at can have a chance to offer me, BUT they might not if my proficiency isn't the right level. I'm not in a super rush to take a job financially speaking but I am worried about turning down an opportunity for an opportunity that might not materialize but I imagine the time different between offers is only a few weeks and not months.

Harriet Carker
Jun 2, 2009

If you can get an offer or two, you can usually use that as leverage to speed up the process at another company. Also, if you receive an offer, you can usually get an extended period of time to make a decision or even get the upper hand in negotiations by telling the offering company you are still actively talking with other companies.

Faith For Two
Aug 27, 2015
I just got a “Partially Achieves Expectations” rating from my annual review.

Does this ruin my hopes and dreams of being transferred to a similar role under different leadership at the company I work for?

ultrafilter
Aug 23, 2007

It's okay if you have any questions.


Faith For Two posted:

I just got a “Partially Achieves Expectations” rating from my annual review.

Does this ruin my hopes and dreams of being transferred to a similar role under different leadership at the company I work for?

That's hard to answer because policies on internal transfers vary a lot from company to company. But if you can get a good rating next year, that'll help a lot.

Why did you get that rating, and why are you interested in transfering?

Vincent Valentine
Feb 28, 2006

Murdertime

Faith For Two posted:

I just got a “Partially Achieves Expectations” rating from my annual review.

Does this ruin my hopes and dreams of being transferred to a similar role under different leadership at the company I work for?

I have only ever gotten "meets expectations" at my job, despite going well above and beyond. It's a scale of 1 to 5 points and "meets expectations" is a 2.

This is because my managers have a set, total, number of points to distribute to all members of the engineering team, and bonuses are based on the amount of points earned. I have been told, flat out, that the only reason I didn't score higher is because they just ran out of points to distribute.

Take a wild loving guess at who consistently gets above a 2.

Raenir Salazar
Nov 5, 2010

College Slice

Vincent Valentine posted:

I have only ever gotten "meets expectations" at my job, despite going well above and beyond. It's a scale of 1 to 5 points and "meets expectations" is a 2.

This is because my managers have a set, total, number of points to distribute to all members of the engineering team, and bonuses are based on the amount of points earned. I have been told, flat out, that the only reason I didn't score higher is because they just ran out of points to distribute.

Take a wild loving guess at who consistently gets above a 2.

That reminds me back when I did game testing and we found a bug, even if we needed to work as a team to find the bug, only one of us actually got to get credit for it!

Faith For Two
Aug 27, 2015

ultrafilter posted:

That's hard to answer because policies on internal transfers vary a lot from company to company. But if you can get a good rating next year, that'll help a lot.

Why did you get that rating, and why are you interested in transfering?

Because I don’t finish my work on time.

And I’m interested in transferring because there was a point last year where I started feeling symptoms of burnout from my work/life balance getting bad. My work life balance has improved since then, but I would rather work somewhere else than stay and hope the leadership team gets better at project management.

I work for a large company so I figured it would be easier to transfer to a different site than try finding a job somewhere else.

teen phone cutie
Jun 18, 2012

last year i rewrote something awful from scratch because i hate myself
just hosed up a code challenge because i ran out of time and turns out my issue was with 1 line that i fixed like 3 minutes after the timer ended.

and they passed on me no chance for another interview to explain myself lmbo. interviewing is so broken just kill the entire system ffs

Lockback
Sep 3, 2006

All days are nights to see till I see thee; and nights bright days when dreams do show me thee.

Faith For Two posted:


I work for a large company so I figured it would be easier to transfer to a different site than try finding a job somewhere else.

This is almost always not true.

Raenir Salazar
Nov 5, 2010

College Slice
Speaking of code challenges I took one recently for C# and I had a lot of trouble with it because y'know, people don't typically operate well under pressure.

Later that night when I was sleeping I bolt upright because I have the realization I vastly overcomplicated the problem and it was way simpler than I initially took it to be.

Which is frustrating because that question took up so much of my time I couldn't complete the last question which was trivial.

The question was along the lines of, complete the following program, there are two inputs, A and B and they are integers. From these two integers find us the largest possible square, such that for example suppose A is 10 and B is 21, the answer is 7 because 21 divides into 3 7 times and you can cut off 3 from 10 to also make seven. The minimum length of any side is 1 so if A+B is 3 return "No".

The way it was phrased tricked me into overcomplicating it, that I had to do some weird optimization puzzle between these two numbers and account for edge cases like what if A or B is 1 and the other is some larger number etc.

When I was sleeping I realize it's trivially simple. Just take RoundToInt((A+B)/4) if A+B >= 4 and that's always your answer! Because for the example given, 10+21 is 31, 31/4 is 7.something as 4x7 is 28 with remainder 3; and this works in general!

asur
Dec 28, 2012

Faith For Two posted:

Because I don’t finish my work on time.

And I’m interested in transferring because there was a point last year where I started feeling symptoms of burnout from my work/life balance getting bad. My work life balance has improved since then, but I would rather work somewhere else than stay and hope the leadership team gets better at project management.

I work for a large company so I figured it would be easier to transfer to a different site than try finding a job somewhere else.

Most companies will not let you transfer if you're under the default expectations or at least not without jumping through hoops and you'd need the manager you're transferring under to solid back it which can be a stretch if you don't meet expectations. You should look into the specific rules of your company.

It's a lot easier to switch companies than transfer internally at a lot of companies.

You don't elaborate on the issue, but a common problem for junior engineers is to assume the scope of the work they were given is accurate and then never give updates until they miss the deadline. Both of these are easy to correct. You should scope all work you're given and communicate immediately if you can't meet the deadlines and then continue to give updates as you're working so that everyone can stay informed and make decisions if work starts to slip. It's much better to give people a heads up days or weeks in advance rather than on the day they were expecting the work to be complete. Of course your manager may be terrible and thus may not help at all in which case you should find a new job.

Doom Mathematic
Sep 2, 2008

Raenir Salazar posted:

The question was along the lines of, complete the following program, there are two inputs, A and B and they are integers. From these two integers find us the largest possible square, such that for example suppose A is 10 and B is 21, the answer is 7 because 21 divides into 3 7 times and you can cut off 3 from 10 to also make seven. The minimum length of any side is 1 so if A+B is 3 return "No".

The way it was phrased tricked me into overcomplicating it, that I had to do some weird optimization puzzle between these two numbers and account for edge cases like what if A or B is 1 and the other is some larger number etc.

When I was sleeping I realize it's trivially simple. Just take RoundToInt((A+B)/4) if A+B >= 4 and that's always your answer! Because for the example given, 10+21 is 31, 31/4 is 7.something as 4x7 is 28 with remainder 3; and this works in general!

I've read this eight times and I haven't a clue what the actual question was. How can 7 be "the largest possible square"? 7 isn't a square number?

Hughlander
May 11, 2005

Faith For Two posted:

I just got a “Partially Achieves Expectations” rating from my annual review.

Does this ruin my hopes and dreams of being transferred to a similar role under different leadership at the company I work for?

They're probably setting you up for a PIP.

ultrafilter posted:

That's hard to answer because policies on internal transfers vary a lot from company to company. But if you can get a good rating next year, that'll help a lot.

Why did you get that rating, and why are you interested in transfering?

lol@staying another year at a company giving a negative review (And make no mistake that is a negative review.)

Vincent Valentine posted:

I have only ever gotten "meets expectations" at my job, despite going well above and beyond. It's a scale of 1 to 5 points and "meets expectations" is a 2.

This is because my managers have a set, total, number of points to distribute to all members of the engineering team, and bonuses are based on the amount of points earned. I have been told, flat out, that the only reason I didn't score higher is because they just ran out of points to distribute.

Take a wild loving guess at who consistently gets above a 2.

And here I thought stack ranking went out in 2000s. Why would you ever go above and beyond at a company that pays you back like that.

Maybe I'm bitter today but if I received anything other than exceeds expectations from a place I'd bounce.

Raenir Salazar
Nov 5, 2010

College Slice

Doom Mathematic posted:

I've read this eight times and I haven't a clue what the actual question was. How can 7 be "the largest possible square"? 7 isn't a square number?

I didn't explain it well (and I don't remember the exact wording), the question is along the lines of "return the largest possible length that make up the sides of the square from the two numbers such that it is the largest possible square" but it also included confusing wording about the nature of A and B.

Dylan16807
May 12, 2010

Doom Mathematic posted:

I've read this eight times and I haven't a clue what the actual question was. How can 7 be "the largest possible square"? 7 isn't a square number?

Took me a minute but I think I figured out the prompt.

You are given two rods, length A and B. You can cut them into more rods, but not combine rods. You have to make a square out of four equal length rods. What is the largest rod length you can use? Write a function that takes A and B and returns this number.

Edit: though that would mean (A+B)/4 is the wrong answer, for something like 4 and 40. So I'm not sure. If it's just "A+B total resources, split into four" that's not much of a problem to solve.

Dylan16807 fucked around with this message at 11:13 on Mar 4, 2021

Xarn
Jun 26, 2015

Hughlander posted:

And here I thought stack ranking went out in 2000s. Why would you ever go above and beyond at a company that pays you back like that.

It was great listening to MS HR rep going "We aren't like some other companies that do {long-winded-explanation-of-stack-ranking}, ..., you might be used to {long-winded-explanation-of-stack-ranking} from other companies, but here at MS we are different" during new employee orientation. Hmmm, if only there was a big tech company that was known for stack ranking until recently... I think its name started with M? :v:

redleader
Aug 18, 2005

Engage according to operational parameters
iirc they haven't done stack ranking in quite a number of years - maybe a decade or more. however, it's the sort of stain that doesn't wipe away easily

Raenir Salazar
Nov 5, 2010

College Slice

Dylan16807 posted:

Took me a minute but I think I figured out the prompt.

You are given two rods, length A and B. You can cut them into more rods, but not combine rods. You have to make a square out of four equal length rods. What is the largest rod length you can use? Write a function that takes A and B and returns this number.

Edit: though that would mean (A+B)/4 is the wrong answer, for something like 4 and 40. So I'm not sure. If it's just "A+B total resources, split into four" that's not much of a problem to solve.

I think you're correct, I don't remember the question very well at this point, there had to be some reason why I struggled with it in terms of how it was phrased and I think that's it but I am not 100%.

(A+B)/4 might not be correct but on the other hand probably does get me closer to a correct solution.

Maybe something like this?

code:
int larger;
int smaller;
if (A > B) {
    larger = A
    smaller = B
} else {
    larger = B
    smaller = A
}

if larger + smaller < 4 return "I can't do that dave"

attempt = floor((larger+smaller) / 4)
if (smaller < attempt) {
    attempt = LCD(larger)
} 

return attempt.toString();
10 and 21 would still get 7.
1 and 8 would still get 2.
4 and 40 would get 10.
1 and 2 would get the fail message.

Any issues?

Eldred
Feb 19, 2004
Weight gain is impossible.

Raenir Salazar posted:

I think you're correct, I don't remember the question very well at this point, there had to be some reason why I struggled with it in terms of how it was phrased and I think that's it but I am not 100%.

(A+B)/4 might not be correct but on the other hand probably does get me closer to a correct solution.

Maybe something like this?

code:
int larger;
int smaller;
if (A > B) {
    larger = A
    smaller = B
} else {
    larger = B
    smaller = A
}

if larger + smaller < 4 return "I can't do that dave"

attempt = floor((larger+smaller) / 4)
if (smaller < attempt) {
    attempt = LCD(larger)
} 

return attempt.toString();
10 and 21 would still get 7.
1 and 8 would still get 2.
4 and 40 would get 10.
1 and 2 would get the fail message.

Any issues?

I'm pretty sure this is a combinatorics problem. Your options are 4 sides from A 0 from B, 3 sides from A 1 from B, etc. Solve for edge cases in the splitting then take the max of those 5 cases. You can probably shorten the number of cases with the larger/smaller swap you have there too - so really it's 4, 3, or 2 sides from large.

Either way this is kind of a bad interview problem tbh unless it's a job role that requires math knowledge.

Raenir Salazar
Nov 5, 2010

College Slice
The next question I didn't have time to do made me sad because it was so trivial, I should have skipped to it.

Basically suppose a cartesian plane centered at 0,0; there is given to you a list of X,Y coordinates labeled with letters (A, B, C, D, etc).

Return the string consisting of the labels enclosed in the largest circle that doesn't contain any duplicate labels.

So if there's 2 A's, only include the one closest to the origin.

Just... Make a list of the all the points, sort by distance from 0,0 and add them to some sort of dictionary until there's a dupe and return the result. Easy.

I left comments outlining my logic to how I would solve it if I didn't run out of time. Lets hope they aren't testing me for time management :v:

HappyHippo
Nov 19, 2003
Do you have an Air Miles Card?
Was it specified that the circle was centered on the origin?

Raenir Salazar
Nov 5, 2010

College Slice

HappyHippo posted:

Was it specified that the circle was centered on the origin?

I believe so, but this was over a week ago so I could be wrong.

Doom Mathematic
Sep 2, 2008
I don't think this requires mathematics knowledge beyond how to measure length, add and subtract. This is mainly a question about being able to turn a question into a working piece of code with a loop.

Because a square has only four sides, I think iterating from 0 to 4 inclusive is acceptable here.

JavaScript code:
const SIDES = 4

// assumes `a` and `b` are non-negative numbers
const getSide = (a, b) => {
	let bestKnown = -Infinity
	for (let numFromRodA = 0; numFromRodA <= SIDES; numFromRodA++) {
		const numFromRodB = SIDES - numFromRodA
		const sideLengthA = Math.floor(a / numFromRodA)
		const sideLengthB = Math.floor(b / numFromRodB)
		const sideLength = Math.min(sideLengthA, sideLengthB)
		if (sideLength > bestKnown) {
			bestKnown = sideLength
		}
	}
	return bestKnown
}

console.log(getSide(10, 21)) // 7
console.log(getSide(21, 1)) // 5
console.log(getSide(7, 10)) // 3
console.log(getSide(1, 2)) // 0 - seems like this would be a fair answer in this case?
That works as a basic solution. I think it probably gets more interesting if they extend the problem and start asking about more than four sides and more than two rods. Naively I get one additional loop per additional rod, but there might be a cleverer way to do this which I'm not seeing.

Shadow0
Jun 16, 2008


If to live in this style is to be eccentric, it must be confessed that there is something good in eccentricity.

Grimey Drawer
How do I check if I've been added to some kind of industry-wide blacklist?

Hug in a Can
Aug 1, 2010

NICE FLAMINGO
kind heart
fierce mind
brave spirit

:h: be good and try hard! :h:

Vincent Valentine posted:

I have only ever gotten "meets expectations" at my job, despite going well above and beyond. It's a scale of 1 to 5 points and "meets expectations" is a 2.

This is because my managers have a set, total, number of points to distribute to all members of the engineering team, and bonuses are based on the amount of points earned. I have been told, flat out, that the only reason I didn't score higher is because they just ran out of points to distribute.

Take a wild loving guess at who consistently gets above a 2.

Wait, who gets above a 2? :confused:

ultrafilter
Aug 23, 2007

It's okay if you have any questions.


Hug in a Can posted:

Wait, who gets above a 2? :confused:

Old white men probably.

Vincent Valentine
Feb 28, 2006

Murdertime

Hug in a Can posted:

Wait, who gets above a 2? :confused:

The people in charge of assigning the points.

Fellatio del Toro
Mar 21, 2009

boss at my old company told me in my performance review that I was getting 4/5 because corporate said they weren't allowed to give 5s

I guess it was supposed to be a positive comment but it was a lot more demoralizing than just saying I got a 4

Hughlander
May 11, 2005

Shadow0 posted:

How do I check if I've been added to some kind of industry-wide blacklist?

As someone who hires in industry, this is no industry-wide blacklist. (This however also reminds me of The Usenet Cabal from the '90s)

Adbot
ADBOT LOVES YOU

Happy Thread
Jul 10, 2005

by Fluffdaddy
Plaster Town Cop
According to "Cracking the Coding Interview", after a Google hiring committee recommends you an offer, your packet goes to a compensation committee, and then to the "executive management committee". That means the execs of Google have final veto power over every incoming employee.

Top Google company execs do double-duty for the spying industry and probably have access to your search history on the downlow and do a whole bunch of other shady poo poo all the time using the resources that only execs quietly have access to. Maybe there's some super exclusive room where the insiders meet to sneakily vet each incoming class of employees via quick searches through their combined web histories, filtering out really risky people who could cost them money somehow. There's your blacklist

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply