#dev-general

1 messages ยท Page 222 of 1

quiet depot
#

(your .foreach is useless if that's the case)

hot hull
#

No clue, I'll check

#

I'm on 1.8 so it probably doesn't

wooden atlas
#

I am confused right now, does someone now how to fix that?

quiet depot
#

remove the getKey() from the comparingByValue

wooden atlas
#

Didnt helped

quiet depot
#

scrap that

#

just replace the Collections.max line with this

#

final OfflinePlayer topBidder = Collections.max(bids.entrySet(), Map.Entry.comparingByValue());

wooden atlas
quiet depot
#

@hot hull your plugin should be a constant

hot hull
#

yeye, I'm still thinking of ways to remove it all together

quiet depot
#

create a commandsender impl

#

add a method for sending a Message

#

get message value from config in commandsender class

#

still fucking disgusting

#

it's hard to get rid of it

hot hull
#

Exactly, another issue I have is that I still need to somehow include placeholder replacement within that

#

Which is probably gonna be disgusting

quiet depot
#

oh I usually do that when I retrieve the string value

#

so like just before it's being sent to the player

#

e.g. in the command class, not the enum

hot hull
#

Yea but my send method looks like this

Message.send(
  sender,
  Message.MESSAGE
);
#

And I mean that's pretty clean

#

So adding placeholders to that is gonna be a bitch

quiet depot
#

make a chain api thingy

wooden atlas
#

final OfflinePlayer topBidder = (OfflinePlayer) Collections.max(bids.entrySet(), Map.Entry.comparingByValue());

quiet depot
#
final OfflinePlayer topBidder = Collections.max(bids.entrySet(), Map.Entry.comparingByValue()).getKey();```
wooden atlas
#

@quiet depot can I message you?

#

Now it doesnt throw error

#

But it doesnt work

quiet depot
#

you're welcome to message me, but I don't provide support via pm

#

so keep that in mind

wooden atlas
#

I have there this -> Bukkit.getOnlinePlayers().forEach(player -> player.sendMessage(ChatColor.translateAlternateColorCodes('&', String.format("%s%s", new Object[] { Config.getString("messages.prefix"), Config.getString("messages.winner-broadcast").replace("%player%", getTopBidderName(topBidder)).replace("%bid%", String.valueOf(this.bids.get(topBidder))) }))));

#

It should replace player name in chat

hot hull
#

Oh god

quiet depot
#

might be worth learning java

wooden atlas
hot hull
#

Well I mean %player% and [player]

quiet depot
#

Sorry it's late, and I've got school work to do, I really can't help you right now. All I can suggest is that you properly learn java instead of blindly copying and pasting things (sorry if this isn't what you're doing, it's just what it looks like)

wooden atlas
#

It isn't...

hot hull
#

Your placeholders are [player] and [bid] in the message, yet you're replacing %player% and %bid%

wooden atlas
#

ah... u'r right

#

i didnt saw that

#

thanks

#

it works

hot hull
#

But yea as Piggy said, learning java would probably help, because the above is sheesh

hot hull
ocean quartz
#

Frosty using contract

prisma wave
#

Jeez those contracts

hot hull
#

:))

ocean quartz
#

Why does it fail?

hot hull
#

Which one

#

oh send

prisma wave
#

replaceList and getReplacements should arguably be in another class

ocean quartz
#

The only one that has fail xD

hot hull
#

Well check the method and you'll see smh

prisma wave
#

I would use contains() instead of getting the list twice

ocean quartz
#

I find that contract to not be needed since the parameters are already not null

prisma wave
#

^

#

It's totally unnecessary

hot hull
#

Matt yea it's overkill, stop bullying

ocean quartz
#

Aight xD

hot hull
#

Wrong channel

prisma wave
#

Consider using Clojure to programmatically generate your yaml file

#

Or Haskell OCaml JavaScriptJava CoffeeVSCode Groovy Elara

lunar cypress
#

:omegalul:Caml

#

Dammit

#

Give me emote rights please

prisma wave
lunar cypress
#

Well, did you?

hot hull
#

Consider using Clojure to programmatically generate your yaml file
Or Haskell OCaml JavaScriptJava CoffeeVSCode Groovy Elara

#

He told him alright

prisma wave
#

I did

#

This is my new favourite thing

#

If anyone asks anything in the wrong channel I will scare them away with FP monologues

lunar cypress
#

What's CoffeeVSCode if I may ask

prisma wave
#

CoffeeScript and VSCode

#

All the "x10" developers are talking about it

lunar cypress
#

time to post something in my vscode story

prisma wave
#

Ah you saw that too

#

A masterpiece

lunar cypress
#

yes

prisma wave
#

@hot hull clash of code?

prisma wave
#

can you @everyone please

#

we need more members

hot hull
#

@everyone

loud gyroBOT
#

The 'everyone' mention is disabled so you can't annoy people.

prisma wave
#

โ˜น๏ธ

hot hull
#

This fucking Dynosaur

#

@ocean quartz

#

@onyx loom

#

@old wyvern

#

@distant sun

prisma wave
#

@surreal quarry @distant sun @remote goblet

distant sun
#

?

#

ah

#

maybe later

hot hull
#

:))

#

:c

prisma wave
#

๐Ÿ˜ฆ

ocean quartz
#

Yeah later

remote goblet
prisma wave
#

welp looks like it's just a 1v1

hot hull
#

You're gonna lose

remote goblet
#

i dont know what it is nor do i care

prisma wave
#

clash of code

hot hull
#

I told you

#

You're going down

prisma wave
#

smh

#

my tests took a while

#

and i didn't notice it had started

hot hull
#

I didn't finish all of them :))

prisma wave
#

yea that was probably a good idea

#

mine is a 1 liner though ๐Ÿ˜Ž

#

kind of

#

apart from all of the boilerplate

hot hull
#

Mine is a 4 liner

#

Oh god

remote goblet
#

yeah im already confused

pseudo owl
#

hello can i do something like that in papi:

@Event
public void onPlaceholderChange(Event e) {
    e.getNewValue()
}
#

maybe i can use observable list but im wondering

remote goblet
#

maybe

#

String#reverse is gone

#

what is this

prisma wave
#

WHAT

#

80%

hot hull
#

The third example is cucked I think

#

OHH

#

I forgot to remove all numbers

remote goblet
#

can i just watch the clash

hot hull
#

Fuck I'm dumb

static zealot
#

I got 3 minute to solve thi

#

s

prisma wave
#

shortest mode can just fuck off

static zealot
#

can I do it? No I can't

hot hull
#

Look at this abomination

class Solution {

    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String T = in.nextLine().replace(" ", "").toLowerCase();
        final List<String> characters = new ArrayList<>();

        for (final char c : T.toCharArray()) {
            characters.add(String.valueOf(c));
        }

        boolean result = true;
        for (int index = 0; index < T.length(); index++) {
            if (!characters.get(index).equalsIgnoreCase(characters.get((T.length() - index) - 1))) {
                result = false;
                //System.out.println(characters.get(index) + " / " + characters.get((T.length() - index) - 1));
            } else {
                result = true;
            }
        }

        System.out.println(result ? "YES" : "NO");
    }
}
remote goblet
#

what

prisma wave
#
  let s = T.filter (\c -> c `elem` ['a'..'z']) (toLower (pack t))

    if (T.reverse s) == s
        then putStrLn "YES"
    else putStrLn "NO"
remote goblet
#

blob_pain the function was added in like

#

v1.4.20

#

i swear

prisma wave
#

Haskell has 2 different String types which really sucks

hot hull
#

If only I could read ;C

remote goblet
prisma wave
#

so i had to spend like 5 minutes figuring out how to convert them

remote goblet
#

๐Ÿ˜„

#

okay goodnight

prisma wave
#

lol

remote goblet
#

technically

#

mine would of worked

#

you fools using filters and for loops

hot hull
#

I mean that's still a loop at the end of the day so ๐Ÿคท

prisma wave
#

no loops in haskell

static zealot
#

aint got time to check for alphanumericals

#

I only had 3 minutes to think this

#

๐Ÿ˜ฆ

prisma wave
#

lol well we all did awful on that one

static zealot
#

I mean I'll take 40% in 3 minutes

hot hull
#

Atleast it's something fingerguns

static zealot
#

oribund share code

#

next time

#

oribuin*

#

I want to see how you got 60%

#

I was going to just remove the numbers but then I realised it would've still not worked

hot hull
#

I can't even remember what it said to do with the numbers

#

start BM

prisma wave
#

allons-y

remote goblet
#

the fuck are n and r numbers

static zealot
#

what the hell?

#

math

#

again

#

I'd like some meth but not math

remote goblet
#

^

prisma wave
#

trying to do this functionally will be hell

static zealot
#

I don't even know what it wants me to do

#

oh wait

#

I got it

#

pretty eassy Ori if you ask me

#

xD

#

I'm a comedian yes

remote goblet
#

that makes one of us

static zealot
#

wait a minute

#

it wannts an array not a list

#

what the hell

hot hull
#

bruh my brain isn't big enough for this

static zealot
#

I got it

#

but it wants array I gave it a list

#

I rly don't get it

#

ok this is killing me

old wyvern
#

yo

#

link? @static zealot

static zealot
#

you got 4 minutes

#

oh waittttt

#

it doesn't want a list

#

that's why

old wyvern
#

thats the test session

static zealot
#

fuck man

old wyvern
#

wait what are you playing?

remote goblet
#

I have an amazing hacky way to bypass this

#

but i wont abuse it

static zealot
#

fuck yeah

#

fuck no

remote goblet
static zealot
#

how the hell you did it?

remote goblet
static zealot
#

oh fuck builders and stuff

remote goblet
static zealot
#

fuck yeah

#

workarounds

prisma wave
#
genSeq :: Int -> Int -> [Int] -> [Int]
genSeq r max [] = genSeq r max [1]
genSeq r max (head:list) = if (length list) >= max then list else [head * r] ++ (genSeq r max list)
```help me
static zealot
#

how the hell did I beat you all?

hot hull
#

bruh holy shit

#

My brain

#

Blitz shut up, my brain just wasn't working lmao

old wyvern
#

Why not just use the general equation?

hot hull
#

That 1 fucked me all the time

static zealot
#

because we don't know math

hot hull
#

Cause you have to append it everytime

old wyvern
#

It told you what it needed tho

#

geometric sequences

remote goblet
#

I got somewhere

static zealot
#

well

prisma wave
#

what now

static zealot
#

math

#

wait what?

#

0 ?

old wyvern
#

a*r^(n-1)

static zealot
#

how the hell did I beat you all?

remote goblet
static zealot
#

well yugi still won

prisma wave
#

oh that's what i was trying to do

static zealot
#

in my mind

prisma wave
#

i think

static zealot
#

but still

remote goblet
#

Listen we're all dumb and cant do maths

static zealot
#

Ori

#

hide the code

#

its xD

#

delete that

#

pls

prisma wave
#

functional programming is hard

hot hull
old wyvern
#

Except in Elara

prisma wave
#

would've been easy in kotlin

#

but everything being immutable is scary

prisma wave
old wyvern
#

Imma give haskell a try next round

old wyvern
#

Probably not even gonna reach submit

prisma wave
#

I am actually quite enjoying it

old wyvern
#

lol

prisma wave
#

it's a fun learning experience

hot hull
#

Matt ๐Ÿ‘€

prisma wave
#

who cares about winning

ocean quartz
#

Playing tft whiled doing that so if i leave is because i need to focus xD

hot hull
#

said by every loser ever

remote goblet
#

winning doesnt matter

ocean quartz
#

Ofc the one time i join i get a reverse one

remote goblet
#

beating brister is the only thing that matters

prisma wave
#

ok wtf is this

prisma wave
remote goblet
#

so am I

static zealot
#

ok this is a thing I guess?

remote goblet
#

Okay why are the dots a thing

#

why are they required

prisma wave
#

this one's dumb

#

all in favour of a new one

static zealot
#

ay

#

like you start with the first and second one and you think its easy

#

but then you go to the third example

#

and you're like what now?

prisma wave
#

i know how to do it

#

i just cba

static zealot
#

oh wait

prisma wave
#

i think haskell will kill me if i even try

static zealot
#

nvm it makes sense

hot hull
#

Noice

remote goblet
hot hull
#

Just don't append to the last number

remote goblet
#

I'm going to do that

#

you clown

old wyvern
#

What in the hell are these exceptions

hot hull
#

Then do it smh

old wyvern
#

god

prisma wave
#

frosty this is not fair

hot hull
#

Your problem for using Haskell >: }

surreal quarry
#

still doing coding game?

prisma wave
#

yes

surreal quarry
#

iโ€™ll play in like 10 min

prisma wave
#

i gave up on haskell

remote goblet
#

Failure
Found: 20....................50................8........20....................14..............7.......43
Expected: 20....................50...............8........20....................14..............7.......43....
I hate this game and everything it represents

prisma wave
#

Go time

hot hull
#

These weebs getting destroyed

prisma wave
#

fuck this im using kotlin

hot hull
#

If only there was .repeat in Java Matt :((

ocean quartz
#

Use Kotlin fingerguns

hot hull
#

nein

#

I have been left on delivered for 7 hours, I sad

old wyvern
#

yea...

#

im done with haskell for this

hot hull
#

:kek:

remote goblet
#

i give up i tried

prisma wave
#

yeah i gave up on haskell as soon as I saw loops

remote goblet
#

i got it mostly write

prisma wave
#

i still have no idea how you're supposed to do those

remote goblet
#

just the last motherfucking dots

static zealot
#

xD

hot hull
#

Just don't append to the last number

static zealot
#

@remote goblet if you don't start sharing code I'll kick your ass

remote goblet
#

Jokes on you

#

its one of my kinks

static zealot
#

k. it won't be after this tho

ocean quartz
#

Btw Frosty, java 15 has .repeat

surreal quarry
#

whats the link

#

im ready

hot hull
#

Is this java 15?

static zealot
#

we're done

ocean quartz
#

Not sure

static zealot
#

well Yugi has to finish

prisma wave
#

can't you choose somewhere?

hot hull
#

I'd assume 8

old wyvern
#

next round?

static zealot
#

kk another one

#

lets go

#

no time to waste

static zealot
#

ori...

remote goblet
#

yesss

static zealot
#

you just had to break if (i+1 == lenT)

surreal quarry
#

ooh lots of people hjere

remote goblet
#

Most likely

static zealot
#

@prisma wave you not playing anymore?

remote goblet
#

however you see

#

i am dumb

prisma wave
#

wow 7 players

#

im here

old wyvern
#

damnn

#

anyone else?

ocean quartz
#

if (i != lenT - 1) append(".".repeat(x)) fingerguns

remote goblet
#

functional code that is outside of minecraft is hard

prisma wave
#

yugi start i guess

remote goblet
#
@EventHandler
public void onChat(AsyncPlayerChatEvent event) {
  event.setCancelled(true);
}
``` is not difficult
hot hull
#

oh god

ocean quartz
#

Reverse again ugh

prisma wave
#

this looks like a haskell problem

remote goblet
static zealot
#

not this again

remote goblet
#

I never learnt binary

surreal quarry
#

bruh i hate binary

static zealot
#

fuck

remote goblet
#

can we like

#

not have binary

surreal quarry
#

dont know it at all

hot hull
#

Can we do another one lmao

#

Noone wants binary

static zealot
#

ye

#

we got this the other day and I did absolutely nothing

prisma wave
#

this one is easy

remote goblet
#

Suck a dick

hot hull
#

BM sthu

surreal quarry
#

whats the pattern

remote goblet
#

i have no idea

prisma wave
#

nvm

#

wait

static zealot
#

k then

hot hull
#

wait a second

ocean quartz
#

If anyone finds the pattern let me know i am playing xD

static zealot
#

I think I did

#

but not sure it'll work

hot hull
#

I think I know the pattern

static zealot
#

fuck did I get it?

#

no nvm

surreal quarry
#

yea idk how to find the pattern lol

hot hull
#

There's two strings,

00000000000111 
10101010111100

Compare the strings, 0 & 0 = 0, 0 & 1 = 1, 1 & 0 = 1, 1 & 1 = 0

#

I think that's it

static zealot
#

that's exactly what I'm doing

remote goblet
#

slow fuckers

static zealot
#

but it doesn't work. I made a mistake somewhere xD

remote goblet
static zealot
#

oh wait

surreal quarry
#

lmfao

static zealot
#

I just realised

#

fuck

#

hmm

#

the way I do it won't work for in for

#

shit

remote goblet
#

quick steal from yugi

#

hes done it

hot hull
#

huh

remote goblet
hot hull
#

Am I right about the pattern Yugi?

old wyvern
#

yes but its jsut xor

#

a ^ b

#

you just need to convert it to string and format it to the right length

static zealot
#

yes you are Frosty

remote goblet
#

Matt i relate to your code

#

just completely given up

ocean quartz
#

Losing, need to focus

hot hull
#

uh what Yugi

#

I'm confused

old wyvern
#

binary xor

hot hull
#

I've no idea what that means

old wyvern
#

Exclusive or or exclusive disjunction is a logical operation that outputs true only when inputs differ (one is true, the other is false).It is symbolized by the prefix operator J and by the infix operators XOR ( or ), EOR, EXOR, โŠป, โฉ’, โฉ›, โŠ•, โ†ฎ, and โ‰ข. The negation of XOR is logical biconditional, which outputs true only when the two inputs are th...

static zealot
#

how the hell I got second?

#

xD

old wyvern
#

Thats the truth table for the pattern you mentioned

#

in java, just a^ b

remote goblet
prisma wave
#

HASKELL

#

TAKES THE W

#

well third

#

but it's close enough

static zealot
#

And I'm still second

#

jesus

#

I'm to good for you guys

hot hull
#

Binary can kindly fuck off.

remote goblet
#

I GOT 4TH

#

I literally cheated the tests

static zealot
#

you literally printed

prisma wave
hot hull
#

This mf

static zealot
#

out

remote goblet
#

I printed the answers

static zealot
#

xD

prisma wave
#

90% of my time was docs

surreal quarry
#

lol

hot hull
#

I know you're a cheater BM

prisma wave
#

i am not

static zealot
#

I didn't have to go to docs because I realised the pattern

surreal quarry
#

using google = cheating

hot hull
#

Yes.

remote goblet
#

they are using their resources well

prisma wave
#

i saw the pattern

#

but had no idea how to implement it

static zealot
#

oh well

hot hull
#

So me and u are the true winners

surreal quarry
#

learn languages by trial and error not documentation

static zealot
#

I think its my last one for today. As fun as this is too much is never good

hot hull
#

Same

remote goblet
#

Binary can suck my third dick

prisma wave
surreal quarry
#

lol

static zealot
remote goblet
#

i say its both

hot hull
surreal quarry
#

yea i was joking

prisma wave
#

You can't trial and error what a function is called

static zealot
#

never need to read the docs of kotlin if IIJ just recommends you all the methods

#

and stuff

prisma wave
#

But you can for some things

hot hull
#

You can BM

#

get gud

remote goblet
surreal quarry
#

also yea i trial and error what method names are if i have an idea but i've forgotten

prisma wave
#

bruh some functions are literally words i didn't know existed

#

"intercalate"

hot hull
#

lol

surreal quarry
#

well that obviously calates somethings inter :)

prisma wave
#

@old wyvern you joining?

remote goblet
#

times where my third monitor doesnt work where i wish it would

#

this is how coding job applications should be done

prisma wave
#

1 monitor โ˜น๏ธ

remote goblet
#

get a ton of people to do this

prisma wave
#

oh they actually use this i think

surreal quarry
#

isn't there some coding interview website now

#

ive seen it on yt

hot hull
#

Can we start?

prisma wave
#

the website offers an "enterprise clash of code" with performance reviews and shit

prisma wave
#

i guess yugi isn't joining?

static zealot
#

ye I think Yugi is not joining this one

prisma wave
#

okay

hot hull
#

Yugi dead again

prisma wave
#

off we go

static zealot
#

I mean he can join later

#

if he wants

#

xd

remote goblet
#

I dont know my vowels

hot hull
#

You have them listed you idiot

static zealot
#

wait what the hell?

#

he wants it

#

0 1 0 1 based on what?

#

ohhhhh

#

ok this sucks. Idk what I'm doing wrong but it sucks

surreal quarry
#

BM look at my code
everything after var u = 0 was an error

static zealot
#

for real

prisma wave
#

lmao

#

it works though

hot hull
#

:kek:

static zealot
#

what in the world man

surreal quarry
#

yea idk why but it was lol

hot hull
#

Mine is beautiful.

prisma wave
#

ยฏ_(ใƒ„)_/ยฏ

remote goblet
#

am confused

surreal quarry
#

when

prisma wave
#

count the vowels

static zealot
#

ok my count doesn't work

#

it gives me 0 every time

prisma wave
#

"aaae" => "3 1 0 0 0"

surreal quarry
#

oh nvm frosty did it in java

prisma wave
#

๐Ÿ˜•

#

how embarassing

static zealot
#

I'm not dealing with this anymore

hot hull
#

James huh?

surreal quarry
#

i said to use when but you used java

hot hull
#

I could've used a switch

static zealot
#

I got 0

#

but I still can't see the problem

hot hull
#

But I'm a lazy shit, and this works

static zealot
remote goblet
#

thanks i hat eit

hot hull
#

Blitz, what about lowercasing the letter

surreal quarry
#

^^

static zealot
#

still

#

why the hell did I get 0% ?

prisma wave
#

also i'm guessing it won't let you compare String and Char?

static zealot
#

like I understand there's better ways

#

oh fucking hell

hot hull
static zealot
#

I had to use '' instead of "" ?

surreal quarry
#

yea

static zealot
#

fuck this shit

#

I'm out

hot hull
#

Well I mean it makes sense kek

static zealot
#

bye

#

good thing it didn't give any errors right?

prisma wave
#
import Data.Text as Text

occurrences text char = Text.length (Text.filter (\x -> x == char) text)

main = do
    s <- getLine
    let text = toLower (pack s)

    putStrLn (
        show (occurrences text 'a') ++ " " ++ 
        show (occurrences text 'e') ++ " " ++ 
        show (occurrences text 'i') ++ " " ++
        show (occurrences text 'o') ++ " " ++
        show (occurrences text 'u'))
        
    return ()```
this is actually like
#

hot

hot hull
#

yea ngl that looks decent, expect this shit

occurrences text char = Text.length (Text.filter (\x -> x == char) text)

prisma wave
#

conflicting functions ๐Ÿ˜•

static zealot
#

give new link

#

I calmed down

prisma wave
#

i gtg

#

food

static zealot
#

and I'm ready for a new

#

one

#

oh

#

ok nvm

prisma wave
#

later

static zealot
#

then

hot hull
#

I'm off now

#

So cya

static zealot
#

time for some CS:GO

#

cya

prisma wave
#

occurrences text char = Text.length (Text.filter (\x -> x == char) text)

fun occurences(text: Text, char: Char) {
  return text.filter { x -> 
     x == char
  }.count()
}```
#

or maybe it's length

#

or size

#

ยฏ_(ใƒ„)_/ยฏ

#

gg

remote goblet
#

I got higher than blitz despite taking x2 as long

ocean quartz
#

Mine is the only one without ifs

remote goblet
#

Incorrect

surreal quarry
#

BM didn't use ifs did he

ocean quartz
#

Idk what his does kek

prisma wave
#

of course not

#

ifs are not pure enough

static zealot
remote goblet
#

you tried tho

#

i literally didnt

static zealot
#

I literally lost because I used "" instead of ''

#

so shut up

prisma wave
#

im back

#

clash soon?

old wyvern
#

sure

#

had to go help teach my brother earlier

prisma wave
#

1 sec

static zealot
#

@hot hull @ocean quartz join

#

k

old wyvern
#

anyone else in?

prisma wave
#

ugh

static zealot
#

took me 1 minute to understand the question ๐Ÿ˜ฆ

prisma wave
#

@old wyvern haskell?

old wyvern
#

xD uh

static zealot
#

wait so first I need to find which are pairs right?

prisma wave
#

yeah

static zealot
#

wait do I print Angles Bad!!! if there aren't 2 pairs

#

or if there are no pairs?

prisma wave
#

yeah

static zealot
#

oh ok

hot hull
#

I'm on mobile so no

prisma wave
#

yeah i cba to do this one

lost edge
#

Hey does anyone here know what tracker stage 2 is? Its causing some major tps loss and idk what its from...

static zealot
#

wait but there's another question

#

wait nvm

prisma wave
#

who's HashBash lol

old wyvern
#

I think a junior of mine

prisma wave
#

you don't know?

static zealot
#

not the prettiest or shortest but it does the job done

prisma wave
#

wow nice

static zealot
#

Yugi you disappoint me

old wyvern
#

damn

prisma wave
#

this one was just annoying

old wyvern
#

brb in like 15 mins

#

dinner

prisma wave
#

ok

static zealot
#

I actually enjoyed this one tbh. Not bcz I'm almost winning but its something that I actually understand before having to do it xD

#

welp now I 100% won

prisma wave
#

lol nice

#

wanna do another without yugi

#

?

static zealot
#

he said he'll brb in 15 mins

#

oh

#

wait

#

fuck

prisma wave
#

that's a long time to wait

static zealot
#

why do I miss words?

#

no no

#

I didn't read the without word

#

and just thought you asked yugi

prisma wave
#

oh lol

static zealot
#

if he wants to do another one

prisma wave
#

no

static zealot
#

sure send link

prisma wave
#

sick

#

...

#

can this one just

#

not

static zealot
#

k this will take like 5 minutes just to understand

prisma wave
#

a different one?

static zealot
#

wanna start another one?

#

xD

prisma wave
#

yea this one sucks lol

static zealot
#

oh wait

#

nvm

prisma wave
#

๐Ÿ˜ฆ

#

i left

static zealot
#

ye same

#

just thought I actually understood it for a second

prisma wave
#

lmao

static zealot
#

ok this is easy I guess

prisma wave
#

:)

static zealot
#

didn't even test it

#

0

#

nice

#

xD

#

welp I tried

prisma wave
#

lmao worth a try ig

static zealot
#

I just rushed and didn't think you still sent it before me lol

#

and won

#

1 more?

prisma wave
#

sure

#

incidentally

#

numbers.toString().replace("[", "").replace("]", "").replace(",",""") -> numbers.joinToString()

static zealot
#

oh

#

wait

#

did I have """ ?

prisma wave
#

yeah lol

#

idk how that compiled

#

also this question sucks

static zealot
#

the thing is I even noticed it and said I'll remove 1

#

do you just go 4 by 4 and have a sum that goes up by 1 every time and stop if N-currentTile <= 0

prisma wave
#

idk

#

dumb question

#

another?

static zealot
#

no

#

bcz that's what you do lol

#

its easy

prisma wave
#

smh

#

i left

static zealot
#

k another then

#

I think my last

#

because my mc server is killing me

#

keeps crashing every few hours

#

and I can't seem to find anything that could cause it

prisma wave
#

yeah i've got things i should be doing too

static zealot
#

and people act just like I intentionally crash the server or something xd

#

k boys

#

was this duration?

prisma wave
#

yeah

#

you win

#

haskell is sabotaging me again

static zealot
#

xD

#

ye loops

prisma wave
#

Expected type: IO [()]
Actual type: [[()]]

#

๐Ÿ˜ฌ

static zealot
#

you can change language tho

prisma wave
#

nah

#

this is good practice

#

i wanna learn

static zealot
#

I understand

#

time to see how to open .hprof files and how to read them lol

#

omfg

prisma wave
#

1 sec

#

wanna figure out this stupid ass type system

static zealot
#

iij can open hprof files as well but I only found that Eclipse can first time I checked

prisma wave
#

guihegiuwhduihwed

static zealot
#

I downloaded eclipse for that

prisma wave
#

MISNHGINSuhwfiuw

#

missing parentheses again

#

@static zealot rip

static zealot
#

time to uninstall

prisma wave
#

putStrLn check ++ " " ++ (show n) spot the error

obtuse gale
obtuse gale
prisma wave
#

(putStrLn check) ++ " " putStrLn => IO

static zealot
#

@old wyvern println("[${if(input.nextInt()%2 ==0)" " else "x"}] $n")

#

why not that? does that not work

old wyvern
#

huh?

prisma wave
#

nextInt is very impure

#

so you have to assign it to a variable

old wyvern
#

oh

#

no yea that works

static zealot
#

no idea that's why I'm asking

old wyvern
#

the template had the variable

static zealot
#

I just saw he likes to do everything in one line xD

#

you don't have to keep the template pretty sure

prisma wave
#

that wouldn't work?

old wyvern
prisma wave
#

because nextInt() will be different to n

old wyvern
#

he means that to be the current value

prisma wave
#

but it won't work

#

3
4

n = 3
nextInt() = 4

[ ] 3

surreal quarry
#

we doing clash of code?

static zealot
#

ye

#

link above

old wyvern
#

there is no n

surreal quarry
#

got it ty

prisma wave
#

without something like apply or run

old wyvern
#

oh wait

#

the n

#

yea

#

nvm didnt notice

prisma wave
#

mhm

surreal quarry
#

the clash of code countdown is so annoying lol

static zealot
#

prepare for impact

#

fuck ascii again

prisma wave
#

is this ascii?

surreal quarry
#

i think so

static zealot
#

ye

prisma wave
#

oh yeah im dumb

#

thought the first number was a character

static zealot
#

wait

#

is it ascii?

#

hmm

#

wait it is not

surreal quarry
#

ohh distance from the letter Z

static zealot
#

yep

#

but still

#

how do you know which one it is?

#

it is ascii

#

fuck

steel heart
#

i fucking hate regex

surreal quarry
#

regex?

steel heart
#

yes

#

also the java regex thing isnt rlly good

#

it has so few helper methods with the pattern and everything

#

well, if anyone has a nice lib for java regex pls ping me

static zealot
#

yep got it.

#

pfew thought I messed up again

prisma wave
#

Couldn't match expected type โ€˜[[Char]]โ€™
with actual type โ€˜IO [Char]โ€™

#

๐Ÿ˜ฆ

steel heart
#

em

#

does any java regex lib existr?????

prisma wave
#

i actually have no idea how to do this

ocean quartz
surreal quarry
#

do you get the pattern BM?

prisma wave
#

yeah

#

i just literally can't get a [Char] from an [IO Char]

surreal quarry
#

oh lol

prisma wave
#

and i have no idea how i'm supposed to join them

static zealot
#

.toString() xD

#

oh lol James you went for this if (char == '{') char = ' ' interesting

surreal quarry
#

lmfao

#

i didn't care to do it the right way

#

and that worked

static zealot
#

ye I guess

#

well if it works it ain't broken am I right? xD

surreal quarry
#

oh i guess they were saying if they pass -1 its a space

#

i thought they were saying you had to somehow supply that

static zealot
#

ye you could've just checked if its -

surreal quarry
#

yea lol

#
    val z = 'z'
    val asciiZ = z.toInt()```
#

lmao

#

i like it

static zealot
#

xD

#

ye

prisma wave
#

haskell has broken me

static zealot
#

I always forget I can use ' '.

surreal quarry
#

yea lol

static zealot
#

he went for python

surreal quarry
#

should i do the next one in python

static zealot
#

idk any python at all

#

all I know is some C++ and Kotlin

#

and the very basics of Java

surreal quarry
#
print('string')
def method:
  do_something()```
#

you know python now

static zealot
#

ye

#

I do

prisma wave
#

literally

#

if you know any language

#

you know python

static zealot
#

xD

#

oh man

surreal quarry
#

yea its really easy to pickup

static zealot
#

I don't know how to open hprof files

#

with IIJ

#

how do you get to the main menu in IIJ from a project?

#

oh

#

close project

surreal quarry
#

we doing another?

static zealot
#

From the main menu, select Run | Open Profiler Snapshot | Open.

#

I don't have this

#

๐Ÿ˜ฆ

prisma wave
#

ill do another

static zealot
#

ye sure I'll do one more as well

prisma wave
#

lol

#

it's addicting

surreal quarry
#

yea fr

static zealot
#

anyone that has IIJ Ultimate and can open it real quick

surreal quarry
#

just us 4?

steel heart
#

@here

static zealot
#

if you click on Run do you have an option called Open Profiler Shanpsoht ?

steel heart
#

dkim

#

join

#

or

#

ban

#

@half harness

static zealot
#

banana?

half harness
#

huh?

#

join what

#

oh

steel heart
half harness
#

wait 1 sec i have like 1000 tabs open

steel heart
#

@prisma wave join

half harness
#

oh boy

steel heart
#

oh nvm

#

u're in

prisma wave
#

i have joined

#

smh

half harness
#

okay

surreal quarry
#

he made it lmfao

half harness
#

i need to sign up

steel heart
#

do it

#

quickly

surreal quarry
#

use github dkim

half harness
#

ok

static zealot
#

speed run it

half harness
#

nvm

#

im on google already

surreal quarry
#

speed run account creation :D

prisma wave
#

@old wyvern

#

?

half harness
#

im innn

prisma wave
#

yay

half harness
#

I haven't coded in weeks

prisma wave
#

shall we start?

half harness
#

but here we go!

prisma wave
#

what could go wrong?

steel heart
#

YES

#

ST

#

AR

#

T

prisma wave
#

allons-y

steel heart
#

FFS

#

!

#

!

surreal quarry
#

bruh

prisma wave
#

oh god

surreal quarry
#

this is gonna suck

half harness
#

WHAT IS ThtiS

surreal quarry
#
        • ?
half harness
#

how do u use for

hot hull
half harness
#

how do u use for
???

prisma wave
#

ยฏ_(ใƒ„)_/ยฏ

half harness
#

wait

surreal quarry
#

what?

half harness
#

aHH

surreal quarry
#

for loops lmao

half harness
#

oh

#

I don't see {

prisma wave
#

can we do a new one

#

this sucks

half harness
#

that confused me

static zealot
#

k this breaks my head again

#

wait

#

I got 6 instead of -6

#

I'm doing something half ok

#

xD

#

wait I got it

surreal quarry
#

yea i got it

#

its easy

static zealot
#

well not the coding answer

#

but how you do it xD

half harness
#

im confused

hot hull
#

Show the question

surreal quarry
#

add first row and second row, then subtract second - first

static zealot
half harness
#

how does 4 4 3 4 4 5 4 3 5 4 3 4 5 4 4 3 4 5
4 3 2 4 3 4 3 3 4 4 3 4 6 4 5 3 3 4 get to a signel number?

static zealot
#

here

#

even easier way to do it James

surreal quarry
#

whats that

static zealot
#

wait what the hell

#

why do they use 2 fors

#

to imput the data

hot hull
#

Amount of different pairs is it not?

surreal quarry
#

one loop for each line

hot hull
#

Oh wait what

static zealot
#

hmm

#

and I need to use it inside those for or what?

surreal quarry
#

i did it by summing top/bottom lines then subtracting

static zealot
#

because now I'm broken xD

half harness
#

oh its in python

static zealot
#

but but but

#

what

#

dkim you can change it

surreal quarry
#

dkim you can choose language

static zealot
#

drop down menu

#

to chose like 15 languages

half harness
#

oooo

static zealot
#

I'm confused Right Now

half harness
#

hUh

#

im confused

static zealot
#

ohhh

half harness
#

i guve up

static zealot
#

wait

half harness
#

i cant

#

im confused

#

my brain

#

is

hot hull
#

After y'all finished, someone tell me what the pattern is cause I'm confused

static zealot
#

James you're right

#

I guess your way is the only way

#

i did it by summing top/bottom lines then subtracting

surreal quarry
prisma wave
#

the answer: ||sum(line2) - sum(line1)||

hot hull
#

And y'all struggling with that ๐Ÿค”

surreal quarry
hot hull
#

2 minutes too long

half harness
#

how do youget line 2

#

and line 1

surreal quarry
#

the two for loops

static zealot
#

welp

surreal quarry
#

it gives that to you

static zealot
#

I thought I can just have one for

half harness
#

oh

static zealot
#

but then I realised

half harness
#

but

static zealot
#

it gives the first line first

half harness
#

which one is the 1st for loop

static zealot
#

second line after

half harness
#

oh

surreal quarry
#

1st for loop is line 1
2nd is line 2

static zealot
#

thought it will go line1, line2, line1, line 2

half harness
#

okay

static zealot
#

and just have one for

static zealot
#

you're a liar

surreal quarry
#

Maths ๐Ÿค“

static zealot
#

well you aren't

#

actually

prisma wave
#

Well

#

I accidentally did it the wrong way around

#

And then couldn't be bothered to change it

#

So

surreal quarry
#

you could also do one sum variable and then in the first loop subtract and second loop add

#

whihc should work too

half harness
#

ONLY 6 MINUTE left?!

static zealot
#

man I got to install Eclipse again

surreal quarry
#

its like 15 total

hot hull
#

Why the fuck Blitz

surreal quarry
steel heart
#

fuck I'm fucking blind

hot hull
#

Yes