#dev-general
1 messages ยท Page 452 of 1
tf
I understand nothing
im pretty sure this is just going to be factors of 90
huh I got no idea what it is
gonna sit this one out.
42% xD
not bad
didn't even test it
yeah I didn't even understand what it needed
I was typing out putStrLn as it submitted
I also forgot the downTo keyworkd. I kept putting until instead
is the ChatColor enum/class big or something, since i ctrl + clicked on it and intellij ded ๐
don't think so
hm
just task manage and kill IJ
I was having dinner
well I think that was enough for today xD
someone recommend me a good animated movie
i think gradle just uses the first one you put
Which?
Oh
You were asking us to recommend
I though someone recommended you one
Shall I interest you in some Yu-Gi-Oh sir?
xD
probably won't watch rn. I feel like watching scooby doo but I probably seen all of them
๐
nthin
Souls was a good movie tho if anyone is interested
Do you wanna cry?
Matt gonna bully blitz
without crying
๐ฅฒ
he bullies me every day tho. nothing new there
This is amazing but quite sad
bcz discord very good lately
Blitz have you ever watched Coco?
Coco?
Timeless maguire
I have not
Bully memes* allday
Pretty good as well
You make me un poco loco
^^
Un po.. something
Un poquititito loco
=remindme 1day to "watch Coco"
watch Coco
just did it again ;-;
You speak spanish or?@ocean quartz
Waiitttt. Mortal Kombat 2021 came out few days ago didn't it?
omg now I wanna see blood
I understand a bit of it, but can't really talk
Also still need to watch this movie
23 april
Have you watched Onward as well Blitz?
I have
Is it good?
Watching maze runner rn
Just finished 1, preparing for 2nd
Nice, first one was the best one imo
yeah I remember it being good. I have a bad memory tho so I don't actually remember the plot or anything lmao
Damn, it really be telling on me ๐ฅฒ
btw Mortal Kombat animated one is also pretty good
This incident will be reported!
๐ณ
well time to watch mortal kombat. gn
Yeah, nice that's 3 movies now
@ocean quartz how much space does your artifactory install take up?
Let me check
Have you read the books?
@old wyvern So far I have 5gb used, but idk how much of it is taken by artifactory
Would it take up more than half of that by any chance?
yo this is 10/10 movie making and I'm just 10 minutes in
Which blitz?
I guess that's just storage of my jars?
ahh
Now that i think about it we'll probably need a lot of storage ๐ฌ
intellij says no unused imports found but the above imports are gray 
(also i had to manually import them because import button for those two didn't work for some reason)
weird
Yea Maybe I should try reposilite for now
java bad
That seems to not take up much space
its not java
kotlin bad*
false
Mortal Kombat
False*
Why are you not using Gson?
Are you really reading a json file manually?
Consumer in kotlin ๐ฅถ
(T) -> Unit all the way
ya
t -> IO ()
when do i use (T) and T.()?
just imagine
๐
couldn't be dkim
(T) == it
T.() == this
fun String.toJsonObject(): JsonObject {
val parse = JsonParser()
val json = parse.parse(this)
return json.asJsonObject
}
```iirc there was a better way, but i forgot ๐คท
yes i know, but when should i use each
When ever you want
T.() would usually be used when you're working with dsls
ic
URL#readText lmao
Dkim, do you want Haskell magic??
wha
is that in java?
No
It wouldn't be Kotlin magic if it was
Is it in Skript?
Ofc it is
Ok good
does it throw any exception?
like IOException?
or does it just return a blank string?
?
why is the tooltip font so small compared to the editor's lol
any IO operation can throw* a IOException unless silenced, which is bad
Cant be Haskell
IO String
simpleHTTP (getRequest url) >>= getResponseBody ๐
Ij font is like 14 and the editor area is 18
Ah yes, sudo docker sudo
took me a while to find what I wrote ๐ฅฒ
andd..... I endedup attaching it to the session didnt I
How do I detach a attached process?
How did you attach to it?
just running it attaches the process to it
Yeah, no, don't think you can detach from that
Oh what should I use?
-d
you know how yesterday i took the fatest shit after tennis tryouts right
well today, i didnt take the fatest shit. I had the biggest muscle spasm which lasted so damn long in my right leg
at least i won
Slimjar status?
Yugi is working on the proxy I'm almost done with the plugin ;p
No one actually uses while loops right?
I was just wondering since I haven't seen a while loop since I was learning java
^
A server is basically a while (true) loop
for (;;) ๐
Database ResultSet
hey fefo
Make your own language 
You're probably skilled enough
Uh.. hi?
Thatโs a thing though right?
I'm just saying hi not much to it lmao
Effort, plus it'd look like 90% Kotlin
I should PR that to Kotlin
Guess where thats a thing?
Go
๐
Go has it too? I thought was only rust
Yup
Oh maybe it's Go that I was thinking and not Rust xD
Doesnโt Java have it?
Ah yeah probably Go that I had in mind, it's awesome
Oh what are you talking about?
^
I canโt that the reply on my phone for some reason
wtf is this
Oh that is nice, I couldn't see that on my phone for some reason
anyone know how to fix intellij not importing ;-; (pressing import button, but nothing happens)
๐ฆ
i have to manually type the import
intellij also has a bunch of 'unused' classes and variable warnings
even though they're being used
Just took an exam that was scarily easy, so either I did really good on it or I failed it.
Sir this is #dev-general
That's even scarier when it feels like it was too easy xD
Ikr
I mean it was a development related exam
Had to convert pointers and arrays into logic and c code and then check if they matched in assembly code
Oh god, that sounds horrible
๐ฎ
I mean arrays and pointers go hand in hand tbh, you can use them Interchangeably actually
I don't want to ever see assembly again after this class. But it is kinda cool that I know how to reverse engineer it now.
Knowing how to read and interpret assembly code only made me aware of the fact compiler optimizers will do an astoundingly good job us humans will never achieve
but
the java compiler
:clown's?:
Star, how is your language going?
Is it Haskell yet?
@cinder flare uwu
๐
well it is most certainly not having nil
starr you done with ur exams?
and also I have no clue what I want it to do i just got a cool name for it
I just did my calc final today and I feel pretty good
Lolll
so basically
star...?
I even went out and got some cookies!
Pft
am I gonna have to drop elara for your language?
yes
sorry bm
A. I'm not 21 B. I don't drink C. why would I anyways lmao
Cookies smh
do u actually drink that shit
Oh right you have to be 21 HAHAHA
that shit tastes like ass
Legends say that one day it'll be released
alchocal tastes like ass
Eh you get used to it
WOAHH
then tasted it
i already ate one
it washorrible
is that a cinnamon\ roll?
they look good ๐คค
Good point
Yes
Whatcha watching? Kinda looks like dark souls
Well..
willingly or forcefully... ๐
Diablo 2 lmao
Looks like a play or show to me ๐คทโโ๏ธ
Ah close enough
How do you think I "deal" with my issues besides SSRIs?
wtf is an SSRI
Antidepressants basically
oh nice
Alchohal is literally a depressant
Serotonin is a neurotransmitter that is often referred to as the โfeel good hormoneโ.
nice
where can I get some
pulse you're thinking of a nerve depressant
just because it depresses nerves doesn't mean it doesn't make you happy
Pft
though the recommended age is actually ~25
laws
and I do not plan on drinking until at least 25
my roommate drinks jack and coke like every night lmao
I tried this non alcoholic beer once and it was pure ass
I donโt want to drink
he's also dropping out
Eh you just get used to it
so those two things might be correllated
I was about to say lol
just like my grandpa. He has so much time. He "smokes" for fun cause he doesnt have anything else to do. It took him 5 years to go through one pack
lmao
Lol
I never understood smoking tbh
same
yeah dude smoking pretty nasty
Yeah smoking is nasty tbh
one of my roommates does vape tho
but at least it doesn't smell like shit
True
I do want my lungs clean lol
but ur mind
idc about the rest lmao
I wanna live past 30 ๐ฅฒ
lmao
Pulse let's be honest, I'm fucked up already
fefo needs to be able to exhale the last braincell from their brain as they drink at least
you know what they always say. Sometimes stuff doesn't go right. But you just have to keep doing whats right.
no ๐
oh an objection?
Yes
๐
Oh yeah I know
Same
we'll just have to see yugi lmao
But I'm hopeless anyway
Not true
you really arent
but yugi what if you come work with me on Aello instead??? hmmm?
False, you have no problems left after death
๐
jokes aside, he does really have some stuff going on irl
Move in with Remence in Canada
VOUCH
Elara will NOT be abandoned!!!
hmmm
Who?
I didnt read the full convo
Sorry
fefo
maybe ill contribute to Elara and borrow a few ideas
You named it?
we can build off eachother!
Sure
yes last night I finally decided
Sounds good
Fefo, how old are you? If you don't mind me asking
Thereโs a problem Star
What happened?
also I have gained a 400% increased interest in greek mythology because I read every single wikipedia page about it
Hes 21
oh?
๐
No Skript in the name
no he's not, he scoffed at our drinking age
Indeed, the pinnacle of depress
๐คก
Ion
it's ok fefo you have helpchat ๐
no way you're 21 fefo
Greek myth is fire
not a lot of others can say the same
Just wait until you are 174 years old
im this close to reading the iliad lmao
hes 6 years older than me
Lol
How are you star?
pretty good
WHEN was your birthday????
nope i thought that stuff was kinda lame
A nice, still young, it's a good time to move out to a new country
My dad moved to Portugal when he was 33
ive just always liked the vibe of ancient greece
You're 15?
oh 18 lol
The movies are better
just round to 15 ๐
ok lmao mb
im like 2-3 months away
Ah
Oh lol, I thought pulse was like 17
no
Weren't you.. 14?
I remember someone saying he was bms age
Yeah

Nvm then
Yugi, am I older than you?
No that's dkim you're talking about
i just round to 15
yes a 14 year old getting those sheriff one taps
1999m
This May
Ah
๐
lmfao
The 19th
Wasnโt May last year?
=remindme in 21 days "wish @obtuse gale hbd"
wish @rancid marlin hbd
Ayy I was also born in the 19th, just different month
July
Ooo
Of 1996
Spring time!
The chosen one, born with Java
Or cursed one
destined to make MF-GUI and guide all of us towards plugin-based salvation
java bad 
whatever language star is making good 
Everyone here is older than me ;-;
ew harry potter
Couldnt find a better one ๐ฅฒ
lol
The 12th one
I think i'm the oldest of the active ones, with exception of like, Cube and Clip (idk how old Cube is)
The story of starmism
cube is 4000 years old
he travels through space and time designing cool websites and graphics
Piggy 117
Cube's age will forever be a mystery
But he's in australia, so more like 0004
oh shit you right
go grow some children Matt
you shouldnt be here
in a pot?
lol
how often do you water them
No, don't want to contribute to the overpopulation
Isnt odin 24?
nah more like 000h
I thought he was like 19
Oh maybe
Odin's 22
Then they start watering themselves :p
you're from brazil? i'd be interested in their population pyramid
I'm older than Sxtanna ๐ฅฒ
Close enough
im younger than all yall
How old is sx?
Oh boy
I'll bet you're wrong
probably actually a pyramid lmao
shaking my dick
He's 21 or 22 iirc
Ah
nop
How old are you?
Fred is 7
im 14
But all this means is that you're more knowledgeable ๐ง
Same ๐
That is very false lmao
Someone has to leave
Do you know how numbers work
fefo what are u trying to do lmao
if you have children your iq raises by 50
Uh
Instant population increasse
oh wait. Matt is going to have 7 billion children
i forgot
Or drops by 50
Possibly
You're telling matt that he's not knowledgeable when in fact, he is.
na
Lucky for me, it can't drop below 0
Or can it?
Nooo
God damn, yall act like your iq is as low as your selfsteam
Wait matt don't you live in Portugal or smth?
I do
How is it there?
oh shit i said brazil im dumb sorry
Matt how long ago did you move to Portugal?
Lol
Pretty chill, it's a nice life here, not much I have to be worried about, very little crime, I live right next to the ocean, can go on for a while, really enjoy living here
Right next to the ocean?? wow
Extinction
Sounds good matt
seriously lol
You're making it sound too nice... what are the drawbacks?
nah the dream is that 7 billion is the peak humans
Or maybe they just moved to mars
and we go back down to like 3 or 4
๐
The Portuguese can be a bit hard to deal with, and the tourists, fuck em
Lol
star i don't like where this is going
lmao
you're scaring me what are you planning
So may I start "de-populating" now please and ty
i mean, with more people like Matt it's gonna happen naturally
It has already begun
no need to murder everyone
But thats no fun
The wheels have been set into motion
Corona is here for the job
yeah "boomer remover" as the kids call it lmao
Lmao
๐ฌ
Class in 9 mins ๐ฅฒ
we got 3 billion left in us apparently ๐ฆ
That seems pretty smooth
8
Ok, do I sleep or talk in helpchat? I can't decide
Actually, screw it, ill join late
Do both
For real though, it's nice and all but it has it's other side, specially for an immigrant family, you gotta work hard, and you know a lot of us won't get some nice job, for example my dad is a gardener, my mom works on a hotel cleaning, but we have enough to live a pretty good life, took us almost 10 years to get a citizenship and buy a house but hey we got it
Also as Brazilian and as you can imagine our image isn't that great around the world, there are some discrimination, even to young old me in school that didn't even know half the shit they were talking about, but hey that's everywhere
that pyramid kinda sucks
Obey schrodinger
Fair
For real though, it's nice and all but it has it's other side, specially for an immigrant family, you gotta work hard, and you know a lot of us won't get some nice job, for example my dad is a gardener, my mom works on a hotel cleaning, but we have enough to live a pretty good life, took us almost 10 years to get a citizenship and buy a house but hey we got it
Also as Brazilian and as you can imagine our image isn't that great around the world, there are some discrimination, even to young old me in school that didn't even know half the shit they were talking about, but hey that's everywhere
I see, yeah
Ah yes
right click -> Reply
For real though, it's nice and all but it has it's other side, specially for an immigrant family, you gotta work hard, and you know a lot of us won't get some nice job, for example my dad is a gardener, my mom works on a hotel cleaning, but we have enough to live a pretty good life, took us almost 10 years to get a citizenship and buy a house but hey we got it
Also as Brazilian and as you can imagine our image isn't that great around the world, there are some discrimination, even to young old me in school that didn't even know half the shit they were talking about, but hey that's everywhere
I see, yeah
Wonderful
xp
if a message is too repetitive you won't get xp
oh shit is the xp per word?
hmm
i thought it was per message
Aight
Why is Lombok bad?
- It's a compiler hack - the Java compiler isn't designed to modify code, so it can cause difficult to debug errors, or worse
- It requires an IDE plugin, so unless you've properly configured Maven, Gradle and your IDE, you'll get hundreds of compilation errors. This process takes time too, it's not easy
- Lombok'd code won't show in Javadocs
- The code generation is often unpredictable and difficult to debug, and often you'll have to do it "the hard way" anyway
- Java is supposed to be explicit, Lombok hides a lot of key functionality into a subtle annotation which can be easy to miss
- While IDEs support it with a plugin, it's usually more difficult to find specific things, like usages of a getter because they don't exist in the source code
- Finally, Lombok'd bytecode doesn't match the source code, so it causes a pretty annoying warning in IntelliJ
There we go
Something new
It's based on message length to some extent, there is a limit, also a cooldown on how many frequent messages, and how repetitive your messages are
Wait really it is per word? In that case I'll type out sentances
FAQ Answer:
Dependency Injection
Dependency Injection is a way of providing objects with the objects they need ("dependencies"). This is usually done with a constructor, but can also be done for individual methods
Read more here: https://en.m.wikipedia.org/wiki/Dependency_injectionDependency Injection in Java:
https://paste.helpch.at/yijawupoju.javaDependency Injection in Kotlin:
https://paste.helpch.at/esogakutod.kt
There is a lot more into it but only Cube knows
got it
maybe you get more exp the more you mention certain topics
hopefully not with that level of spelling 
I'm on mobile
so you should have autocorrect
I can't spell anything
how did you even misspell that lmao
you get negative xp if you mention tianenman square ๐
it's on your phone keyboard?
You get more xp by talking normally than by pasting random messages
It says its enabled, but I've legit never seen it do anything
damn I gotta do some research and get used to Haskell syntax before I make my lang
that was quite nice
Well, no autocorrect for me ๐ฅฒ
are you on android?
Yes
That's Go
yikes
Android good
oh really? i gotta shop around then for my favorite syntax
Lol
Well excuse me for living in a third world country ๐
We're currently rewriting the syntax tho
oh?
Wow okay..
what are you changing about it
Wow you're an apple user, that's very disappointing
Converting it to focus more on functiinal aspects
I quite like apple products
And I am very happy with my iPhone, Apple Watch, and Airpod combo
I'm sorry to hear that
Closer to something like haskell but with simpler concepts
I'd like them too if they weren't so anti-consumer
I am lol
No get an android phone because they are good lol
Not saying I dislike them but you '๐คฎ' on my comment about me living in a shithole really hurts
no monads?
to be fair pretty much all phones are shifting more and more anti consumer
That aswell
Simpler versions of them
oh no that was in reference to android not your place of living lmao
apple is just leading the pack
Do VCs give exp?
Same usage, lesser complexity
My iPhone is also good
Sure thing, i'll go back to 2012 to use my widget that you got last year
Never said that it wasn't
hmmm okay okay
It also costs considerably higher than a typical android
i'm talking about anti consumerism
Ah, yeah, but at least some companies are decent and don't go with them
I dunno, with recent iPhones they're really driving down the price
1200$
the iPhone SE that just came out is like, only $500 or something and it's an entire iPhone 8
For the top of the line
Not really talking about price Star, I mean heck, samsung phones are super over priced as well
I'm sure the best Android phone costs a pretty penny
Doesnt that have like a very very small screen?
samsung smart fridge 
it's an iPhone 8?
You'd almost never need the best tho
Flagship samsung costs 1200-1400 lol
you also don't need the best of apple
I have an iPhone 8 Plus and I am very content
i have a $400 samsung s8 and it's fine for me
How much did that cost?
Like $700 or something but a lot less cause of service deals
In the IPhone 14, we'll be removing the screen, in favor of a smell based display system "Apple Scents"
And I think it was worth every penny
Luxury brands exist lmao
People are happy with their BMW purchases even if they're not the best car ever
But when that luxury brand gets to the point where they sell a stand for 1k its a bit ridiculous
๐ฅฒ
Oh boy
That's not for you
No sane individual is gonna buy that stand
It's for companies, and it is quite a good stand
Same reason AWS is pretty damn expensive
Not talking about prices though, even though yes most phones are way too expensive, I remember when flagship were $600 lol
But everything else, apple makes shitty charger cables that you need to replace and cost a lot, you need to buy the fast charger, you need to buy headphones, you can't repair your phone, it gets harder and harder to do that every phone they make
Like legit watch Louis Rossmann on yt
It's not for you to keep on 24/7, it's for companies
And don't get me wrong, it's not a android is better thing, samsung is almost as bad as apple
I have had good experiences with my charging cables, got a fast charger for free with my phone, I bought airpods for the convenience and I am in love with them, yeah I guess I can't repair my phone but I've never needed to
but yes I do agree they could do some more right to repair stuff
Well, android can be run on whatever you'd like
Heck my raspberry pi boots android
I mean idk man, this kinda feels like a joke
https://www.apple.com/shop/product/MWUG2LL/A/pro-stand
I'm just saying, it's really not that bad and I stand by my appreciation for Apple and the products I've purchased
I assume your phone is not the most recent then if you got the charger ๐ฅฒ
Pro Stand: 999$
yeah nope, iPhone 8
Pro Stand
yugi do you read
I did
I wrote a whole thing about how that's not for you
Reading that name is still funny
Hell yeaaaaa
Louis Rossmann
Yeah, they stopped giving fast chargers in the box on iphone 10 and stopped with all chargers altogether on iphone 12
The phones are good don't get me wrong, but the company can fuck off
Dude is great!
I also appreciate MacOS for being POSIX-compliant as well as bringing things forward in technology
they dropped support for 32 bit apps entirely which thank god, and their ARM CPUs are amazingly innovative and will hopefully bring about a revolution
Yeah
Apple products are genuinely great shit (except that macbook where they put a fan that actually ventilated nothing at all), Apple as a company, human resources, public relations, it's pretty fucked up..
yeah that's pretty true
Fefo have you seen the video from Louis where he talks about how the macbook has a fan that isn't connected to the heatsink? How tf do they even make that ๐ฅฒ
Lol yeah or that time they blamed a burned capacitor on liquid damage
Literally the exact opposite of liquid damage
How they can win this https://www.gofundme.com/f/lets-get-right-to-repair-passed?utm_campaign=p_cp_url&utm_medium=os&utm_source=customer
maybe it melted lol
Right to repair โ
They took it to apple to repair, they said the couldn't fix they'd need to swap the board, which would coast an eye to do so, they took to him, he changed one capacitor and it was fixed, for $20
i just want my net neutrality and no data caps back 
I just don't think apple authorized repairpeople are that good lmao
No
After fucking up everything lmao
Imagine companies trying to say what you can or cannot repair with things bought with your money
They are though, they are just told by the scum people above them that they shouldn't repair that stuff
imagine
mmm yeah kinda bad
I miss removable batteries ๐ฅฒ
I do too
Cringe
I quite like my phone's design
They actually broke falls sometimes tbh xD
I miss my chad nokia
The phone just explodes into the back case, battery and the actual device
So compact and utilitarian
I mean they could have improved on that, but nah fuck it let's ditch it
maybe but I mean, iphone good design
sure looks good at least
In the future phones will be sheets of glass B)
i sure hope!
Based
Yes
i wanna be the guy who programs that HUD for the real world
Also one more thing, the iphone 12, if you break your camera glass and you want to repair it, your phone won't boot up because it's hardware limited to that specific phone, scumbagCount++
nah engineering is too hard
i just wanna type a few lines of Aello and make a cool hologram hud
Apple applies some very questionably limiting practices when it comes to consumer repair... to the point of making it straight up impossible
Falls 1 inch = lego
Lmao
That looks like I'd grab my phone from my pocket and "oh woops I just removed the battery"
Lmao
you get to build your phone back together every time lmao\
Talk about water resistance
It's always like this though, a cool idea gets bought by a big company and boom it's gone
๐
yea you could probably toaster-bathtub yourself with that phone lmao
it looks cool but at the same time it looks like a neverending backwards compatibility landfall
Oh damn
What a great idea
Yeah it had a lot of challenges, but the concept is great
what am i looking at lol
Yugioh
Now that's some hud I'd like to be well developed
is that a better-looking Zoom UI and a web browser game?
The almost og of card games
ah damn
ยฏ_(ใ)_/ยฏ
Play some Stellaris
i can get behind that lol, though it'd probably make them even more expensive and they're already quite expensive lmao
i have to pay a shit load of money just to see yikes
Sadly konami doesnt like other forms
Phones were expensive too B)
There is one other tho
Still are B))
ProjectIgnis
what about the yugioh app
But its automated
the duel links one yeah
Completely different game
you're not wrong
I have my good old 4 or 5 generation glasses
You'd get too used to it and forget to remove it and boom eye infection lmao
nah you don't forget to remove them
One day lasik... One day
when my eyes stop getting worse lmao
You won't go blind I'm sure
I was supposed to use contact lenses but knowing myself i'd be fucked so i just went with some nice glasses
I detest glasses
see but i didn't want to look like a nerd
I love glasses
Matt uses glasses?
i had glasses for one year and that was too long
Hot
Based
I'm almost blind ๐ฅฒ
Can't even workout without looking like a maniac
what's your prescription?
Have to do the anime glass pull-up every time
I don't remember anymore but i think it's 4.75 left, 4.25 right
damn bro
Oh shit
Y'all blind as shit
I'm not matt but I can't see far, my eyes are sensitive to light and I have 3.5 3 from like, 3 years ago
Both myopia and astigmatism on left eye
lol
Did someone mention Vision?
Elaborate
oh god
SQL GC Skript coming soon
Oh no please no
Lol
Itโs a person
I know Vision is a hero
@ Vision
Wow the Java Module system can actually be annoying... Didnt realize it also applied in runtime, thought it was just compile time and mostly meant as util... You cant even do reflection to get to classes protected by it!
Yup, it's quite annoying
๐ฅฒ
Lmao
@obtuse gale Do you know what is adventure-bom?
Lovely
That's why there is no jar lol
Was wondering why gradle was giving me 14 jars with 15 dependencies, it has nothing in it lmao
What does the build script even have lol
All I can find that could be related is "Maven BOM" "Bill Of Materials"
they contain no source code and their only purpose is to declare their bundled modules
Hey does vote party need any dependant plugins? It's in my plugins folder but its not being detected
Head over to #spigot-linking then to #voteparty
ty
Can I make downloads be stored on a different drive?
rn it's on C, but I want them on D since that's my hdd
downloads 4 what?
downloads, like the folder which shit gets downloaded to
as in from ur browser?
@hot hull open properties for downloads folder, should be in locations tab
found it, appreciated
this just in: frosty learns how chrome's settings work lmao
So I gotta do a Binary tree homework for a friend. All good, the code received from their teacher works as it should but for some god damn reason, it doesnt match the results he is expecting.
This code does though, but this is not a binary tree, values are just set from top to bottom, left to right. Any idea if it has a name? https://www.tutorialspoint.com/construct-a-complete-binary-tree-from-given-array-in-level-order-fashion-in-cplusplus
Suppose we have an array A[], with n elements. We have to construct the binary tree from the array in level order traversal. So the elements from the left in th ...
That looks like a binary tree to me
do you mean a Binary Search Tree?
because the only condition of a Binary Tree is that each node has 0, 1, or 2 children
on their course, they learned about BST and the code received si also for a BST but the first problem is solved with that type of tree for some reason
will try to adapt that code smh
Oh do you need code to construct a binary search tree from a level order traversal?
in theory the exercises should be solved with a BST but the first one at least, is not. What I have to do is to create a tree from the input, display the elements, check if a values exist, and then display the tree in order, preorder and postorder
Oh I mean you can just use any BST implementation and just insert all the elements. Displaying is probably the hardest, but traversing shouldn't be too bad at all
--- Input ---
5
1 2 3 4 5
3 # the value to search
--- Program output ---
--- Expected output (numbers)---
1 2 3 4 5 # elements
1 # if the value was found
4 2 5 1 3 # in order
1 2 4 5 3 # preorder
4 5 2 3 1 # postorder```
well with the code received, the tree looks like this https://i.imgur.com/yC9Y3NX.png
Oh yeah if 1 is the first preorder that ain't a binary serach tree lol
Well that is technically a binary tree
Just not a balanced one
Do you need an AVL or Red-Black tree?
idk what these are, just a BST
If you don't balance your trees, you end up with something like that
You need an algorithm to try to even out the tree and reduce the overall height of it
Some well-known algorithms are AVL or Red-Black. I'd advise you take a look at them if you want more balance in your trees!
He probably just needs a bst since thats what was assigned to hum
him
Using the other data structures would change the traversal results
or at least in theory, Yugi
Werent you asked to make a bst?
I mean that is a valid binary search tree Yugi
all the nodes to the right are greater than the current node
You'd need a way to balance the tree unless you made it from scratch
why are teachers so stupid smh
I mean I dunno but he seems shocked that the result was that lol
lol
I'm gonna be completely honest, I'm not entirely sure what he's even asking
It is considered a binary tree type structure with a maximum of 15 elements.
that's all it says, and then a list of methods that should be implemented
My problem is that the code from their teacher dosen't solve the problems ๐คฃ
Oh lmao that's pretty dumb
oh yeah
how was that
cause my calc test went pretty dang alright if I do say so myself
Is this example given in the question
?
yes yugi
Pretty well frosty
probably but the tests are just like that
--- Input ---
5
1 2 3 4 5
3
--- Program output ---
--- Expected output (numbers)---
1 2 3 4 5
1
4 2 5 1 3
1 2 4 5 3
4 5 2 3 1
Test 2: test2
Incorrect program output
--- Input ---
7
1 3 5 9 4 18 2
10
--- Program output ---
--- Expected output (numbers)---
1 3 5 9 4 18 2
0
18 9 2 3 4 1 5
1 3 9 18 2 4 5
18 2 9 4 3 5 1
Test 3: test3
Incorrect program output
--- Input ---
2
1 100
1
--- Program output ---
--- Expected output (numbers)---
1 100
1
100 1
1 100
100 1```
Both branches from 1 are greater
anyone up for some clash?
hmm it does tend to tell you how many items to expect? maybe the teacher has a set of pre-made trees they want you to make
Sure frost
i don't really see a reason for that other than maybe to size an array?
One sec lemme get on pc
the first number is the size, star
gimme a sec
yeah I got that
5
I'm saying I don't know what its for
just so you know how many nodes to read ๐คทโโ๏ธ