#daily-progress
1 messages · Page 7 of 1
oooo this kattis website looks interesting
i had claude quiz me on common react bugs + usage
i feel vvvv inspired lately
Wtf you're so cracked bro
hit 90 LC questions :D my goal back in february was 85 before the school year ended and i still have like 20 days
level order traversal
bt right side view
@heady hatch @bold ether
very cool keep up the good work 
Nice bro
Holy shit wow good shit man
I didnt have much trouble with two pointers and sliding window problems, but everything recursion related is kicking my ass rn
created a custom HNSW implementation from scratch in C++, got 95% of the QPS and latency of the hnswlib, working on the remaining 5%
Implemented A* and Recursive Backtracking for my small algo visualizer Rust side project
count good nodes in BT
i had to look at the solution but i was actually decently close/i had logic'd it out right, so i was able to put my own (lobotomized) spin on neetcode's solution because i think i understood the intuition behind it well
couldnt solve valid BST and ran out of time in my morning so will revisit tomorrow
lowkey dooming atm but im sure things will turn out fine
i feel like my memory is Really Bad so im probably just gonna finish trees then review all their code implementations/run through them super methodically
likewise probably gonna cut down my LC time to focus more on finals; maybe only 30m-1h daily
I bombed this React interview and it makes me wonder why i didn't just do the backend engineer role hah
"bombed" = needed significant guidance, not that i didn't get the answer
what did they ask?
it was to debug a glitchy sticky header being handled by a useEffect hook
I had to console.log (which the interviewer told me to do) and I tried a few different things (rather silently) before answering
but bc i have been outsourcing my FE to AI lately I became very rusty at debugging lol
(and I started my career as REact/TS.... a shame)
It's alright brother we'll get them next time
Now you know what you're weak at so you can get stronger
yea
altho now i am wondering if i should just stick to backend for now
but probably good to be versatile candidate anyway
Implemented Prim's Algorithm for my rust side project.
Finished the first chapter of Crafting Interpreters.
Hey everyone 👋 built something and would love honest feedback.
GitVize visualizes any GitHub repo as an interactive graph.
Swap "hub" for "vize" in any GitHub URL to try it:
github.com/facebook/react → gitvize.com/facebook/react
Still early so bugs are possible. Try it on your own projects
and let me know what breaks or what's missing 🙏
Turn any GitHub repository into stunning, interactive visualizations.
this is fantastic, great job on this :P my only piece of feedback would be to use a more performant force graphing library
Thanks! Currently using Pixi.js + d3-force for WebGL rendering, any library you'd recommend for better performance at scale?
reviewed 3
I feel stumped on what to study
So the actual prioritized list right now:
Live coding reps — timed, watched if possible, both DSA medium and implementation
React fluency — build things, not read things. One small app a day for a week
Take-home quality — use AI more aggressively, study what good looks like
RoR/ActiveRecord — one focused session, done
TMAY — lock it in, stop deferring it
tbh, that was useful. i love Claude
I like it! Any way to prevent some files from appearing in the visual graph? I.e. graying out "yellow" colored files in the explorer?
oh you’re using d3-force! that’s already a great library, I’ve used that and Cytoscape.js in the past for similar project. with that said then, at this scale there’s rlly only implementation changes you can do. like u could maybe try clustering or collapsing the nodes so that only on zoom they are rendered for that specific repo’s piece of code? like if im looking at react’s source code, I shouldn’t see all the utility dirs until I actually zoom in (that you can have discretion over)
there’s so many little performance optimizations that can be done with your tooling that honestly you might just have to experiment with multiple things. i know the UX of “seeing everything everywhere all at once” is nice for users, but you’ll figure it out. nice work again on the app!!! u should post it on r/SideProject or similar 
Implemented DFS for rust side project
Finished another chapter of Crafting Interpreters
Solved Longest Common Prefix (finally getting back into LeetCode after a big break)
W
i am kind of jumping around all over the place in terms of studying lol but progress is progress....
¯_(ツ)_/¯
Its fire that instead of just giving up at react after that interview you decided to get stronger
W mentality
hey thanks! :D
Tbh i wasn't aiming for frontend roles before but now it's like why not
im bored to death, and none of my friends (including CS grads) wants to make projects with me
one of them- their github only have a single README.md
rather than build projects that can have real world impact, they rather build factories in sandbox games 😭
why not just do it alone rather than shame them for not being a slop slut
too difficult and lonely 😭
let me go back to convince them- day 281
i mean then beggars cant be choosers. i can see why one wouldn't want to make a project with you with that attitude you have, lmao
true, i mean, they baited me to do software dev only to go MIA
I didn't even study CS, but now I learnt C#, python, Java
just for them to dip out and go MIA for months
maybe im not the begger, but I should find new friends
I dont have CS degree
tbh there's so many online resources and ai tools nowadays that i really question just how much handholding you really need. if a product that may "have real world impact" is what u desire, you're not ready for that without conviction that lights a fire
Tbh we (or they) just wanted to create an app to solve our current needs. Not really real world impacts but it could- if someone out has the same problem as us
Also should be fairly obvious that I learnt everything myself - so I don't know what you are implying by that "handholding"
I just need someone to work with, because I got too much ideas but not enough time
im just going off of what you said. them dipping being a problem suggests you need assistance
having ideas but no time? what's the bottleneck? are you employed?
oh no, they suggested that they wanted to make a software and game
So I went to learn the required framework, e.g., Java LibGDX
dude went MIA afterwards (IRL friend who went overseas)
I mean, I made a PoC already 🤣 so
YES
how are u bored then? keep going and launch it!
I figured I probably need new friends
One of them have internship, other is still studying masters
that makes sense why they wouldn't want to do this project tbh then
well heres the ugly thing, solo dev isn't just about technical development, also marketing (cold reach via emails), web dev to showcase the work, etc.
It gets really really lonely and difficult fast
you're right, but nothing worthwile comes easy; keep going
I could use AI to leverage the work, but theres the issue of data security (could opt out of the "dont use my data to train" but... realistically speaking...)
Thanks. Honestly speaking, at my current progress, I could only release something that is open source
Which I am going for
realistically speaking? that's an easy lawsuit if they breach their privacy policy lmao
My dev speed is too slow :l
Theres the recent news of LinkedIn secretly collecting your browser extensions... so I wouldn't be surprised
this is 1) completely unrelated and 2) by design if you knew how extensions work
Yea, you are right.
A more relevant example would be: Facebook withholding some data even if you delete your account
My skepticism comes from my distrust of these tech companies
then we're simply back to square one. it's either you distrust these (free) shilling companies (where your data is inherently how they they make money; name of the game) or succumb and use the AI tool to make you faster with the miniscule privacy risk over your first ever game that's purely a POC.
Yea times are shifting and I need to simply accept the risks :/
but how much risks are acceptable? (Openclaw? Installing Claude in your desktop?)
I guess I will need to find out 🤷♂️
yup. my pov is that its just a POC. you're not even tied to any job or anything. i'd be going ham if i were you cause speed > everything. also then you can see if people even want to pay/play it (or often in the OSS case) learn from it
you don't even need openclaw et al to ship this. at most, if it's non-technical housekeeping things, there's still thousands before you to learn from
Yup, thanks for the advice. Solo dev simply means needing AI to leverage the lack of manpower- otherwise nothing gets done in time
alas, the state of software engineering in 2026 ✅
Thanks for the motivation. Honestly I was whining like a fricking baby, but screw it, I'm gonna release something
I'm tired of moping around
I want to make something that is truly mine in this world
Yea it's not gonna be open source, I'm gonna try to make a startup. I researched all the things beforehand, it's a lot of work, a lot of pain, and I will probably fail
But I'm still gonna do it
stop larping and go do it then
bruh
Not sure if I should study today. Maybe tomorrow
Leveling up on Fortnite this weekend… stay tapped in 🤫
ok doing behavioral interview practice for once, like actually
soz havent updated here in a while been #grinding
- reviewed hella tree problems/im so much more comfortable with tree traversal and actual code implementation/i feel more competent, but honestly not recursion just yet
- dove super deep into dfs and bfs on graphs and i actually did my first graph problem, find center of star graph
- now working on learning dijkstra's really deeply alongside kahn's and topo sort
- ordered DDIA (thank you meesta)
- writing up my end of semester research presentation (experiment failed LMAO, but now shines light on new direction which i hope to pursue in hopes of a publication/workshop paper!!!)
next goals
- 100 problems before the start of finals season, might be a stupid goal but #whatever
- destroy finals
- start reading DDIA
- work on personal project
- get mock interviewed by a friend eventually with follow ups and trade offs and the whole shebang
ddia is rlly good i made it 60% in although i have pivoted for now
meesta told me first few chapters are really good; i ordered the second version! is it actually applicable to what you do/have you done stuff with it beyond the book?
I was for sure able to connect the dots to some themes in our systems at work (i.e. event driven system with AVRO schema.) Even recently I faced a race condition at work and thought about the topics of eventual consistency the textbook went over (we have distributed systems here.)
I have mostly pivoted because it is theoretical/provides a lot of historic context and it doesn't have Q&A (i think the ideal is you face a problem at work -> you jump into the relevant topic in the textbook for guidance.) it isn't a "system design interview prep" book IMO but good for diving deep in general
I think everyone should read it at least once... had I known about it in undergrad I would have at least finished it over a summer haha
ahh gotcha okay :) thank you
i think ill benefit from at least the intro and key chapters but when it comes to real sys design and stuff ill pivot as you stated
but yeah the undergrad point here is pretty nice to hear
yeye
@jovial pebble @hidden oasis did you read ddia front to back like a book or you just rec specific chapters
Gonna start reading
i havent read it yet
Ah
Front to back
You finish all of it?
60% of it
Probably more tbh cus that is including the last few pages (index and such)
damnn
1st
Hi
Founded with a passion, Prime Fit Shop is dedicated to offering only the best, rigorously tested products. Whether you're a beginner starting your healthy life journey or a seasoned athlete, we’ve got you covered with solutions tailored to your specific needs.https://sites.google.com/view/primefitshop/travel-culture
I was prompting LLMs and it says even if I develop a software in my free time, the IP may not even belong to me?
I went and searched google and to my abject horror...
Fucking damn it, I'm reading my employee agreement
Fuck guess I can't release anything while I'm employed, it's ridiculous how over reaching employee agreements are
Okurrr today I have an interview
wait what???
explain
Its quite standard... you can go search online
Multiple forums across Quora and Reddit discussing the topic- even if the software is created during free time and on their own personal devices (they MAY have some claim depending on the employee agreement- depends on how much money they are willing to throw at the case)
In practice, any company probably wouldn't go this far.. unless you are wildly successful
but its still technically possible
wait so if you create something in your free time, because its under the IP of the company and employee agreement, they have the right to claim it as their own?
thats genuinely insane wtf
Depends on your employee agreement...
Generally speaking, under normal clauses, they could only IF:
- Your software is under the same nature of the company (competing)
- Your software idea is similar to the work you are doing, or inspired by
- The company contributed to the creation of your software somehow (you wrote some code during company time)
wtffffff
Also the states law matter a lot
some countries are more lenient - burden of proof is on the company to claim that they have some ownership in your IP
yes exactly -_________________-
"The safest thing you can do is get a written waiver from your employer confirming the specific project is outside the scope of your employment agreement. Many MNCs have a formal outside work / conflict of interest disclosure process — using it protects you and creates a paper trail in your favor." - two LLMs conclusion :/
Generally speaking, if its unrelated to what the company is doing, and you didn't use their resources, should be all good even without the waiver
Dr. Ghazaleh Bailey - A therapist, couples' therapist, and life & career coach with a PhD in psychology.
Memberships
Member of the "German society for Systemic Family Therapy DGSF“
Member of the German Society of Systemic Therapy (SG)
Member of the International Society of Emotion Focused Therapy (Iseft)
Member of the "German Society of Emotion Focused Therapy" (DEGEFT)
Every person carries the ability for inner healing and change within themselves — and that growth becomes possible when we learn to meet ourselves with compassion and respect.; I help you to notice, understand, accept, and gradually transform painful or stuck emotions. This allows you to use the power of your emotions to shape a life that feels authentic, connected, and alive.;
It is deeply moving for me to see how people gain strength when they begin to take their needs seriously, set boundaries, and courageously stand up for themselves.
She work integratively, which means that each client receives an individually tailored combination of therapeutic approaches that best fits their personality and needs.
Whether individual therapy, couples therapy, or coaching — we define your goals together and decide which steps will best support you.
She also offer supervision in Emotion-Focused Therapy as well as workshops and trainings in systemic therapy and couples therapy.
She offer therapy in English, German and Farsi to people of a great many nationalities and backgrounds.
See complete details with videos and images here. https://sites.google.com/view/primefitshop/home
Why would I go to a shrink when I can just ask Claude Code
/btw rq can we talk about my parents divorce?
Also imagine how shitty a therapist has to be in order to rely on guerrilla marketing in discord servers to get customers
I'll go to this individual if she pays me fifty dollars an hour
You've made a statement on CSCD and you've also made a statement, and that's rare. A brilliant statement about LLMs—one that cuts to the heart of both LLM therapy and the reality of human communication: meaning is never fixed, and tone is a moving target, And that's beautiful.
PayPal reached out to me lol I'm underprepared but let's see
valid bst
i probably cant finish the tree mediums of nc150 tomorrow because i have Two interviews and like three assignments and two projects due on the 29th ❤️
boss
what year are you in
im a sophomore >_<
orz
im a freshman, started prepping a while ago, about to hit the wall (trees)

