/b/ - Random

A place for random musings and discussions.

Happy Birthday Bharatchan2 years, hope everyone has a great life ahead. ...
New Boards Added

>>>/int/ >>>/out/ >>>/wp/ >>>/ck/ >>>/k/ >>>/fa/

Bharatchan September 2025 UpdateHello everyone, it's been a while. Here we are wit...
[View Noticeboard]
0/4000

BharatChan Disclaimer

Notice

Before proceeding, please read and understand the following:

1. BharatChan is a user-generated content platform. The site owners do not claim responsibility for posts made by users.

2. By accessing this website, you acknowledge that content may not be suitable for all audiences.

3. You must follow BharatChan’s community guidelines and rules. Failure to do so may result in a ban.

4. By using BharatChan users agree to the use of cookies, mostly for session related to user.

A poster on BharatChan must abide by the following rules:

Sitewide Rules
You must be 18 or older to post.
Sharing personal details or engaging in doxing is strictly prohibited.
Political discussions should be confined to /pol/.
Off-topic discussions, thread derailment, or spam may result in a ban and IP blacklist.
Pornographic content is strictly prohibited.
Any activity violating local laws is not allowed.
If you are not an Indian, you can only post in /int/. Or create and account and ask for approval to post in other boards.
Acknowledge

Recent Posts

View

View

BHACHADS BHI NAA YAAR

View

/brvtal/ - civil war in sudan

View

View

4 saal beet gaye

View

View

View

View

View

Couples are so fortunate yaaron

View

Pajaat saab ke aane ka time ho rha hai

View

View

View

Agarbattiyan raakh hogayi

View

View

Bhch institute or Jaatology

View

North Eastern Pyaari /nep/

View

View

View

Welcome to Europa

View

EGTOW - Everyone Going Their Own Way

View

Kanging within Brahmins

View

the thing about us indians

View

View

View

View

supreme tier video generation request

View

View

View

View

View

View

View

View

View

View

View

Ever met a North indian christian pajeet ?

View

View

Why don't we've a eugenics policy?

View

Internet Archive Sharing

View

View

View

View

View

View

new hairstyle

View

View

View

Duck

IN

nq1ca7

No.366463

/g is dead so asking here, what to do when your code works in leetcode but is shit and unoptimized.

Do you do it again or just look at the best solution.

For example for the valid parentheses problem, I wrote this and yeah its bad but it works, but now the question is if I should move on or perfect this

Anonymous

IN

NrI8Xx

No.366464

>>366463(OP)

Perfect this in interviews you have to waste time

share upoptimized solution then he will tell u share optimized solution and then you will act like u came up with optimized solution by thinking hard but reality is you solved that problem plenty of times before

Anonymous

IN

NrI8Xx

No.366465

>>366463(OP)

just looked at the code seems alright optimized time complexity maybe just there machine ran your code slowly

Anonymous

IN

NrI8Xx

No.366466

>>366465

their*

Anonymous

IN

puWd6F

No.366467

>>366463(OP)

Your caste?

Duck

IN

nq1ca7

No.366470

>>366465

I learned from gemini that uitl.Stack is shit and modern java has Deque which is apparently much faster, changing just that improved runtime quite a lot, then I have lots of if and else if statements, but there exists a reverse logic solution that is kinda like this, which is the absolue best case(except for one thing)

Not that I would have ever figured this out on my own.

And well the most memory efficient thing is to implement stack with a static character array yourself, using no standard library.

>>366467

Anil Kunjis

Anonymous

IN

NrI8Xx

No.366472

>>366470

nice yaara

Active Users in /b/: N/A