Could someone help me understand leetcoding in python. I’m solving BST problems and why do all the solutions use helper methods, and when I don’t use a helper method it doesn’t work as well. Do you have to use helper methods?

Posting as :
works at
You are currently posting as works at

Helper method for what ? Helpers are used typically to break down the code logic into simpler blocks. What matters on leetcode is correctness and performance.

like

This is a really helpful way to explain it. Thank you for this.

Assuming op is studying for an interview, raw performance isn't everything. In addition, we also look for code that's scalable and maintainable. Part of that is being readable. In breaking large blocks of code into smaller translation units makes it easier to debug, and to test.

like

Dm me

stop focusing on if a helper function was used or not. Understand the logic first (before you write any code) and all those ways of breaking down the code will come intuitively. The key here is the problem solving piece

Related Posts

Guys!!! I'm so effing annoyed. How do you guys even access office email on your mobile phones? I recently joined TCS and man I'm so pissed. Why don't they just allow us to use the Outlook app. This makes me furious damn. 😭😭😭 😡

like

How to tackle gap periods in IT interviews?

like

CitiusTech Hirings.

Please send your experience and required position at
vinayshankarmails@gmail.com. I'll send you the referral link. DM for any additional details required.

Post Photo
like

Need help !!

Can Anyone from ICICI bank help get a transaction details of a person who is been missing for few days now ??
Location Mumbai

Favorite show on Netflix?? recommendations?? Just completed The Crown s1 and loved it! But I can watch any genre..

like

Hi guys,

Need advice on the following three offers :
American Express - 27.5 lpa fixed + 2 lakh variable + 1 lakh JB
OpenText - 28 lpa all fixed + pf + gratuity
Oracle - 29.5 lpa all fixed + pf + gratuity separately

IBM Tata Consultancy Accenture Banking Infosys Amazon Nagaro Web Services Legato Health Technologies UnitedHealth Group

Years of experience - 6 years 8 monts

like

Anyone know Deloitte core business group in Deloitte consulting LLP?

Salary range, business outlook of this group amid layoffs and green card initiation timeline?

Post Photo

What's going on with the January 6 probe? I am OOTL, can anyone fill me in?

like

War correspondents, how did that become your focus?

like

Two missed calls from our fearless leader. Either this is social engineering or I’m more important than I thought I was

Post Photo
like

Does private debt tend to win over banks in rising interest rates environment? Will it compensate the overall decline in borrowing for private debt?

like

Hey Fishes, I feel the RTO policy in not getting enforced rather it is getting imposed it seems (in ZS across offices). Suddenly from being employee centric they have shifted their focus to ZS culture and values. Let the thoughts pour in!

like

Best books you read this year that aren’t about sales, marketing or prospecting?

like

I don’t get paid to write advertising. I get paid to sit through meetings like these. Kill me.

like

What kinds of models can I create for low frequency businesses?

I recently switched to a startup at a data analyst role and have been teaching myself about statistics…I found survival analysis models and wanted to try and implement one to determine our customer retention rate and eventually a LTV

The business I’m in is very low frequency (most customers use our product once a year, but we do have many users) and I’m worried this will lead to poor results. What other models do…

like

i think we have finally squeezed out all the happy-go-lucky advertisers from this bowl and digitally transformed it into a consultant and lawyer cesspool... mission accomplished

likefunnyuplifting

Guys, Anyone know the diff between S&P global, S&P global market intelligence and S&P global capital IQ.

Also, please tell me how it makes difference to a employee (developer)

Definitely using both of these.

Post Photo
like

How do you deal with clients who act like they know more than you even though they don't?

like

Any experience of working on third party payroll of lancesoft? Please share your views, Lancesoft

What should we be cautious of on third party payroll?
Please share your views

like

Additional Posts in Software Engineering

Where/ how can I learn Azure?

like

Hi,
Does anyone know the interview process for Hisense? I couldn’t find anything online. @Hisense

like

What drives people to answer stackoverflow questions? I love them for doing so, but when will I feel the urge to contribute?

like

I got an offer from Mindtree as a Support Engineer in the US and was asked to fill out a profile through an excel sheet. Has anyone else experienced this? I don't feel comfortable sending my personal info over email in an excel sheet

