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

What are different roles in LTI. I have got offer as P4 .May I know other roles from P4 onwards.
My exp is 11.10 years

like

Guys, how's the career and salary growth at a senior level (Sr.manager) at Tata Consultancy? Also what are the distinguishable benefits at TCS?

I am currently evaluating offer

like

Reposting this:
Has anyone ever worked in Bytedance/ Amazon (APAC)? How’s the culture like and are the compensation package competitive?

Going through couple interviews with both companies at the moment, unsure which is the better company to work in.

like

How are the SAP projects in IBM, Mumbai location?

Hi All,
Need some help in deciding which one i should choose between Tredense Analytics And
Quantiphi
Deciding Factor : Work Quality and learning curve. Please let me know your views Thanks in advanced
Quantiphi Tredence

like

Guys can you please tell me how much Infosys gave salary to fresher per month with deduction.. !

Applied for a position in PWC UK and status shows as 'interviewin' on workday. Does this mean I'm selected for an Interview, or that the position itself is now in the interviewing process.

Thought we would close today. Thought we would close tomorrow bc it was just a funding issue. Now im watching partners fighting over random things on an ancillary doc and being nasty at each other. Eating 🍿 but i want this deal to close

likefunny

Hello guys,

Anyone here working on SAP Ariba/ SAP Concur?

Need information and help for the same. :)

like

Hi - wanted to check if someone have any links which i can refer to.
I have been into techno functional BA role, where i was working more on implementation and using sql to query data and comeup with analysis.
Now, after I switched I need to create SRD/FSD from BRD and also mapping documents for the same.

Is there any way where i can go through any videos and understand the concept of writing it down?

like

Hello, in my previous organisation I worked in development domain (Oracle IAM Tool and Java)and my post was software Engineer, i joined Wipro as project Engineer in April 2022 and was assigned non technical project as an analyst.

I fought my way hard to get released from the project. However my designation is changed as Analyst. Should I ask for change in designation as I know that analyst is non-technical profile? Would my designation impact my future role as well?

like

Hi Guys can anyone refer me for the position of data and analytics analyst Job Identification NO :210362477..THANKS IN ADVANCE!

like

I want to get into surfing but have no idea where to start. Did anyone here start as an adult? What do you recommend?

like
like

What kind of work does Analyst data science folks in Accenture get to work??

like

How are the hikes in fidelity every year? And do they pay out 100% bonuses? Are there any other perks?

like

UX Designer - 5+ years of experience

What Salary i can expect with this experience.?
and please do mention what you guys are earning and Company. it will help others to achieve their Salary expectations.

Role - Experience - CTC - Company

How is Black Taxi doing? Is it growing? Does it have many paying clients? I haven't seen any work or heard much.

like

Additional Posts in Software Engineering

So, I've realised there's a problem with developers, a lot of them are coders, not engineers. And another issue, is that, companies don't really care about their progression as far as I'm aware, so what did you guys do in your own time to transition from being a coder to an engineer?

like

What do you think about switching tech stacks vs becoming an expert in one stack? I am a backend Java engineer, and have solely used Java since I've started my software engineering career about 2 years ago. I don't know whether I should explore other tech stacks while I'm young, or instead focus on becoming a Java expert, given that I enjoy working in Java.

like

Have been struggling to context switch between different projects that I am working on simultaneously. Any tips? Thanks in advance :)

like

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

like

Is 120k+super a good salary for software tester (manual) with 7 years of experience in Melbourne?

like

Is it normal for Amazon recruiters to reach out to you regarding SWE positions? I’ve received a couple messages on LinkedIn about some openings, but considering the fact that I’m still a junior developer I’m not sure if they’re legit or scams.

like

How is the infostretch UK? Is it good for career growth? I am an Architect and would like to continue my career in being an Architect. I have heard that people working on Goldman Sachs projects have higher visibility than others. Please advise whether I should join as I will be assigned to non-GS project.

like

I just got a job offer for an Entry Level Software Engineer at Boeing in Saint Louis. The salary is $82,000 with an $8,000 sign on bonus. I was hoping for an offer closer to 90k base and I don’t care too much for a sign on bonus. However, this is a lot more than what I’m making now, and would be my first SWE job. Should I counter? If so, how would I go about doing that? Thanks!

like

Need some help finding a SWE job. I’ve been trying for a long time with no luck and just want to get my foot in the door. Any help is welcome whether its some tips or a referral. You can DM or comment here. Thank you!

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

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

like

any good courses for kotlin around? preferably online

My client’s site got hacked yesterday. I didn’t see any actual signs of impending attack. But knowing how little we do for cyber security when building a site, I knew we must have been vulnerable in some way. I’ve tried pushing for more cybersecurity measures in the last year, but being a Jr, I don’t know a lot about it. My manager had brushed it off as something that would be nice to look into if [insert excuses not to here]. Can’t push it off any longer. I’m afraid heads are gonna roll.Advice?

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

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

Would like some tips on how to prepare for Senior Fullstack Developer tech interviews. What kind of questions should I expect? Any other tips on how to prepare? TIA

like

My husband is going through the interview process at Vanguard for an entry level software engineering role. He just graduated bootcamp but had been self studying for years as well. He's definitely junior level. What kinds of questions should he expect in his technical interview?

like

What would your reaction be if the company you applied to asked for you to get permission from your current firm before moving forward? The situation is the company you're applying to is a client of your current firm, and you've already gone through the interview process with the new company. Thoughts?

like
like

My coworker tried to tell me that react is an API….

funny

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