lol the topic that opens the floodgates
best of luck with the interviews
learning the internals of a database for my data structures mini project (WAL, memtable (planning to use a skiplist instead of a sorted list), sstable, lsm tree)
- jump game is interesting. i raaarely ever see dynamically changing loops
Three lc total today
Took my discrete midterm today and grinded some ez codeforces and cses
built the whole project
unfortunately i stayed up Four hours past the time ive been sleeping recently, but lowkey worth - im pretty proud-ish of this project
ngl its like 99% tutorial, but i made this CLI/REPL for it as well and its just fun building again and not studying; i have a whole bunch of goals i wanna do with it (switch to c++, MVCC, a different algorithm for memtables, distribute it, etc)
and the c++/different algorithm i can actually do Without tutorial/ill have to learn
cuz the whole tutorial part was cuz i wanted to submit the project since i did it all today when we were given a month LOL
What’s the project
just to implement a lsm tree database haha
i didnt have any good ideas
When I'm forced to use VBA due to IT security restrictions, it makes me realize the language sucks so badly
When you try to do anything fancy, like lambda, it just breaks in weird ways
sounds like a skill issue
more like being forced to use a 1990s technology in 2026 issue
Isnt that like, every other language
but i feel you bro
according to a reddit post: While seasoned programmers can make VBA do incredible things, the language itself is notoriously difficult, archaic, and "quirky" when pushed beyond simple automation
Tried using gimmicky DoEvents, Sleep, etc?
VBA isn't difficult. It just doesn't function the way modern programming languages does
So a single line of code needs to be turned into three or four lines of code to do the same thing
And the syntax makes me cry, especially when doing granular handling
No modern packages too, had to set up a logger that mimics serilog
Damn, actually 2026 problems
Working on takehome but oof did take me more than an hour honestly
working on a voxel game engine from scratrch. Managed to reduce memory usage by 50% and perf by around 40%: https://github.com/amodhakal/linterra
That's no small feat in voxel dev
cause like most people hit a wall early on because of the sheer amount of data, so seeing optimizations like that is awesome
thanks
it's a superb work i gotta give credit where it's due
reading book about SQL
i started reading it and somehow fell into a rabbit hole on information theory lmao
it's very interesting though
i didnt realize how integral information theory is to computer science
Please elaborate 😲
It’s kind of a lot, but for example like what is data?
Really it’s just recorded information
But what is information?
And that’s when it gets interesting
Information is just anything that reduces your uncertainty about the possible states of the world. Like for example if you’re walking down a random street and I asked you what is the name of the street you were on, the possible street names are near infinite so you’re extremely uncertain. Then, you walk by a street sign that says “Duffy Ave”. That street sign acted as information by reducing the possible street names from inf to 1.
I don’t want to get too much into it, but it also helps you realize that code is just information. Some code and data is noisy which means that it doesn’t reduce your uncertainty about the state of the world (or program), and some code and data is high signal which means it reduces uncertainty s lot.
Also code is just a form of language and information theory talks about language and the aspects of language
It’s cool I think you guys would like reading about information theory
A link to the full video is at the bottom of the screen.
Or, for reference: https://youtu.be/v68zYyaEmEA
That video describes using information theory to write a bot that plays Wordle
Editing from long-form to short by Dawid Kołodziej
Video format
Fuck this is cool
Yes code is just information. That is a very interesting perspective
I will go read up on it, thanks for sharing ☺️
I have a different perspective but isn't as deep
I guess what I realized is that all of computer science is just the creation and manipulation of information
And information theory is the first principles study of that
fireee
How much was it
like $40 or something 😭 nontrivial
i think theres an online pdf though
the one i got isnt blurry/the printing is fixed unlike the reviews online :]
Yeah there’s online
Why’d you buy physical book just curious
i hate reading things online
didnt know there was a pdf (i wouldve printed it)
but this still kinda forces me to read it through sunk cost fallacy/i can write in the book and make it mine
Fair
relateable af, i hate reading on my pc
Yeah I agree
Online there's so many distractions
If you need any help, just take pictures of the book and talk to Claude. I don't think revision 2 is in its pretaining. Picture is good enough
perfect tysm
i get the epub through totally legit means and read on my ereader
@true swallow you're next 
Mito is on another level of locked in I wish I can get there soon
There are a few books I wanna read I’m gonna add this to my list
Yeah your career path may be different for sure
I’m still interested in this though because it sounds really interesting
Did a takehome this week
Haven't booked thr karat interview yet
Probabky for Monday
Whatever happens happens i guess
learning about the first principles of encoding , compression, and optimal search from this book very fun
information theory asks the question "how can i communicate as much information as possible with as little resources as possible"
it's so important to comp sci
she put my through till my band width
reading more about sql and databases
uncongested my queue
handled my packets
2 weeks of touching grass, hanging out with friends, drinking, and no cscd life was good
Reading more about SQL
and databases
gng in the big 2026 for midlevel are we still grinding LC or is there something else I need to do
@placid dove
its happening lads
what
I did one 1800 rated codeforces problem today!
i don't think leetcode grinding has been relevant for 3 years
Chat are we /j or are we /srs
I got asked LC less than 3 years ago
Here's the problem if you'd like to give it a shot: https://codeforces.com/contest/2218/problem/G
||It's mostly just making some observations about the problem. My solution used a segment tree, but it's definitely possible (and faster) with a prefix sum||
ranked 4.5k/27k on leetcode contest
sick 🔥
I solved a hard (hard for me) lazy segment tree problem: https://dmoj.ca/problem/ioi05p2
It took me so long, but this was the first time I have implemented a lazy segment tree that isn't array based, which I have been wanting to do! I think I also got a much better understanding of how to write a clean implementation.
wow dmoj mentioned???
Good stuff! Man I forgot how this thing works
What is the tradeoff of using lazy segment tree vs a regular one in terms of complexity?
@noble verge
You can do range updates, in addition to range queries, on a lazy segment tree in O(logn). In a regular segment tree, it would be something like O(nlogn).
Oh right
I really struggle with them, which is why I am practicing it 😅
I remember using a lazy segment tree in a DP problem. Where the recurrence relationship had to run a range
It was beautiful learning about it this way
Yeah, I did a problem like that too
You will be purple soon
I believe in you
I am rooting for you because I never got to purple myself
I didn't have enough time
So I want you to lead the way
And make me proud
That makes sense, it is one of my goals, but I am afraid of not having much time myself 😅
Reading more about databases
Linked list?
Yeah I’m doing the CMU CS:APP class and the first assignment has you implement a queue with a linked list
But after that I’ll be doing all the notorious CS:APP labs so that’ll be fun
Cool!
You attend CMU?
One of the projects for CS50 was creating a hash table with C, and you are told to try to think of a hash function that distributes the keys well. I think that is such a great assignment, I wish we did that at my university.
No CMU just has all the assignments and lectures for that class posted online and it seems real fun so I’m basically auditing it for free
Implementing any data structure in C is so fun
I am a TA for a 200-level DSA class, and our version of that project is writing one in C++, but the students are given a hash function to use. It certainly makes it easier to grade, but I thought it was really fun competing with the instructors' solutions in CS50, trying to write a better hash function. C seems like a great language for intro DSA classes because you really have to understand every part of what you are making.
Hash tables r goated, I'm currently working on a C implementation atm and I'm having so much fun
Yes! You can use the filter panel to hide specific symbol type, but i am working to implement that on file types as well, thnx for the feedback!!
Migrated from Pixi + d3-force to Sigma.js v3 + Graphology + ForceAtlas2, massive performance jump. And actually currently implementing zoom-based depth levels
Appreciate the detailed feedback, it's genuinely helpful
it does feel faster than last time I used it or maybe I am overthinking it
I solved this 2100 rated lazy segtree problem on codeforces that I got stuck on several weeks ago! I am so happy I finally solved it 😅
I was asked what typeof NaN is 😭 I had to guess fr
The last time I was told I would have a JS screen they didnt ask me any JS questions whatsoever... 😞 so thought it would be similar
The fact that NaN is a number object 
But actually I didnt do terribly
Brilliant. Great work!
classic JS moment 🥀
a language with the most messed up type coercion system
Coerce deez
this is genuinely tarded btw
not a number is a number type?

Yeah I had to be like "I dont know what type of object NaN is but if I have to guess, typeof NaN prints out an object"
shouldve guessed float
NaN comes from IEEE 754 standard
Should I read up on IEEE for interviews
😭 this sounds like a trick question, but I think it would be much more annoying if NaN was something other than a number. Like you can take two numbers 0 / 0 and if that was something other than a number, every time you divide two numbers you need to cast it back to a number, because it might be NaN
didn't level up on fortnite as it wasn't the weekend
they saved that for null 😭
that's actually cooked to have as an interview question
i got really lucky because a while back i was studying JS concepts so i actually remembered shi like hoisting
but i am a React dev lolz
was it just a JS screen or react too?
JS and Valid Sudoku LCQ
for swe?
yes full-stack
ah
so long as you have 1 yeo
i had one interview a while back where they asked me the difference between PUT and POST and i totally forgot what PUT is cus i rarely use it
it is like you come in ready for a sword fight but step on a needle
there's no float types in javascript though
floats and integers are both number types but they are represented as floats in memory
but you're basically right
Interesting, i dont code in js
- finished flood fill in <20 minutes
- finished toeplitz matrix in ~15 minutes (one shotted it, too!!)
this one tripped me up sm few months ago
i overcomplicated it
the soln was v simple
good on ya!
I can see how that would happen
I'm glad you figured it out
😊
I solved an old 2100 rated codeforces problem with lazy segment trees (https://codeforces.com/contest/838/problem/B)
ur him
Jump Game II
Took a break for a few days
I'll study more matrices and linked lists ig
Starting Mondayyy
gooner leetcode
Honestly not enough
Gas Station
Didn’t level up on Fortnite but I did some CS stuff I guess
I've done more matrices questions than anyone alive today
If I walk into a building, without shadow of a doubt I have done more matrices problems than everyone there combined
validate sudoku
largest rectangle in a histogram
Nice
im out here writing shit code for the love of the game
i opted in to github using my repos for training copilot
i expect an immediate drop in copilot quality
be on the lookout lads
Haha
Two sum
chatgpt gave me a test case that acc failed
Phew so AGI isn't here yet
learnt some new concepts today!
im still trying to understand how ML works
on a different note, i completed a python course!
Nqueens
two sum
Soon
I think Visio is vibe coded...
The output XML files have different sections to contain text, no clue why
Sometimes a shape text is stored in 3 locations...?
Sometimes copying to clipboard throws exception
Font editing don't work so well (looking at XML, sometimes multiple lines are merged into a single character section, sometimes not, it's not explicitly set that when pressing enter for new line, creates a new character section) so sometimes editing the font style for one line can carry over to other lines even when not highlighted
Seems like clipboard throws exception if you attempt to copy text from other shapes while another shape is the context (ODD design but sure.)
done w all backtracking problems
i think im gonna take tomorrow to review them because i definitely just diddied my way through some, but im excited to hit dp this weekend
what roadmap are you following
neet?
yes
yooo twin
glgl, trees kinda nailed me ngl
Learned commit!! Also made my 2nd ever python code, still learning it! Tried using (import random) today, played a little with it to figure it out.
Also learned a little of the basic Git commands
NO AI BTW, just the jokess.
this is the topic im doing rn and its lowkey tuff
dw im struggling with it too; im gonna go over word search today and maybe n queens
like every resource i see though is just
im tryna practice it for interviews so i also need to do it quick within 20 minutes there isnt time to draw the whole tree
how do you find when to use a loop inside the dfs function? its not very intuitive
- lock in the pseudocode
- draw the decision tree
the decision tree helps you flesh out the problem statement (i.e. do you need to track all words, do you need to iterate through something with an extra variable and whatnot)
not too sure myself yet
im far from interviews rn so im just building the intuition slowly
i think its when there are multiple steps at a certain level in the tree not just 2 binary yes or no. I’m not sure though
I see I see
wait yes i think its this
because the dfs is specifically to go through every possible candidate/next step at any given step
so if you had [2, 3, 5, 9] and you had to go thru every element except 3 then youd loop through nums and exempt the 3
which is literally what you do in permutations:
for num in nums:
if num in curr:
continue
curr.append(num)
helper(res, curr, nums)
curr.pop()
so yes this because youre trying to get to every candidate at some state
Yes that right, I was doing permutations 2 rn and gave up lol, that was hard…i didnt solve it
try to do it, its a bit aids lol for me at least
let me know if ur able to solve it, lowkey curious to see ur thought process
gotcha
happy to say that after a long day of studying backtracking im goated now
are you fr
i dont know how i did it genuinely i was tweaking at this topic for so long
bro i litearlly solved all these questions sub 15 miunutes each
holy orz
wait have you done any DP yet
im getting FOMO now LOL
loool GOAT. bro im jjust prepping for my interview next week, i dont know if ima do DP cuz like it might be LESS ROI topic
idk honestly
idk if it worth for my interview
bro DP barely shows up, so like i dont wanna ruin my week prepping for it, when i could gamble on being stronger on other topics
after interview prep i will do DP 100%
but rn idk.
oh shooooot good luck bro thats 100% the method then/dont learn new stuff yeah
no yeah wtf good luck dude go ace that
im just wondering if i should go review bt and make sure im truly super confident on that before i start DP, but some top tier LC friends just told me by starting DP ill get better at bt :p
yeah its better to be thrown in the DEEP END.
starting + struggling > better than thinking about starting
Not sure if this will help you but this kinda helped me think about it.
1. What is my "state"? (the thing being built — current path, board, assignment)
2. What is my "choice"? (what do I add at each step)
3. What is my base case? (when do I record a solution or return)
4. What is my pruning condition? (when do I skip early — this is the performance)
These 4 are the most important, then something else I thought about during the coding part, is "Does anything have to be reset at this current level in the decision tree." Whether thats the word you are gonna be building for that level and what not.
Something else that also helped me was, think about the indices when building certain things, can they go back or only move forward? Usually helps me think about whether to pass in (+1) into the function as well. For this look at the example outputs.
holy orz okay, ill take this
previously i would try to build a mental schema
Bro my problem is I am so lazy to draw that tree every time, cant be doing allat in an interview sometimes with time constraints.
def helper()
good base case: when we're in a state that we want
process it
bad base case (what youd call pruning): past the array, sum too large, etc
skip/do whatever to continue
recursive steps:
change our current iteration
"set it off" (my jargon for a recursive call)
undo it
oh yeah 100%, for your current prep it might not be the best haha
Also in terms of code this may help you, kinda like a general template I made:
self.result = []
def BACKTRACK(STATE, PTR):
if BASE_CASE:
self.result.append(STATE[:])
return
stuff = None # use this for whatever needs to be done at this level maybe
for i in range(PTR, len(INPUT)): # for loop if multiple things else just do 2 calls for either decision
stuff = modify here maybe
if INVALID: # skip here
continue
STATE.APPEND()
BACKTRACK(STATE, i + 1) # could also be just i if you can move back in the question else i + 1
STATE.POP()
BACKTRACK(STATE, PTR)
return self.result
This may or may not help you above, but its kinda a template to solve most id say Backtracking
If ur doing this in CPP then my bad lmaooo i just do this stuff in python so much easier
lol yeah me too. i just attempted this question and got absolutely railed:
https://leetcode.com/problems/matchsticks-to-square/?envType=problem-list-v2&envId=wxgf6j37
no way am i solving ts ever. target time was 15, but rn im at 35 and lost ash 😭 WTF I WAS SO. CONFIDENT IN MY BACKTRACKING
defo try it if ur interested, also mb i dont mean to yap 😭 just tryna practice and ur the only other person who seems to care about LC
holyyyy 😭
no i love it/im glad we're in the same realm of struggle and its fun talking about it with someone at your level haha
no frl lol, either everyone here is like guardian level or has never done LC 😭
like wheres the in between 💀
no actually 💀
what happened to normal distribution
anyway gonna finish a dp video and then sleep!
i swear lol
gg
DP is tough
watching it before sleeping is like asking for nightmares fam
lmaooo good good
LOL nah me to im crashing TF out after this
TRUTH NUKE!
|| it's bitmask DP/BF right?||
disgusting to implement
i have no idea i dont want to watch the video im scared
also mad lazy right now but i gotta push through for these last 2 questions
oh wait nvm state space is 4^15 if you do that
got email failed an interview, ow that does hurt. Watched some more system design interview videos, reviewed 7 of my dp leetcode list. will run a 5k tomorrow.
yo yo yo yo yo
It's time for me to grind I'm giving myself 6 months to crack interviews
You guys look pretty good at DSA, I barely started getting into it so i still have ways to go
Hi Hi Hi lol
Ya me too
Haha nice, I'm following Neetcode 150 rn. I just need to stay consistent
make sure to pace yourself
##Vars
items = []
cost = []
##Loop for adding items until input is "n"
while True:
item = input("Enter an item to add to the list: ")
items.append(item)
Icost = input("Enter the cost of the item: ")
cost.append(float(Icost))
print(" ")
print("--- Shopping List ---")
for i in range(len(items)):
print(f"{items[i]}: ${cost[i]}")
print("---------------------")
print(" ")
another = input("Add another? (y/n): ")
if another.lower() == "n":
break
##Discount input yes or no
discount = input("Do you have a discount? (y/n): ")
if discount.lower() == "y":
discountAmount = float(input("How much is the discount? (in percentage): "))
discountAmount /= 100
#Calculate total cost and apply discount if applicable
totalcost = sum(cost)
if discount.lower() == "y":
totalcost -= totalcost * discountAmount
## Final output
print(" ")
print("--- Shopping List ---")
for i in range(len(items)):
print(f"{items[i]}: ${cost[i]}")
print("Discount Amount:" + str(discountAmount * 100) + "%")
print(f"Total cost: ${totalcost:.2f}")
print("---------------------")
print(" ")
##2nd edit commit test
Made this today and uploaded it using remote git!

ik it could be way simpler somehow but this is how it ended up
The beginnings of a gmi
good job
this is so freakin tuff man gj
Oof took a long break
theyre going to have me do research into fp and z3 api instead of coding tasks
i feel like a bum gang
Maybe you'll code later
<@&868936794601828492>