like

Okay, I feel like if a QE in India needs to email me, an SE, to just press the 'resolve' button on a user story that was created after a bug report was issued and fixed, then maybe... Just MAYBE... There might be a bureaucracy problem. 😒

likefunny

Anyone working with Goldman Sachs in the engineering field up for a little chat ? Kindly do me Goldman Sachs

like

Hello Pals - I have 8+ years of exp as business analyst, and consultant. No coding experience, but good in data & reporting. Planning to take a course from Learnbay after reading a lot of reviews in the internet. Its for Data Science Master program - can anyone suggest if they are good and help me make the transition I'm looking for (Feel free to share your choices if any)

like

Hi,
I am looking to renew my contract with a telecom giant in Toronto, Canada . I am a back end java developer with experience in micro services. Overall experience of 6 years . What is the market per hour rate for the above skills ? Don’t want to undersell myself . Need your insights !
Thank you !

like

Has anyone else worked two programming roles at one time?
I currently work as a Contracted Software Engineer and I’m set to finish my contracted time at the end of October. To stay ahead of game I started to move forward in the interview process with another opportunity as an Application Software Programmer and just received notification that I got the position. I definitely could use the extra paycheck to help out with my financial obligations. Just wanted to see if anyone has done this before.

like

So I've had 2 hiring managers and several recruiters from Amazon reach out to me about applying for some open positions with the company (android). I completed the coding assessment and now they want me to go through a round of 5 hour interviews next week. Is there a good chance I'll be hired if engineering managers are reaching out to me? I'm really not sure how badly I want to work for them and I don't want to be laid off months after being hired on. Anyone know what Amazon hiring is like?

like

I am a contract employee that was just brought on a month ago. I have done well with onboarding and learning their tech. I have now been asked to design an architecture for an upcoming project, and document it all. Nothing at this company has been well documented before. I have a feeling they just planning to use my previous experience and then let me go since my pay is high. Is there a way I can safeguard against this?

Hi all - just joining and looking for some guidance! I am currently in an IT internship position (making pretty solid money considering) and following this summer I will stay on part time during my senior year (discussing a full-time job offer after already). I’m getting my computer science degree, so I would like to do something more technical in the workplace when I graduate. How do I advocate myself for that to my manager without sounding unappreciative of the position I’m in?

like

Hello All anyone know about company “Reply” in London,UK?
I need to understand paternity leave over there.

Also posted over in tech bowl. Looking for advice on whether pursue a CS degree. I’m an older guy shifting to SWE. I finished bootcamp last May & about to start my first jr role at Oracle OCI. Late 30’s with a couple of kids. Is it worth it for me to seek a CS degree at this time/soonish? I’m not afraid of the extra work, and would go part time. Wondering if the eventual payoff would worth the effort. Will I level up quicker? Employer has partial tuition reimb.

like

Is your compensation and performance reviewed automatically on a regular/annual basis? I don’t get either of these unless I ask for it! Found out others in our company experienced the same as me. Lowball Salaries trending as a common pain point

I like my team and work life balance, during the pandemic was very beneficial to my wellbeing. However feel I owe it to myself now, to be earning what I’m worth in the market (I’m underpaid by a fair bit) especially with inflation costs

like

Hello everyone,

I love in Europe and was wondering how difficult or easy getting remote front end position in a US company would be and if the salary would be the same as a US citizen who lives in the US?

like

Looking to transition to a new career, possibly to SWE. I have a physical science background with some student loan debt. Before I dive into more student loans, I wanted to check out some Software Engineering boot camps....

Any recommendations? What's your personal experience? Are they worth paying, or is college the way?

likeupliftinghelpful

First post, not sure if this is the best bowl to use but here goes. I’m wondering if anyone can share a bit about their experience working at MongoDB. I have seen they are hiring for many roles and am curious to hear about their experience. In particular, I would like to hear about software engineer roles. Currently I work on database engine C++ code and have seen some roles that indicate continuing down this stream would be possible with my skillset.

like

Which languages do you use at your job as a software engineer?

like

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal