Chat:World/2022-02-24

From CG community
Revision as of 05:29, 25 February 2022 by Chat Log (talk | contribs) (Created page with "<img src=/a/79270905005909> Zechros96: im getting this error: Unable to load route [$injector:unpr] Unknown provider: hocServiceProvider <- hocService <- CourseTestSessionMana...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Zechros96: im getting this error: Unable to load route [$injector:unpr] Unknown provider: hocServiceProvider <- hocService <- CourseTestSessionManagerFactory https://errors.angularjs.org/1.8.2/$injector/unpr?p0=hocServiceProvider%20%3C-%20hocService%20%3C-%20CourseTestSessionManager

struct: yeap

struct: no playground is working

struct: I guess servers must be down or something

Wontonimo: sad

Default avatar.png Ninjatron: don't cry Wontonimo

Default avatar.png Ninjatron: sun also rises

Wontonimo: sniff sniff ... okay

Default avatar.png Ninjatron: "Your virus has caused a backdoor to open"

Default avatar.png Ninjatron: I knew I was a backdoor man

bonsaifree: off topic: peace now

MrZee: Time to take a break from Mad Pod because math is hurting my head lol

Uljahn: there is math in MPR?

YS_Yousef: yea

YS_Yousef: there is a lot of math in MPR

MrZee: Especially when you're attempting to reverse engineer the boss lol

YS_Yousef: XD

Default avatar.png Darleanow: hello guys, in game pod, why do i don't earn elo when winning in arena ?

Default avatar.png Darleanow: i actually won the bos, and didn't lost a single multiplayer match but i won't gain any division

5DN1L: you need to enter the bot in arena

Default avatar.png Darleanow: wdym ?

Default avatar.png Darleanow: just clicking on test in arena ?

5DN1L: yes

Default avatar.png Darleanow: bc i did that already

Default avatar.png Darleanow: won the match

5DN1L: then wait for all the battles to finish

Default avatar.png Darleanow: allright !!

Default avatar.png Darleanow: i did like 10 already x)

5DN1L: But you aren't above the boss in that league

Default avatar.png Darleanow: yes ! i'm ranked 2145, but i won against the boss already ! in the launch code pannel

5DN1L: click Leaderboard

Default avatar.png Darleanow: you mean detailed leaderboard ?

5DN1L: no

5DN1L: the one on the coding page

5DN1L: on left hand side

Default avatar.png Darleanow: okay i saw it

MrZee: When you submit it, it shows a percentage of battles completed and once that finishes it'll update your rank. It takes a few minutes for it all to complete

5DN1L: You can see the boss at the top

Default avatar.png Darleanow: yeah i see it

5DN1L: but you're way down below the boss

Default avatar.png Darleanow: with a score

Default avatar.png Darleanow: i don't see any percentage MrZee, i'm probably blind x)

5DN1L: he's talking about a different thing

Default avatar.png Darleanow: I struggled way too much on this one

Default avatar.png Darleanow: if (next_checkpoint_dist<1500){

           thurst=thurst-10;
           
       } i did this for the checkpoint distance

Default avatar.png Darleanow: (C)

Default avatar.png Darleanow: bc setting thurst to 0 was making me loosing against boss

5DN1L: you're given a hint on how to pass Wood League 2

5DN1L: in the statement there's a pseudocode

5DN1L: you just have to follow that

5DN1L: no need to implement anything else at the moment

Default avatar.png Darleanow: wdym by pseudo code

5DN1L: read the statement

Default avatar.png Darleanow: i don't understand this sentence

Default avatar.png Darleanow: yes, it gave me an algorithm that i used in my code

Default avatar.png Darleanow: and made one with checkpoint dist

5DN1L: just use that and it should be good enough. if you've done more probably you've done it the wrong way

5DN1L: let's check your code

5DN1L: paste it here

Default avatar.png Darleanow: this is what i added :

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/994b3455-82fc-4929-ad8d-a601e94597ac

5DN1L: whole thing?

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/ea993a62-1c11-4796-8735-696cc260bb72

Default avatar.png Darleanow: here's the whole thing

5DN1L: remove your own if-else

Default avatar.png Darleanow: checkpoint angle and checkpoint dist ?

Default avatar.png Darleanow: this is the two things i added here

5DN1L: i mean the second if-block

5DN1L: the first if-block is fine

Default avatar.png Darleanow: okay

Default avatar.png Darleanow: i start my code

5DN1L: try testing it

Default avatar.png Darleanow: i lost ranking, but won

Default avatar.png Darleanow: i'ù going into arena

5DN1L: yup, enter it

Default avatar.png Darleanow: but it told me about checkpoint dist, so i thought i had to use it x)

Default avatar.png Darleanow: im ranked

5DN1L: it has given you more info than needed for now

5DN1L: you'll definitely need more info as you move up

Default avatar.png Darleanow: oh okay i see !!

Default avatar.png Darleanow: i went wood let's go

5DN1L: and your rank won't be affected in any way as long as you don't enter the bot in the arena

Default avatar.png Darleanow: thanks for uour help mate :)

5DN1L: no probs

ImKingKong: how to do death first search

Default avatar.png maoru: depth first search might be difficult to be used for this problem

ImKingKong: ok then how to do mime type?

ImKingKong: bc i only need 2 xp

Default avatar.png maoru: Darleanow 05:14PM http://chat.codingame.com/pastebin/ea993a62-1c11-4796-8735-696cc260bb72

5DN1L: ???

ImKingKong: mime type

ImKingKong: not mad pod

5DN1L: anyway nobody should paste a full code solution for you

ImKingKong: ok

ImKingKong: ik that

MrZee: You'll want to read up on the wiki for that or take some pathfinding courses because the question on how to do any type of pathfinding search depends on the problem specifically. Best anyone can do is give you a basic explanation of what a depth first search is\

ImKingKong: ohok

Default avatar.png Darleanow: Hello again, why is the boost value equal to -1716305898 when i set up the thurst value to boost ??

5DN1L: where do you see that number

derjack: sounds like uninitialized variable

Default avatar.png Darleanow: in the debug console, it says :invalid input. Expected 'x y power' but found '5515 7486 -1716305898'. i set power to boost when next_checkpoint_distance >9000

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/085a3d68-fe08-4cc1-8cf7-75e492a4771c

Default avatar.png Darleanow: im not changing the value of printf either the value of scanf

Default avatar.png Darleanow: should i ?

5DN1L: whole code please?

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/6b82f6cb-f061-46b1-851b-8021fd79262d

Default avatar.png Darleanow: here you go

derjack: its string and number? wtf

5DN1L: yeah that's the issue

Default avatar.png Darleanow: should i convert boost as %d

derjack: sounds "BOOST" is some address and assigned to thrust

ImKingKong: how to search a player?

MrZee: It should be a string and it needs a space before the word "boost"

derjack: you should do if (>9000) { print x y 100} else { print x y boost }

5DN1L: or the other way round if he wants

5DN1L: but definitely not %d paired with "BOOST"

Default avatar.png Darleanow: but if i do like this, it will try to boost all the times dist<9000

derjack: what i mean is dont put "BOOST" into variable, just print it directly

5DN1L: Darleanow i think you may move your printf inside the second if-block

5DN1L: and as derjack suggests, print it directly if it is BOOST

5DN1L: or use %s i think

MrZee: Otherwise your thrust will need to be a string to hold the word boost

Default avatar.png Darleanow: oh okay !!

Default avatar.png Darleanow: i will try it

5DN1L: %s may not work i guess, i dunno

5DN1L: same variable cannot be string at one time and integer at another time

5DN1L: i'm not that familiar with C

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/f8278b74-d082-4715-a2af-5c626554131c

Default avatar.png Darleanow: i did it like so

5DN1L: yup, looks like it should work?

Default avatar.png Darleanow: it wont i guess, because i'm allowed to do it once a race

5DN1L: ah that

5DN1L: but you can still try to run it without entering into arena first

Thorcode: the second will be the max thrust

5DN1L: just for testing

5DN1L: yeah that, Thorcode

Default avatar.png Darleanow: okay i have an idea, setting a to 1, if i print boost, i cant do it again as a set up to 0

Default avatar.png Darleanow: with || operator

derjack: :tada:

5DN1L: yes you can keep track of it like that

Thorcode: or you could just let it run as fast as i can and make it drift

Thorcode: it i mean

5DN1L: you can :upside_down:

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/d7dfea21-1d1e-43a2-bc37-4a98007bb40d

OceansCurse: im very used to FVector2D from UE4 is there anything similar I can use in here for C++ ?

MrZee: Or as slow as it can go, be like the tortoise and the hare

5DN1L: Darleanow move a=1 outside while loop

5DN1L: then change a to 0 after boosting

5DN1L: otherwise a will forever be 1

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/f090964e-02b3-4ff1-a64e-b4ff995d2018

derjack: OceansCurse no

OceansCurse: pepeHands

OceansCurse: Thanks tho

derjack: oO

5DN1L: the code looks ok? Darleanow

5DN1L: you can test it

Default avatar.png Darleanow: it doesn't boosts

5DN1L: oops

5DN1L: not angle

5DN1L: distance

5DN1L: distance<9000

Default avatar.png Darleanow: oh maybe should i try

5DN1L: you typed the wrong variable name

Default avatar.png Darleanow: if a=1 boost else do what you're supposed to do

5DN1L: well my strategy was simply using boost in first turn and ignore distance altogether

Default avatar.png Darleanow: yeah but if i boost when theres a small distance, with the thurst i will lose time, bc i will go way too far

Default avatar.png Darleanow: so i guess that i need to do it if theres a certain distance

5DN1L: in terms of passing Wood League 1 my strategy is enough

5DN1L: but for higher leagues you definitely need more than that

Default avatar.png Darleanow: okay !!

derjack: btw. is a == 1

5DN1L: ah that, yup

derjack: eeyup even

5DN1L: should be a==1 instead of a=1 in if

5DN1L: yip yep yup

Default avatar.png Darleanow: okay just did it

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/f077150e-7f95-40b7-ab6f-b6b5c611019b

Default avatar.png Darleanow: its not working --'

Default avatar.png Darleanow: oh mb wrong operator

Default avatar.png Darleanow: still not working with && x)

5DN1L: extra brackets should be removed?

5DN1L: why put them around printf

Default avatar.png Darleanow: ""/tmp/Answer.c: In function ‘main’: /tmp/Answer.c:46:1: error: expected declaration or statement at end of input

  46 | }
     | ^""

5DN1L: you have used a lot of brackets o_O

derjack: use proper indentation

Default avatar.png Darleanow: i can't figure out where it is

5DN1L: "it"?

Default avatar.png Darleanow: the problem x)

Default avatar.png Darleanow: i mean okay for indeniation, but i can figure where is there a mistake

5DN1L: and some of the brackets have been removed?

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/1d3e5cc4-afb9-4741-b8d6-e3374453dbfa

Default avatar.png Darleanow: new version atm

5DN1L: ; missing

5DN1L: before a=0

Default avatar.png Darleanow: still isn't working

5DN1L: what is the error now

5DN1L: what does console say

Default avatar.png Darleanow: ""Timeout: the program did not provide 1 input lines in due time... Darleanow will no longer be active in this game.""

Default avatar.png Darleanow: expecting } at the end

5DN1L: oh there should be two } at the end

Default avatar.png Darleanow: so it's the same problem with indenation

5DN1L: not just one

5DN1L: you miss one } for while loop

Default avatar.png Darleanow: yes, its not giving me a red wave now, but it still isn't working lmao

5DN1L: console says...?

Default avatar.png Darleanow: ""Timeout: the program did not provide 1 input lines in due time... Darleanow will no longer be active in this game.""

5DN1L: this is useless

5DN1L: lol

5DN1L: anything else?

Default avatar.png Darleanow: nope :/

5DN1L: whole code again?

Default avatar.png Darleanow: oh okay i understand a bit, now i boost, but it explodes after x)

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/d4843cae-7afd-4083-b4ab-b653d5b303a2

Thorcode: or the output

Default avatar.png Darleanow: 13479 2020 BOOST

Thorcode: well nothing

5DN1L: remove && next_checkpoint_dist>8000

5DN1L: and try again?

Thorcode: what league are you in darleanow?

Default avatar.png Darleanow: wood 1 xd

Default avatar.png Darleanow: okay ill do this

Default avatar.png Darleanow: i still explode x)

Uljahn: "}}" in the end might be wrong, while loop shouldn't include "return 0" i guess

5DN1L: ah that

5DN1L: right

Default avatar.png Darleanow: it was by default

5DN1L: } return 0 }

5DN1L: } return 0; }

Default avatar.png Darleanow: OHH OKAY

Default avatar.png Darleanow: i boosted !!

Uljahn: :tada:

Default avatar.png Darleanow: theres a little fix i need to do

Default avatar.png Darleanow: i will boost when next_checkpoint_angle is 90, so i'm in a straight line

Uljahn: what? that's wrong

Default avatar.png Darleanow: indeed lmao

5DN1L: try not fixing and just submitting it to areana :wink:

Default avatar.png Darleanow: its disturbing ahahah

Default avatar.png Darleanow: im in arena :p

Default avatar.png Darleanow: sorry guys to ask for this much, i'm really new to coding

5DN1L: after this league you may want to take a break first

5DN1L: practise some puzzles instead

Default avatar.png Darleanow: in clash code ??

Uljahn: you need to learn basics to suffer less :smirk:

5DN1L: clash or just puzzles

Default avatar.png Darleanow: okay sir !

5DN1L: https://www.codingame.com/training

Default avatar.png Darleanow: Thanks !!

5DN1L: :)

Default avatar.png Darleanow: I'm smoking them all ahahah

Default avatar.png Darleanow: whats your division ?

5DN1L: And every time you get promoted, your bot is automatically entered into the arena

5DN1L: so you can wait until that has finished and your rank is really stabilised

5DN1L: i mean the arena of the upper league

Default avatar.png Darleanow: LET'S GO NEW LEAGUE

Default avatar.png Darleanow: oh okay i see !

5DN1L: so now your bot is in the arena of the Bronze League

Default avatar.png Darleanow: yes !

5DN1L: let's see how that goes

5DN1L: don't change your code just yet

Default avatar.png Darleanow: i didn't !

Default avatar.png Darleanow: i unlocked collision

5DN1L: :thumbsup:

Default avatar.png Darleanow: some are smoking me up :'(

5DN1L: so you should wait until all the battles are over, watch some replays of them to get an idea of what your weaknesses are

Default avatar.png Darleanow: they collide me so hard

Default avatar.png Darleanow: bc im doing a smooth deceleration

Default avatar.png Darleanow: like im not braking like an animal, to keep thurst at its best

MrZee: bool winRace = true; Therefore I win =P

Default avatar.png Darleanow: ahahhah

5DN1L: your score keeps rising for the moment

5DN1L: better read the statement now to understand what's new in this league

Default avatar.png Darleanow: yes, they added collisions,

Default avatar.png Darleanow: wich depend on thurst

Default avatar.png Nulled: collisions??? no shot

Default avatar.png Darleanow: im first wtf

5DN1L: yeah these leagues...

Default avatar.png Darleanow: x)

5DN1L: that's why i told you not to change anything

5DN1L: Mad Pod is like that

Default avatar.png Darleanow: but i changed something :p

5DN1L: a tutorial until you get to gold

Default avatar.png Nulled: :100:

Default avatar.png Darleanow: as the randomization makes it possible to have distance under 8000

Default avatar.png Darleanow: so i removed so i boost at the start

5DN1L: i did notice that you resubmitted the code :smirk:

Default avatar.png Darleanow: ohoh

5DN1L: i was wondering why the war progress dropped to zero again lol

Default avatar.png Darleanow: ahahaha

5DN1L: oh and you resubmitted again?

Default avatar.png Darleanow: i dropped to 19k wtf

Default avatar.png Darleanow: i didnt touched the code :'(

5DN1L: you always start from the bottom

5DN1L: if you resubmit your code

Default avatar.png Darleanow: BUT I DIDNT

Default avatar.png Darleanow: AND AGAIN

Default avatar.png Darleanow: oh okay someone rdc me so he's changing my code to annoy me

5DN1L: :confused:

Default avatar.png Darleanow: ok im 8900k

Default avatar.png Darleanow: maybe i will gain a division :0

Default avatar.png Darleanow: 53%

Default avatar.png Darleanow: its so slooooow

Uljahn: use your time wisely: watch last battles and think on how to fix your lost matches

Default avatar.png Darleanow: actually i'm not loosing x)

mr-joelM: hi, i jump on the conversation as ive been stuck since i got to bronze league as well... how do you deal with the collision? as well im not using the boost properly since the idea would be to learn the first round i suppose and use the boost in the longest section but i cant see how to do that... any input

Default avatar.png Darleanow: You need to boost at the start, it made me able winning so much more races

Default avatar.png Darleanow: collisions depend on your thrust, the one who has the more thurst will send away further the other one depending on the thurst

mr-joelM: well i win a lots of them without even boosting but i believe the next league lay in the path of learning the circuit and using the boost at the best opportunity hence the longest stretch

Uljahn: learning the map might be useful, because it gives you possibility to start turning towards the next checkpoint earlier (before you actually reach your current one)

mr-joelM: my pods slow down depending on distance and angle positioning on the next checkpoint, thats the only thing i did from the minute i started and strait away went to bronze league but now im stuck there.

Uljahn: also you can ignore collisions until gold or even legend

MrZee: One option you can do is use the first lap to build a list of checkpoint coordinates and use that to target the next checkpoint before you even reach the current checkpoint

mr-joelM: it says: From Wood to Silver League: A tutorial containing several missions for newcomers.... but i havent actually see any tutorial at all !?!?!

MrZee: The entirety of the leagues are tutorials for gold/legend

Uljahn: ask for a refund :smiley:

MrZee: That's why they slowly introduce new mechanics in each league, it's all in prep for the gold league

mr-joelM: hahahaha

mr-joelM: i cant i've already scratch the paint of the pod!

C26_1: Hello everyone

C26_1: I have success in making a good contribution. I'm so proud of myself

C26_1: https://www.codingame.com/contribute/view/7996fdbe0895a04a557bc849a8c20b762e7f?comment=60219

C26_1: Link for that

ASM_MOV_INT: :sunglasses:

tyfqsDTXQScitxqsf: Hello

Default avatar.png soino: hi

antiwonto: [auto] 'hi' was defined as ' A common salutation for those who are short of words ' by Wontonimo

C26_1: hi

antiwonto: [auto] 'hi' was defined as ' A common salutation for those who are short of words ' by Wontonimo

C26_1: wait

C26_1: Ok So I have a fun story about a web

5DN1L: If it's a long one, then don't put it here

C26_1: No

C26_1: The web has an error and thousands of user has encountered it everyday Random User

C26_1: Wait

C26_1: Sr

C26_1: Let me paste

jacek: oO

Default avatar.png Darleanow: Hey 5DN1L, i won the bot, but i'm not ranking up in the arena :'(

C26_1: http://chat.codingame.com/pastebin/bdceda46-6f35-4c3d-9889-413159fe4011

C26_1: So the rules as a frontend developer

C26_1: Always display an error if you can

5DN1L: Darleanow I think you had a good run in the first or second run of battle when you entered Bronze league, but then battles restarted :shrug:

C26_1: else all managers will simply point at you first

Default avatar.png Darleanow: OH SHOOT

Default avatar.png Darleanow: but some spacships bullying me :'(

Default avatar.png Darleanow: this why i'm loosing some

Default avatar.png Darleanow: but winning most of em anyways

Default avatar.png Darleanow: even got 1 place, but then boom go back to 29k

MrZee: Making progress, got into the top 100 in gold league for Mad Pod!

Default avatar.png Darleanow: GJ !!!

MrZee: Just barely though lol, managed rank 95

Default avatar.png Darleanow: goddamn u good !

MrZee: Thank you lol

Default avatar.png Darleanow: theres a problem with the ranking tbh

Default avatar.png Darleanow: I'm smoking them all

Default avatar.png Darleanow: but still

Default avatar.png Darleanow: stuck

Default avatar.png Darleanow: why's this

5DN1L: https://www.codingame.com/forum/t/how-is-the-rank-for-single-finished-bot-programming-computed/194147

5DN1L: keyword: TrueSkill

jacek: is dbdr really in ukraine?

Default avatar.png Darleanow: already attacked :/

Default avatar.png Darleanow: we all in troubles

Default avatar.png Darleanow: is there any ways to avoid collisions ?

Default avatar.png Darleanow: or to make sur its favorable for me ?

H7KZ: 5DN1L hey missed u my love <3

5DN1L: oh hi H7KZ, not my love

H7KZ: why u not love me :(

C26_1: ưait

C26_1: Why Russia VS Ukraine is so much controversial topic

5DN1L: C26_1 this is not the place to discuss that

C26_1: ok

darkhorse64: :rolling_eyes:

Default avatar.png Nickname1238778498: hello

Default avatar.png Nickname1238778498: how are you

Default avatar.png jaywor: I am fine :))))

Default avatar.png jaywor: How r u?

Default avatar.png Nickname1238778498: drž hubu michale

Default avatar.png jaywor: :C

5DN1L: English only please

5DN1L: https://www.codingame.com/playgrounds/40701/help-center/code-of-conduct

Bowl: how can i have code that works perfect every time in vscode, but 1/2 the time or worse in codingame's internal

C26_1: I'm learning HTML nơ

AdemDj12: maybe check compiler version of the language u r using

C26_1: now*

C26_1: It's so fun

AdemDj12: gl

C26_1: My first HTML web: http://chat.codingame.com/pastebin/d815dcaa-b910-468c-92a9-c1971a1a57d1

C26_1: Fun fact: HTML in theory can be 1d-code

C26_1: But no one will do that

C26_1: Like this: <!DOCTYPE html> <html><head><title>Hello</title></head><body>Hello</body></html>

Uljahn: wdym? adding \n doesn't make your code 2D, it's always linear in memory

Default avatar.png Darleanow: guys ? i'm ranked one, finished arena fights as it's 100%

Default avatar.png Darleanow: but i'm not growing up by a division

5DN1L: There's a timer in the top left?

Default avatar.png Darleanow: i don't see any

Default avatar.png Darleanow: and i don't want to refresh, bc i'd do it since 31k and it would be soooo loong

Default avatar.png Darleanow: but i'm keeping having fights

5DN1L: refresh, it's fine

Default avatar.png Darleanow: OKAY IM STILL FIRST THIS HUGE

5DN1L: league promotion has been an issue recently

Default avatar.png Darleanow: im 36k, i gon break my screen ToT

Default avatar.png Darleanow: why do i have to do it since the start

Default avatar.png Darleanow: :'(

5DN1L: there's a longer break for higher league promotions

Default avatar.png Darleanow: oh okay :'(

5DN1L: there's usually a timer telling you how much time you have to wait

Default avatar.png Darleanow: i don't have any timer :'(

5DN1L: but if you really can't see any timer, then you may ask [CG]Thibaud to check for you

Default avatar.png Darleanow: how can i msg him ?

5DN1L: type "/msg" then his name

5DN1L: with a space in between i mean

5DN1L: but you're running battles again right now?

Default avatar.png Darleanow: yeah i do !!

Default avatar.png Darleanow: i'm havinng battles atm

5DN1L: then wait and see if this time works before you PM him

Default avatar.png Darleanow: i don't see any

Default avatar.png Darleanow: even before i was 1st ranked

5DN1L: the battles are running

5DN1L: wait

5DN1L: be patient

Default avatar.png Darleanow: sorry !

5DN1L: check the battle progress by clicking LAST BATTLES

5DN1L: you can also see the circle progress in LEADERBOARD

Uljahn: it says 30% atm

Default avatar.png Darleanow: oh yeah mb mb

Uljahn: ok, what now?

Default avatar.png Darleanow: i went from 4 to 566 x)

Uljahn: are you above the boss in the leaderboard?

Default avatar.png Darleanow: i was

Default avatar.png Darleanow: but then boom went down

Uljahn: unlucky

5DN1L: Never resubmit the code when you're good 😈

Default avatar.png Darleanow: yup :'(

Default avatar.png Darleanow: i didn't !!!!

Default avatar.png Darleanow: it was like someone didnt wanted me to get out of bronze

5DN1L: Must be someone whose name starts with "D" :thinking:

Default avatar.png Darleanow: lmaoo

Default avatar.png Darleanow: i didn't touched the code, i swear

5DN1L: but you know there's randomness in the battles

Uljahn: maybe your code is not good enough for silver :smirk:

Default avatar.png Darleanow: :'((((

Default avatar.png Darleanow: it is !!

Default avatar.png Darleanow: the ia rated me 17.09

Default avatar.png Darleanow: even though i was at 17.3

Thorcode: just learn to use drift

Thorcode: that gonna change the whole mad game

5DN1L: next time if you're stuck on the top without promotion, just PM Thibaud and don't attempt anything else

Default avatar.png Darleanow: what is even drift ? u mean with thurst ? and decelration

Default avatar.png Darleanow: okay sir !!

StraumliPerversion: Darleanow, they talk about this same game thousands of times over and over on the chat, you can spend weeks reading the logs and get really good at it

Default avatar.png Darleanow: where can i find those logs ?

StraumliPerversion: https://cg.spdns.eu/wiki/Main_Page

Default avatar.png Darleanow: thank you sir !

5DN1L: there are also some resources on Mad Pod's front page, and in the forum

Default avatar.png Darleanow: thank you all for your help !!

Default avatar.png Darleanow: i will try to make a better code for when you have to decelerate, and turn

Wontonimo: -3v

antiwonto: [auto] '-3v' was defined as ' A PID controller reference for mad pod racing. Check out https://w3.cs.jmu.edu/spragunr/CS354_F17/handouts/pid.pdf ' by Wontonimo

Default avatar.png Darleanow: Thanks !!!!

NewCoder09: hey

Wontonimo: np. It is "gold" ;)

NewCoder09: what time is it?

NewCoder09: :taco: Wontinimo

NewCoder09: :taco: Wontonimo

antiwonto: [auto] NewCoder09 has awarded Wontonimo 10 tacos. Wontonimo now has 160 taco. NewCoder09 now has 12 taco

Default avatar.png Darleanow: my lord, i'm so bad at maths, i can't even understand it correctly ahahah

Wontonimo: TACO TIME !

Wontonimo: hey Darleanow , imagine you are driving towards a red light at full speed and imagine what you do as you approach it. Now image appraching a red light while going slow

Wontonimo: really imagine it, i'm not kidding.

Wontonimo: you will notice that your decision of when and how hard to apply the break is related to you speed and distance

Default avatar.png Darleanow: ohhh so should i make something like if next_checkpoint_dist <some number {thurst=40} for example ?

Default avatar.png Darleanow: https://www.codingame.com/replay/610312850 tbh i find it smooth

Default avatar.png Darleanow: http://chat.codingame.com/pastebin/f97eec43-23e1-4c67-9373-c6f63618a87f

Liv201: hi

antiwonto: [auto] 'hi' was defined as ' A common salutation for those who are short of words ' by Wontonimo

Liv201: oh

Wontonimo: Darleanow , i sent you more info in a DM

Miki09: :taco: Wontonimo

antiwonto: [auto] Miki09 has awarded Wontonimo 10 tacos. Wontonimo now has 170 taco. Miki09 now has 35 taco

Default avatar.png ionKOT: trying to learn from other people code these problems are tough

Default avatar.png TheWorkingBee: :taco: ionKOT

antiwonto: [auto] TheWorkingBee has awarded ionKOT 10 tacos. ionKOT now has NaN taco. TheWorkingBee now has 1 taco

NewCoder09: hey guys how are yall doing

Thorcode: :taco: antowonto

Thorcode: :taco: antiwonto

antiwonto: [auto] Thorcode has awarded antiwonto 10 tacos. antiwonto now has 80 taco. Thorcode now has 12 taco

Thorcode: :taco: Wontonimo

antiwonto: [auto] sorry Thorcode but you can only award tacos once per day

Thorcode: give :taco: Wontonimo

antiwonto: [auto] sorry Thorcode but you can only award tacos once per day

Mortis_666: :taco: Thorcode

Wontonimo: the bot sleeps and stops responding if it interacts too much in a short time

Mortis_666: :open_mouth:

Wontonimo: but it is supposed to say it is doing that :thinking:

Wontonimo: ah, it was a bug. lastResponseCount++ instead of the proper ++lastResponseCount

Wontonimo: fixed now

Mortis_666: ok

Mortis_666: :taco: Thorcode

antiwonto: [auto] Mortis_666 has awarded Thorcode 10 tacos. Thorcode now has 22 taco. Mortis_666 now has 11 taco

Mortis_666: cool

Default avatar.png ionKOT: k = [ i for i in range(1,n) if i % 7 == 0 ] how to add a counter to this list range ?

Default avatar.png ionKOT: python

Alshock: you want to count the list size ? then len(k), you want to do so on the fly? sum(1 for i in ...) you want to count something else?

Default avatar.png ionKOT: i want to count how many times if true

ninjadip: hello

Default avatar.png ionKOT: but how do i do it in that form

Alshock: note that in your case, range(7, n, 7) does the same as your comprehension

Alshock: what do you mean in that form? You are making a list, list is not a "count" value of itself, you can though count the number of elements with len(list)

Default avatar.png ionKOT: wait im so dumb lol i can just use len()

Alshock: if you don't want a list, but still want to iterate, then generators are there for you

Alshock: if you need to go fast on large sequences, you probably want to stop iterating, and use maths

Default avatar.png ionKOT: can you show a snip?

Alshock: the number of multiples of 7 in range 1 to n inclusive is the floor value of n / 7

Alshock: in python k = n // 7

Default avatar.png ionKOT: i see now ! lol thanks for the tip

jacek: :taco: Automaton2000

Automaton2000: ok so it is the first time

antiwonto: [auto] jacek has awarded Automaton2000 10 tacos. Automaton2000 now has 61 taco. jacek now has 79 taco

Automaton2000: you make me want to puke

jacek: oO

Wontonimo: LOL !!!

Wontonimo: too many tacos for a robot ... bad for the circuits

Default avatar.png Nobody_no_one: who still codes in c?

ninjadip: that's whati was tryin to figure out the other day

ninjadip: only reasonable answer i got is when coding for devices to use C

Alshock: C is still used in embedded systems

StraumliPerversion: your phone runs on million of lines of C

StraumliPerversion: at least the physical layer

Default avatar.png gaioc: a lot of frameworks are made in c

Default avatar.png SlyisAdam: hey famboys

ninjadip: sup

KalamariKing: hey all

KalamariKing: do you think Automaton2000 will eventually learn to use :taco:

Automaton2000: is there an easy way to create a list of all the checkpoints

ninjadip: yes

ninjadip: everytime your current checkpoint changes put the old one into a dynamic array

ninjadip: and when you have a repeat you know you have all the checkpoints and completed one lap

Miki09: :taco: Automaton2000

antiwonto: [auto] sorry Miki09 but you can only award tacos once per day

Automaton2000: u can also use it to find out how to implement that

Miki09: :-(

theplen: https://www.codingame.com/clashofcode/clash/2249577852465acbe303e6cab5e17582e7d64f5

antiwonto: [auto] hey theplen, dont paste those links here. Use the channel #clash

jacek: :notebook: :soccer: avatar?

theplen: @antiwonto mistake, trying to send to friend

jacek: oO

jacek: there are no mistakes. just happy accidents

Wontonimo: theplen , antiwonto is a bot. it's nice you are chatting with it, but it is not needed.

Wontonimo: if you can't tell from the name, it's my bot.

ninjadip: or your evil doppelanger (sp?)

Wontonimo: we switch roles sometimes, good mod bad bot, good bot bad mod

jacek: is it me or i cant get the graphics controls of the replays?

5DN1L: Somebody reported the same thing on the forum

jacek: https://i.imgur.com/0OWXoiA.png

5DN1L: https://forum.codingame.com/t/bug-in-mars-lander/194770/

jacek: nyoro~n

Default avatar.png coder6: im new

Default avatar.png coder6: how to code

5DN1L: Automaton2000 how to code

Automaton2000: glad to see tacos are flowing freely

Uljahn: finally

Wontonimo: WHAT!?! oh, that's sooooo cool!

derjack: :taco: Automaton2000

antiwonto: [auto] derjack has awarded Automaton2000 10 tacos. Automaton2000 now has 71 taco. derjack now has 14 taco

Automaton2000: is there any reason to do it

Automaton2000: was just looking at the wrong time

derjack: TBali so close to legend eh

Default avatar.png Widtheskid: Any secret getting from silver to gold

struct: which game?

Default avatar.png Widtheskid: Broomstick flyers!

jacek: be better than boss [solved]

struct: do you use spells?

jacek: still working on onitama?

struct: kinda

Default avatar.png coder6: im new how to code

struct: im redoing my wincheck function

struct: to check for earlier wins

struct: also the move gen so it doesnt play losing moves

Default avatar.png **KyreX slaps krallendor around a bit with a large fishbot

Sarstan: Arrays are just wrecking me. I really need to learn how to read values and apply them from an array.

struct: what problems are you having with them?

Sarstan: No idea how to actually use them. The syntax. I'm doing C#.

struct: ill be back in 5min I can help you when Im back if you want

Sarstan: As an example, I'm looking at Broomstick Flyers. Need to pull from the array created who entities are the balls.

jacek: you have the string entityType no?

Sarstan: That's right.

jacek: whats has to do with arrays?

struct: They are not giving you any array

struct: you can create an array if you want though

jacek: well the default code split string into arrays

Sarstan: Isn't that all in an array? My thought process is have it find all the entities that are "snaffles," then throw those into finding the closest to each entity that's my wizards, and have them each go to it. But isn't each entity assigned a given ID?

struct: inputs is an array yes

struct: but then it gives you each position of the array

struct: position 0 is entityId, 1 entityType

struct: and so on

struct: If you want to store the snaffles in an array I would create it like this

Sarstan: I guess I'm confused on how to pick an entity.

struct: Snaffle[] snaffles = new Snaffle[entities - 6];

struct: you check the entityType

struct: if (entityType == "SNAFFLE")

struct: you add it to your snaffles array

Sarstan: Oh!

Sarstan: Sounds like I'm overthinking it.

Sarstan: There's another issue I'm running into. If I try to call entityType outside of the for command it's generated inside, I get errors. Any way to pull that out of the for loop?

Scarfield: sounds like you could use a good tutorial tbh, these puzzles and multiplayers are much easier and more fun, when you have a better understanding of the basics

Sarstan: True. Any suggestions there?

Scarfield: im not a c# coder, but will look in a minute :)

Sarstan: I've seen multiple puzzles that I keep bumping into this from.

Scarfield: just to answer your question, you need to create the array to store the data outside of/before the for-loop, or else the array will be deleted when exiting the loop, and you cant acces the data after

Sarstan: I noticed it's perfectly happy printing them off with a Console.Error.WriteLine command and it will update when any of the entities disappears.

Sarstan: While it's in the for loop.

struct: yes

struct: you are given every updated game state

Sarstan: I wish I could find like a checklist for learning programming. Tutorials seem to just drop you and not guide you to what's next.

Scarfield: https://www.youtube.com/watch?v=nVfQkRYPMAU Sarstan this is a short video explaining what i think you are missing right now :)

Sarstan: I get the breakdown of class and method. Just inside a method how to grab info from a loop and use it elsewhere in the same method.

Sarstan: Like I have: for (some code) { more code and entityId } if (entityId = more code) { more code } I get an error in the if statement. Can't get entityId.

Scarfield: https://www.youtube.com/watch?v=Y2FNKhPYb8Y the point was about the "scope" the first 4-5 minutes has your answer, if im understanding your problem correctly at least

Scarfield: you can share your code, and maybe i can help

Sarstan: Yeah, that second video explains my issue. I'll need to declare my variables in the method outside a loop.

linjoehan: any of you'll do hash code?

jacek: do you smoke hash? ;O

Default avatar.png Ninjatron: oh lord

Default avatar.png Ninjatron: you again

Default avatar.png Ninjatron: he snipes there all day long to come up with a bad joke :D

jacek: :smirk:

Default avatar.png Ninjatron: lol

Wontonimo: i for one encourage the jacek to pepper world chat with jokes

Wontonimo: a :taco: for jacek

antiwonto: [auto] Wontonimo has awarded jacek 10 tacos. jacek now has 89 taco. Wontonimo now has 171 taco

Sarstan: No time for puns and jokes. This is serious business.

DomiKo: any thoughts about HashCode?

Wontonimo: don't use them. use associative arrays :rolling_eyes:

Wontonimo: :upside_down:

antiwonto: [auto] ':upside_down:' was defined as ' ɥǝllo ' by jacek

Scarfield: i thought the qualification round would be open for a few days lol

Wontonimo: but seriously ... i really don't know what you are asking about hashcodes. Are you wondering how to make a good hashing equation

Scarfield: google hashcode comp

Wontonimo: ah

Scarfield: https://codingcompetitionsonair.withgoogle.com/

Wontonimo: not hashcodes at all

Scarfield: zobrist code

linjoehan: It was a super tricky problem

linjoehan: so many moving parts

linjoehan: to little time to do it all

Default avatar.png Ninjatron: what are you talking about my little friend?

linjoehan: hashcode

Default avatar.png Ninjatron: oh what was the question in a nutshell

Scarfield: https://codingcompetitionsonair.withgoogle.com/events/hashcode-22qr/watch?talk=hc2022-qrlive

Scarfield: they are explaining it know on stream

Default avatar.png Ninjatron: yeah i don't care about it

Scarfield: dont ask then..

Default avatar.png Ninjatron: what was the question about? graphs? strings?

Default avatar.png Ninjatron: idc about the stream lol

Scarfield: how did you/your teams do DomiKo and linjoehan

DomiKo: my team have 3.65Mln

linjoehan: my team read the problem and then quit

Default avatar.png Ninjatron: isn't it obvious

Default avatar.png Ninjatron: :D

Default avatar.png Ninjatron: hahahaha damn I hate those novella sized problem definitions

DomiKo: top29 here :D

Scarfield: lol linjoehan xD noice DomiKo :muscle:

linjoehan: 1.7Mil

Default avatar.png Ninjatron: linjoe now i got even more curious

DomiKo: so I guess finally finals for us :D

Default avatar.png Ninjatron: what was the question that made them quit without trying?

Scarfield: i looked at the previous hash code, and figured it was too hard for me to bother, but i will probably try code jam :)

linjoehan: It's not exactly easy I guess

Default avatar.png Ninjatron: is it like a dream for you all to join Google or something?

Scarfield: they didnt say how many teams qualify for next round of hash code?

linjoehan: I just about managed to set everything up and get a solution to work, but I had no time to optimize anything, just random fill a solution and prey

linjoehan: I don't know maybe one day when I'm good enough I can join Google

linjoehan: I got into Amazon for a short while, but then they kicked me out again

Default avatar.png Ninjatron: lol you think all engineers at Google are so good?

linjoehan: Why do you think I think that?

Default avatar.png Ninjatron: you say "when i am good enough"

DomiKo: Ninjatron you dont thing that?

Scarfield: feed the ducks not the trolls

Default avatar.png Ninjatron: no i don't

linjoehan: that's about me not the google engineers

Default avatar.png Ninjatron: if you can get into amazon you can get into google

Default avatar.png Ninjatron: i almost passed their interview with just 1 month prep, and failed because i listened recruiters idea of doing an AOE interview using C++ lol

DomiKo: Ninjatron amazon is only popular in USA xd

linjoehan: Na Amazon was easy to get into. And if they gave me a fitting role I might have managed to stick around a bit, but I gon interviewed in the stuff I like (Algorithms) and the work was a bunch of front end stuff that I've never even tried to play with before

Default avatar.png Ninjatron: actually Amazon is hated by many of their employers lol

dbf: DomiKo, congrats!

Default avatar.png Ninjatron: I think Amazon is really struggling finding talent

DomiKo: thx <3

linjoehan: Amazon is hated but I don't think so much on the software side of things. I may be wrong though.

Default avatar.png Ninjatron: they have a bad rep already

Default avatar.png Ninjatron: nah, they have PIP, will overwork people, terrible managers and bunch of other crap

Default avatar.png Ninjatron: if you have a linkedin profile, and looking halfway decent their recruiters will reach you, at least in the US

linjoehan: haha pip is a blessing. I was so out of there when that thing came around, so I took the free money and ran

Default avatar.png Ninjatron: i can't say I understand your issue though linjoe

linjoehan: what do you mean?

Default avatar.png Ninjatron: didn't they put you on FE team after you requested it?

Default avatar.png Ninjatron: also, no matter what role it is, you are going to come across things you don't know

linjoehan: No, I was in a tooling team and the big project the got stuck with was all front end. before that project it was all going quite smoothly.

Default avatar.png Ninjatron: i see, didn't they give enough time? were you the only responsible engineer?

linjoehan: Naa there was no chance of me being able to meet their bar for that project. They asked me to translate ruby on rails to react. And I'm like wait a second, can you tell me more about html?

Default avatar.png Ninjatron: ah... can't comment on that, never worked with rails i thought rails is backend

Default avatar.png Ninjatron: does it have a template engine or something?

linjoehan: yeah something like that.

linjoehan: I must say it was a rather depressing time trying to fight through the stuff I barely know anything about

Default avatar.png Ninjatron: yeah that can happen, it is my understanding Amazon is managed ruthlessly

linjoehan: I guess that's why it was easy to get in.

Default avatar.png Ninjatron: it doesn't matter really

linjoehan: my interview question was 2 sum, like who goes to a technical interview and can't 2sum?

Default avatar.png Ninjatron: :D

Default avatar.png Ninjatron: that's odd

Default avatar.png Ninjatron: you didn't get an online challenge?

Default avatar.png Ninjatron: well I guess it is SDE1, and you're out of college

linjoehan: Oh I did solve a difficult challenge problem before the interview. maybe it was that, but I thought they don't count the stuff before the interview or that's what they say at least I think.

Default avatar.png Ninjatron: yeah they don't count online challenge

linjoehan: No I was put in SDE2 and I'm self taught.

linjoehan: lol I actually asked my manager? Um SDE2 that don't seem right man.

linjoehan: Oh well

Default avatar.png Ninjatron: lol

Default avatar.png Ninjatron: what was the system design question?

linjoehan: I don't remember something about reserving EC2 instances.

Default avatar.png Ninjatron: did you get asked object oriented design question?

Default avatar.png Ninjatron: it sounds like you were interviewed for SDEI

Default avatar.png Ninjatron: then they put you to an upper level and expected you to perform at that level

Default avatar.png Ninjatron: well anyway, doesn't matter, honestly there are tons of interesting companies where you will do more meaningful work anyway

Default avatar.png Magmi: Guys, how is the "Score" in leaderboard calculated for clash of code?

Default avatar.png Ninjatron: Jacek: "Using math"

Default avatar.png Ninjatron: just scroll over the question marks and they explain

Addikins: Lol prepping for an Amazon OA right now. Hoping for a 1x30 interview afterwards, otherwise I'm probably not gonna get in if it's anything more thorough

Default avatar.png Ninjatron: what is 1x30?

Addikins: 1 30 minute interview after the online assessment. It's common for SDE 1 (maybe 2?) roles

Default avatar.png Ninjatron: if you do well in challenge you will go directly to the final

Addikins: Usually it is just going over your OA solution and possibly some culture fit checks, then an offer.

Default avatar.png Ninjatron: no final interview?

Addikins: Seems like it highly depends on a combo of how well you did the OA and luck. A lot of people get a 1x30, others get a few more culture fit/technical rounds

Default avatar.png Ninjatron: and what do I get?

Addikins: Interns usually get a 1x45 technical regardless

Default avatar.png Ninjatron: design snapchat, do the object oriented design for a card game, 2 algo questions and 2 hours behavioral

Addikins: You get free doughnuts on Tuesdays between 9 and 10 am but only the white powdery kind that get everywhere

Addikins: Did you interview/are an employee?

Addikins: That sounds intense, though kinda fun if not for the pressure

Default avatar.png Ninjatron: I did, i was asked to design snapchat after manager wasted half 2/3 of the time ranting about their leadership principles and my experience

Default avatar.png Ninjatron: FUN? lol it was anything but 4 I didn't even have time to pee between the interview for 4 hours straight

Default avatar.png Ninjatron: then in each and every interview they wasted half or more time ranting about their LPs and behavioral

Default avatar.png Ninjatron: I thought everyone had to go through this?

Addikins: Just like the work culture it seems super team/individual dependent :\

Addikins: I'm just hoping to luck out at this point. Funny enough, I already had the stuff for my OA that I got yesterday but literally as we've been chatting I got an additional OA that is fairly different 🤔

Default avatar.png Ninjatron: yeah it was by far the worst interview for me, wasting half to 2/3 of time talking and then expecting me to design snapchat or solve medium difficulty questions wasn't fair at all

Default avatar.png Ninjatron: at the same time everyone says "Amazon is easy to get in" so I think I am the only one they decided to screw with lol

Addikins: http://chat.codingame.com/pastebin/d971dcf5-45b6-466f-8967-3dfc853efc62

Addikins: Woah wasn't expecting it to create a link lol

Default avatar.png Ninjatron: yeah I got the same, I scored almost perfect or perfect not sure

Addikins: Auto-email says 2.5 hours for: http://chat.codingame.com/pastebin/02172649-9ef3-4acf-ad33-6f7d020d7cae

Default avatar.png Ninjatron: so was moved to final

Default avatar.png Ninjatron: that includes surveys afterwards

Addikins: To respond to what you said, I think yeah you kinda got screwed but it also highly depends. Many interns/new grads go through that and it's the norm, where some professionals just get a 1x30. Are you a new grad?

Default avatar.png Ninjatron: i am but with some work experience

Addikins: Did your invite email look like the second response I got?

Default avatar.png Ninjatron: seems like you will get easier questions

Addikins: A lot of people say they do OA1, OA2, and OA3 as if they're separate, but for me it's being presented as one batch

Default avatar.png Ninjatron: you're a new grad with no experience I guess

Addikins: Nope

Default avatar.png Ninjatron: so you have less time, but probably 1 easy 1 medium

Addikins: Professional with ~2+ years experience and *ahem* an associates degree

Default avatar.png Ninjatron: I only had 1 OA, which was two medium difficulty questions one close to hard unless you knew UnionFind

Addikins: Wasn't recorded though by the sounds of it?

Default avatar.png Ninjatron: it is not recorded but what difference does that make?

Addikins: Just meaning it was on your own schedule, you didn't have to live code with someone watching you

Default avatar.png Ninjatron: no it is on your own schedule but you can't stop and continue later

Addikins: Right, same for this one it seems, but others have had the OA separated which is interesting. They really are all over the place with them

Addikins: What problems did you encounter btw?

Default avatar.png Ninjatron: I don't remember one was related to finding connected components in a graph

Default avatar.png Ninjatron: i mean that was the idea, cannot remember details it was a while ago

ImKingKong: whats the different between ST TH and ND?

ImKingKong: im confuse now

struct: what is confusing about it?

ImKingKong: difference wetween that

JohnCina: between

struct: https://en.wikipedia.org/wiki/English_numerals#Ordinal_numbers

struct: is this what you are talking about?

JohnCina: ok

UZUHAMA: Hello world

struct: hi

antiwonto: [auto] 'hi' was defined as ' A common salutation for those who are short of words ' by Wontonimo

UZUHAMA: I see that Wontonimo's been working on some kind of a bot

JohnCina: how to make community contest

UZUHAMA: idk

struct: you cant

struct: you can make multiplayer games though

UZUHAMA: I hate optimization

StraumliPerversion: :taco: UZUHAMA

antiwonto: [auto] Sorry StraumliPerversion but you are too new. Get someone to give you tacos first

UZUHAMA: ????

UZUHAMA: What is that

struct: still bugged I guess

ASM_MOV_INT: @johncina you can submit contests for practice in the practice area, i have never done it, but .... cool!

struct: :taco: UZUHAMA

antiwonto: [auto] struct has awarded UZUHAMA 10 tacos. UZUHAMA now has 1 taco. struct now has 96 taco [sleeping]

StraumliPerversion: some thing to scroll the chat if you say something embarassing

UZUHAMA: ooh

JohnCina: ok

UZUHAMA: :taco:

UZUHAMA: :taco: @StraumliPerversion

UZUHAMA: um

struct: no @

UZUHAMA: :taco: StraumliPerversion

StraumliPerversion: it is asleep now

struct: the bot is sleeping now

StraumliPerversion: but thanks

UZUHAMA: oh

UZUHAMA: ye

ASM_MOV_INT: :taco:

UZUHAMA: :taco:

StraumliPerversion: has Blaise resurfaced?

StraumliPerversion: not the same without his shenanigans

struct: Dont think so

struct: at least not on world

UZUHAMA: Does nested for-loop based on length of an array always have time complexity of O(n^2)?

StraumliPerversion: for i=1:n;break;for j=1:n

UZUHAMA: um excuse me

UZUHAMA: I don't quite understand...

StraumliPerversion: beats me, struct knows that CS stuff

UZUHAMA: CS?

StraumliPerversion: computer science

UZUHAMA: oh

UZUHAMA: where is struct :(

struct: yes

UZUHAMA: oh

UZUHAMA: Does nested for-loop based on length of an array always have time complexity of O(n^2)?

StraumliPerversion: even if you break out of the first loop?

UZUHAMA: There's no break

struct: well if he doesnt its always O(n^2)

UZUHAMA: in the first loop

UZUHAMA: oh no...

UZUHAMA: :cry:

UZUHAMA: This is why I have optimization

UZUHAMA: So much harder than the problem itself

UZUHAMA: *hate

struct: I dont think thats optimization

struct: thats only the solution

StraumliPerversion: bender ep4?

StraumliPerversion: oops, blunder ep3

UZUHAMA: Well yeah

UZUHAMA: It's not optimized yet

UZUHAMA: So I gotta optimize it now, but...

UZUHAMA: :c

JohnCina: i'd done 3 reverse code in clash of code but the quest is not updated yet

JohnCina: the games of riddles

StraumliPerversion: you have to approve this one first

StraumliPerversion: https://www.codingame.com/contribute/view/7639313ebafabcf1a746466819cd5a359dad

struct: I saw this before I thikn

struct: was it rejected?

StraumliPerversion: yeah, it got deleted for sucking

JohnCina: not on the contribution

JohnCina: nvm

JohnCina: already refreshed

StraumliPerversion: but it was approved first

StraumliPerversion: hey, thanks JohnCina. I owe you some tacos when I get back on my feet

XueHuaPiaoPiao: im eating lunch

XueHuaPiaoPiao: xd

UZUHAMA: Is there a way of knowing how much my code is optimized? Or, is there a way of getting the total runtime of the code or executed data?

struct: you can measure the time

struct: Before the function and after

UZUHAMA: Time is always same

UZUHAMA: Because I always get a time-out error

struct: test it localy

struct: or print the time every N iterations

UZUHAMA: Oh that's smart!

UZUHAMA: Thx

XueHuaPiaoPiao: why my score in the clash of code suddenly got minus

XueHuaPiaoPiao: i dont do anything

ayaan-dev: hi

Default avatar.png DanteAntonioRemedioBradshaw: I'm new at coding and working on learning python.. This shet is HARD.... any tips?

Wontonimo: yeah. practice

Wontonimo: practice the easy stuff a lot

Wontonimo: check out this site for easier practice questions https://www.hackinscience.org/exercises/

Wontonimo: codingame is for people who already are comfortable with arrays, functions, and some basic algorithms

Wontonimo: don't go away, just don't lean on this site until you have those basics down