HackSussex Coders' Cup 2024

Поделиться
HTML-код
  • Опубликовано: 20 ноя 2024

Комментарии • 1 тыс.

  • @voyd137
    @voyd137 6 месяцев назад +1804

    The world needs more competitions like this

    • @tysonofficial1958
      @tysonofficial1958 6 месяцев назад +5

      Indeed, well said.

    • @strawberryblender
      @strawberryblender 6 месяцев назад +15

      No it's not, why not built some useful application for society instead of grinding leetcode for nothing.

    • @TranquilityVast
      @TranquilityVast 6 месяцев назад +10

      @@strawberryblender make useful application (in hours) don't reflect complete intelligent of human

    • @strawberryblender
      @strawberryblender 6 месяцев назад +3

      @@TranquilityVast I mean if you can name the some of most notorious programmer they definitely not spend time grinding Leetcode, Linux is an example, they enjoy CP and math and do it some other times but not spend time grinding for nothing like this.

    • @ibrahimfarukyahuza6144
      @ibrahimfarukyahuza6144 6 месяцев назад

      Indeed...

  • @RevansahDragunov
    @RevansahDragunov 6 месяцев назад +1222

    I got blessed by RUclips's Recommendation algorithm.. never seen something like this, and i hope there will be more like this in the future

    • @johnkery6449
      @johnkery6449 6 месяцев назад

      Its working wrong in India by displaying Anti Modi Government reels ,videos of German Indian boy who omiting only poison against Hindu culture ,Indian government ..Lmao..Google also interfering in elction of India as comand of USA

    • @Gbyrd99
      @Gbyrd99 5 месяцев назад +5

      Same here, I got so into the first puzzle, I paused the video, ran to the computer to attempt it. Managed to brute force something in about 10m

    • @jasonthomas9975
      @jasonthomas9975 5 месяцев назад +2

      SAME HERE!!!!

    • @ezefrancatube
      @ezefrancatube 5 месяцев назад +1

      Same here.

    • @vic1918
      @vic1918 4 месяца назад +1

      Me too, but I was kind a sad about the solutions of the developers to be honest. Anyway.

  • @Shay-mw1hh
    @Shay-mw1hh 6 месяцев назад +1043

    Literally the nerdiest competition ever and I'm here for it.

    • @odetoazam
      @odetoazam 6 месяцев назад +2

      hahahahah

    • @Gbyrd99
      @Gbyrd99 5 месяцев назад +25

      You need to watch the excel world championship. That is a sight to behold and super nerdy

    • @Soulful_Oatmilk
      @Soulful_Oatmilk 5 месяцев назад +3

      @@Gbyrd99 was going to suggest the same thing. It's even sponsored by Microsoft and has a lot of Starcraft based questions. Nerdiest shit ever, and I do both programming and Excel 😂

    • @Gbyrd99
      @Gbyrd99 5 месяцев назад

      @@Soulful_Oatmilk haven't used excel in a very Long time. Using sheets and sc2 but man it's so incredible watching the world championships

    • @sandiwwk
      @sandiwwk 5 месяцев назад +1

      You also need to see Geoguessr tournament

  • @honglinhvuong3736
    @honglinhvuong3736 6 месяцев назад +669

    This competition needs to be qualified as an esport event

    • @4glassmilk635
      @4glassmilk635 5 месяцев назад +3

      u have a bottle as a rival

    • @Kyle-mo7yp
      @Kyle-mo7yp 5 месяцев назад +2

      COYS

    • @JeanCS-ut2qz
      @JeanCS-ut2qz 5 месяцев назад

      @@Kyle-mo7yp couldnt even draw with city🚮.. lol jk

    • @Kyle-mo7yp
      @Kyle-mo7yp 5 месяцев назад

      @@JeanCS-ut2qz bottlers

    • @JeanCS-ut2qz
      @JeanCS-ut2qz 5 месяцев назад

      @@Kyle-mo7yp lol was just joking ..good luck next season xD

  • @0xmnkhod
    @0xmnkhod 6 месяцев назад +609

    WE NEED WORLD CHAMPIONSHIPS , ADD DRAFT PICKS ADD PROGRAMMING LANGUAGE BANS, ADD DATA STRUCTURE BANS, ADD 2 vs 2 WE NEED MOREEEE THIS IS WAY BETTER THAN ESPORTS

    • @abdullahihilowle3117
      @abdullahihilowle3117 5 месяцев назад +12

      yo thats actually some pretty good ideas, imagine 2v2s

    • @0xmnkhod
      @0xmnkhod 5 месяцев назад

      @@abdullahihilowle3117 we got roles now babyyy. The Mind Carry / The Keyboard Marksmen.

    • @uknown2031
      @uknown2031 5 месяцев назад +2

      What a programming language must banned from competition?

    • @daphenomenalz4100
      @daphenomenalz4100 5 месяцев назад

      @@uknown2031 pyhton probably, cuz it just gives shorter code same logic advantage haha. Also, that would be such a curve ball for people who don't even bother to try any other language than Python lmao 🤣

    • @annorome
      @annorome 5 месяцев назад +1

      Add pre-built function usage bans, s.t. mathematically sound and efficient solutions become more relevant, oops, and by it remove 95% of possible competitors from a potential base of players. 😂

  • @theforeskinsnatcher373
    @theforeskinsnatcher373 4 месяца назад +43

    I like that the competitors aren't some super geniuses but just the local nerds, which makes this a lot more relatable lol

  • @XDBjoernXD
    @XDBjoernXD 6 месяцев назад +180

    competitive programming feels like a fever dream to me

    • @octaviusp
      @octaviusp 4 месяца назад +4

      isn't complicated as you think.

    • @_jatin_Vaishnav329
      @_jatin_Vaishnav329 4 месяца назад +2

      it's not a coplex

    • @PinkeySuavo
      @PinkeySuavo 4 месяца назад

      @@octaviusp teach me

    • @Thomas-dp8eb
      @Thomas-dp8eb Месяц назад +2

      ​@@PinkeySuavoIf you ever get stuck.. throw a hashmap at the problem and you'll be fine

    • @rohakdebnath8985
      @rohakdebnath8985 Месяц назад +1

      @@Thomas-dp8ebthis isnt competitive programming iirc

  • @rozi206
    @rozi206 6 месяцев назад +68

    I love how the caster talk about the competitors write the code. LOL.
    I used to hear e-sport caster
    But this is the next level. LOL

  • @vm221
    @vm221 6 месяцев назад +252

    Great idea but really needs some work on the execution, for example:
    -Some of the problems would benefit from a brief code review at the end, rather than cutting straight to the hosts without reflecting at all on the differences in code or approach between the contestants. Even just a 15 second comparative review would be better than cutting to filler talk.
    -why interview the loser asking them 'if they have anything to say', instead of interviewing the winner about their successful approach?
    -at the end of the round when it cuts back to the hosts, the competitor info on the screen is obscured
    Keep it up and looking forward to seeing the next incarnation of the contest.

    • @HackSussex
      @HackSussex  6 месяцев назад +44

      Hi thanks for the amazing feedback, we will take it on board and try implement them in our next coders’ cup 👍🏻

    • @3xpl0i79
      @3xpl0i79 6 месяцев назад +10

      ​@@HackSussex Really cool idea, I think it would be a better to put up a veteran knowledgeable coder as the judge, so that they analyse the competitor approach instead of these guys just putting up a voice over of what they are implementing.
      Imagine Ken thompson on the show judging the finals. Would be a good PR as well.

    • @HackSussex
      @HackSussex  6 месяцев назад +22

      @@3xpl0i79 hi that would be a great idea but the show is run by students at Sussex, we like to give out committee members the opportunity to present the coders’ cup!

    • @ThomasGiles
      @ThomasGiles 5 месяцев назад +8

      Would be cool to have the “passed tests” displayed on screen too. Keep up that tension, like a score in a sport.

    • @yomamasofat413
      @yomamasofat413 5 месяцев назад +2

      I also want to hear the thoughts of the competitors after each round, were they nervous or something haha

  • @randyt700
    @randyt700 6 месяцев назад +103

    The commentators are actually the best part of this event. Good analysis, banter, and personality. Keep these events going Sussex. From across the pond

    • @kyugreywolf6801
      @kyugreywolf6801 4 месяца назад +1

      Are you fucking kidding me?

    • @randyt700
      @randyt700 4 месяца назад

      @@kyugreywolf6801 totally

    • @magic4694
      @magic4694 4 месяца назад

      @@kyugreywolf6801 🤣🤣🤣

  • @juniferbilagantol7038
    @juniferbilagantol7038 6 месяцев назад +15

    When I found this on my RUclips recommendation, licked the video automatically, then subscribed with no hesitation. I am an Esports fan on most games but this, as a self-taught programmer, I love this more than anything else. Makes my brain analyze more than in games with strategy, but those are still good and fine, they were made for what they are. But this, this is what I want.

    • @MA-jz4yc
      @MA-jz4yc 5 месяцев назад +11

      How did the video taste?

    • @jocularich
      @jocularich 5 месяцев назад

      @@MA-jz4yc he lick it good 😅🤣

    • @keshi5541
      @keshi5541 5 месяцев назад

      ayo licking the video?

  • @ianfernandes7745
    @ianfernandes7745 6 месяцев назад +38

    Great Competition and great comments ! Thank you guys !

  • @sach1n_xd
    @sach1n_xd 6 месяцев назад +60

    we need more of this. i am pretty sure the production level will go up exponentially in coming years. happy to see some fresh content

  • @BayramUysal
    @BayramUysal Месяц назад +1

    I was excited sitting there during the final questions. Both because of the tension of the contestants writing the algorithm flow, "I know this but I can't write it right now", and because I said I know these questions and can solve them (or I did) while they were coding. It was a truly mind-opening experience, watching the video.

  • @wynan
    @wynan 5 месяцев назад +10

    I don't even understand the assignment but I am still cheering for them

  • @deo11
    @deo11 5 месяцев назад +19

    I'd love to try these myself.... watch the competition, pause as contestants start a round, try doing it myself, then either get my own time, or give up, then continue watching; seeing how the contestants did it..... would love it if I could download the testcases 😁

    • @yeetdatcodeboi
      @yeetdatcodeboi 3 месяца назад

      im still trying without but yeah they dropped the ball hard not providing those..

    • @Fahad-et3sc
      @Fahad-et3sc 2 месяца назад

      @@yeetdatcodeboi all problems are on leetcode,, they have a good range of test cases over there

  • @Sg6CrossOver
    @Sg6CrossOver 6 месяцев назад +17

    The jacopo vs keisuke match was intense, winning on the finals seconds was so exciting

  • @rishabhkaushik2468
    @rishabhkaushik2468 5 месяцев назад +19

    I like the way commentators explaining the algo..........bro it seems like a football match :) loving it... we want more of this

  • @zT4_J2_S0z
    @zT4_J2_S0z 5 месяцев назад +4

    The extra round was such a nice touch! Great competition as was last year and the years before! Good job everybody involved!

  • @michielsnoeken5596
    @michielsnoeken5596 Месяц назад +1

    For some reason this has something nostalgic, as if its from 20 years ago!
    So epic though, the passion, the awkwardness, the joy. Wish I was part of that community.

  • @rawcodes
    @rawcodes 5 месяцев назад +5

    I love the fact that Layton was so humble. He even expressed his disapproval in the way the speaker spoke to Patric. His face expression when he said “That was brutal” was funny but genuine.
    Awesome! You truly are the best coder of Sussex, Layton.
    Great job to the whole team. We need more nerdy competition like this.
    Love from Nigeria ❤

    • @newhorizon918
      @newhorizon918 4 месяца назад

      Senegalese like me see this competition with joy and good humor. It is a first for me, a revelation that allows us to make the world a better place.

  • @stephontidd7051
    @stephontidd7051 6 месяцев назад +25

    This was actually enjoyable and as a viewer, it's great seeing how others problem solve. Thanks!!!!

  • @initialy8836
    @initialy8836 6 месяцев назад +20

    I really enjoyed watching this. Kudos to the people behind this competition, Good job

  • @Abdi._.M3
    @Abdi._.M3 6 месяцев назад +7

    I thank youtube algorithm for this recommendation, especially events like this with well educated and peoples that have the same passion as me, for me to learn from you guys. KEEP UP THE GOOD WORK!!!!!!!❤❤

  • @timdithmer9184
    @timdithmer9184 6 месяцев назад +5

    I asked myself why this isn't a thing. Now I know it is a thing. Love it, more of it!

  • @gufranyesilyurt
    @gufranyesilyurt 6 месяцев назад +12

    For R2-G1: You can simply sum all of them and divide by 2 return the int (rounded down) if one of the inputs is not greater than the sum of two others. If so return the sum of two minimum inputs. And if any of the inputs is zero, return min non-zero input.

    • @resresres1
      @resresres1 6 месяцев назад +1

      yeah i honestly didn't think they were that experienced of python coders.

    • @jocularich
      @jocularich 5 месяцев назад

      yes, and the math guy got nervous maybe, so he forgot to visualize and calculate first :D

    • @TheMathias95
      @TheMathias95 4 месяца назад

      ​@@resresres1
      Kinda wild how some of them have "experience" of 5+ years, when their speed and quality looks like 2nd semester students

  • @mshstudio2148
    @mshstudio2148 5 месяцев назад +3

    the commentary is so cool, such a juxtaposition to how calm or quiet coding can be 😂

  • @tst5065
    @tst5065 6 месяцев назад +18

    This is gold....needs billion views
    All thanks to the algorithm for this gem

  • @yanivy1960
    @yanivy1960 6 месяцев назад +5

    This is gold right here man, I started learning Python some time ago and wow I found this video. I loved it.

  • @MOUNTAINSSS964
    @MOUNTAINSSS964 Месяц назад +2

    I just started programming and learning the basics but am enjoying this for some reason even tho I don't understand what's going on wish me luck in my jouney dear programmers .

  • @judevector
    @judevector 5 месяцев назад +3

    I thank God my RUclips algorithm is always delivering to the fullest it knows what I love 😘

  • @Cycleplayer117
    @Cycleplayer117 Месяц назад +2

    This deserves a bigger production

  • @olaitanadesoji3719
    @olaitanadesoji3719 6 месяцев назад +7

    currently watching this and its so interesting !!!!.. for the round between bramble and jo , i think i would have first converted the matrix of lists into two matrixes (one for rows , one for cols) and then loop though each one ,to get my answer

    • @ProfessorChaos1349
      @ProfessorChaos1349 5 месяцев назад +1

      Or compute the factorial of "n" and then get the product of all numbers in each row to see if they equal n!

  • @andrewhu8094
    @andrewhu8094 5 месяцев назад +48

    When I saw Layton solve problem 1, I thought he was a genius and that the competition must have truly attracted the best of the best. Then when I saw the competitors struggle on the second and third problem I knew Layton would win the competition by a big margin.

    • @jesusalejandrorodriguezgar2735
      @jesusalejandrorodriguezgar2735 3 месяца назад +2

      Bruh, specially on the third problem, I got the solution almost immediatly, continued with other things i was doing, and when i came back they still were starting at the blank screen hahaha.

    • @Rizon1985
      @Rizon1985 3 месяца назад +1

      It's kinda nuts. Coding a solution you have a lifetime to learn but understanding the problem is in you from the start.
      I hope a lot of these people end up making websites.

    • @justamanofculture12
      @justamanofculture12 3 месяца назад

      The moment layton started coding at the start i knew he is the real deal

    • @cerebralgeneratedimagery5785
      @cerebralgeneratedimagery5785 3 месяца назад

      To be honest, I solved the first problem about 1 minute before Layton was done using another method of two list comprehensions

    • @filipesrubio4015
      @filipesrubio4015 2 месяца назад

      Haha thats right. These problems are ridiculous... imagine not getting laid and being unable to use a nested loop hahaha

  • @PenAce
    @PenAce 6 месяцев назад +15

    Need more of these competitions around! Keep it up.

  • @Chikowski101
    @Chikowski101 6 месяцев назад +38

    Loved this tournament !! UFC but for coders !! great commentary

  • @TheAlphaWavePodcast
    @TheAlphaWavePodcast 6 месяцев назад +10

    Congratulations! All of you have achieved NERD PRIME!

  • @reyhanarighy155
    @reyhanarighy155 5 месяцев назад +5

    For Game 2, maximize the set and list funtionalities
    def solution(matrix: list[list[int]]) -> bool:
    dimension = len(matrix)
    checked_nums = set(list(range(1, (dimension + 1))))
    for i in range(dimension):
    if not set(matrix[i]) == checked_nums:
    return False

    return True

    • @DookyButter
      @DookyButter Месяц назад

      You don't need *list* in between *set* and *range* in your _checked_nums_ variable. But very solid solution! Better than the one I came up with when I tried before the video.

    • @Barsikspit
      @Barsikspit Месяц назад

      what about columns?

  • @carbyte2673
    @carbyte2673 6 месяцев назад +3

    All the people in there were so cool and vibrant.
    Wish to see more of this!

  • @anthonymarshall.martial1908
    @anthonymarshall.martial1908 6 месяцев назад +4

    Hurray for Layton !!! I have no idea what was going on but was rooting for him from the start 😅

  • @Gbyrd99
    @Gbyrd99 5 месяцев назад +5

    Watching bramble get stun locked on that question was brutal. He managed to cobble together something and was frozen solid for a good 10m. It was interesting to see. The sorting was a trap because if it's a matrix you cannot restructure it. Easiest way to do this generate two sets. One of the original array, the other with the appropriate element in each one. And then check length and voila

    • @vijesh0405
      @vijesh0405 4 месяца назад

      yes he sorted matrix for row-wise checking,so matrix distorted it is not same coloumn wise checking, My approach to solve that question is first calculate xor of all elements from 1 to n , now create a array for row and one for col and fill them with xor intially , now there is a property of xor - same number xor is always 0,so if ith row contains all numbers from 1 to n then (1 to n) xor (ith row xor) must be 0 , same for col
      int xor = 0;
      for(int i=0;i

  • @Rgue-ei7ug
    @Rgue-ei7ug 4 месяца назад

    First couple months coding, learning Python, & this was perfect!! Very cool to witness & motivating as well.

  • @Jackinot
    @Jackinot 4 месяца назад +4

    I've never coded in python but I had an idea for the second problem (checking if all columns and rows of nxn Matrix has all numbers):
    Sort all the rows, then break and return false if on the i-th column there is a number != i, otherwise return true.
    explanation: if all column have all numbers between 1 and n, then after ordering them, the element at the first index would be 1 and the last would be n and everything in between is ordered.
    So the problem boils down to writing the easiest ordering function of a list that you can, stick it in a for loop to order all lists, then check with a while or for loop the if the List[i] = i+1

    • @archiejunio2868
      @archiejunio2868 4 месяца назад +1

      I think you can just check the first list and if its correct then you can compare that list to the rest if it is all equal

    •  3 месяца назад +2

      run it for [[1, 2],[1, 2]] and see what you are missing.

  • @ritamkishore6825
    @ritamkishore6825 4 месяца назад +1

    matix = [[1,2,3],[2, 3, 4],[1, 2, 3],[2, 3, 4]]
    rows = len(matix)
    colums = len(matix[0])
    flag = True
    for i in range(len(matix)):
    row = matix[i]
    for val in row:
    if val > max(rows, colums):
    flag = False
    print(flag)

  • @nyogrson1
    @nyogrson1 6 месяцев назад +4

    Yea, these questions would've taken me an hour to solve...great content!

  • @jellied_fungus
    @jellied_fungus 4 месяца назад

    I now understand people who get rowdy for sports, this was the best thing ive watched in a long time

  • @Abhishek-un5rp
    @Abhishek-un5rp 6 месяцев назад +6

    33:37 For this question R1-G2
    We can first calculate the sum of n numbers using formula and use for loops to check each row is equal to that sum , if it is not equal we can return it on that condition

    • @alvaroflores4371
      @alvaroflores4371 6 месяцев назад +7

      That would expose you to the cases where sum(1 to n) can equal the correct sum, but not contain the required [1 to n]. For example sum of [1,2,3] = 6, but sum of [1,1,4] is also 6. Thus not a valid row.

    • @Abhishek-un5rp
      @Abhishek-un5rp 6 месяцев назад +2

      @@alvaroflores4371 yeah u r right 👍

    • @kumarashutosh-p3n
      @kumarashutosh-p3n 6 месяцев назад

      @@alvaroflores4371 int n = matrix.size();
      set s1;
      set s2;
      for(int i=0;i

    • @TheMathias95
      @TheMathias95 4 месяца назад

      Just cache a set of values from 1 to n and compare each row and each column with aforementioned set

  • @jamesmalin4252
    @jamesmalin4252 4 месяца назад +2

    Awesome work! Thanks for putting this together.

  • @ricardouqueio864
    @ricardouqueio864 5 месяцев назад +9

    I love this! And the amount of cringe is just appropriate for the event 😂😂😂😂

  • @pontshokgalelemagane1332
    @pontshokgalelemagane1332 4 месяца назад

    Surely one of the best I like the fact that even uni students who are just average can compete in this💯💯.

  • @kumarashutosh-p3n
    @kumarashutosh-p3n 6 месяцев назад +3

    in second question we can use hashmap and store frequency of every element out there ultimately the frequency of each element has to be equal to n(target) which is square matrix. if the frequency equals to n then return true otherwise false. 3rd question again we use hashmap and store the indices of the characters of first string. then iterate over the second string and match the indices . if the indices are different swap it and check if they are equal or not.

    • @rajagrawal6758
      @rajagrawal6758 6 месяцев назад +3

      Don't these problems seem too easy?

    • @kumarashutosh-p3n
      @kumarashutosh-p3n 6 месяцев назад +1

      @@rajagrawal6758 some of them are actually. thing is they should atleast come with brute force quickly. but they didn't

    • @rajagrawal6758
      @rajagrawal6758 6 месяцев назад

      @@kumarashutosh-p3n True it's weird how they gave trivial problems.

  • @adityakumarnagar254
    @adityakumarnagar254 5 месяцев назад +2

    I think this is what I needed to take my mind off from other problems. This was awesome.

  • @samattolebay7786
    @samattolebay7786 6 месяцев назад +38

    Lol, how no one noticed in the bonus round Layton just wrote simple return 100 discarding the problem statement to use all numbers from 1 to 10

    • @sergeisavinov535
      @sergeisavinov535 5 месяцев назад +12

      and doesn't use "5".
      If this was not a trap in the conditions of the task. For this one test will work just "return 100"

    • @wgllgw
      @wgllgw 5 месяцев назад +6

      I thought i was on crazy pills.. I had to scroll pretty far down for this comment as well

    • @i3looi2
      @i3looi2 5 месяцев назад +11

      Obviously the TEST function was rigged. He was lacking so many numbers from his equation.
      Also, Layton did not understand the task.

    • @Kmg403
      @Kmg403 3 дня назад

      The commentator picking on Layton saying "I don't think he understands the problem yet, I'm sure he doesn't want to write hundreds of numbers!" clearly did not understand it either lol.

  • @drettlinking
    @drettlinking 2 месяца назад

    I never would have thought ranked LeetCode would be an ESports category. WE NEED MORE OF THIS!

  • @tomatoripper2653
    @tomatoripper2653 5 месяцев назад +5

    This is too addictive to watch,

  • @james2396
    @james2396 5 месяцев назад +2

    You guys absolutely smashed it out the park this year, well done 🎉🎉

  • @CosmicVScode
    @CosmicVScode 6 месяцев назад +7

    awkward af but was awesome. Love that they did this

  • @Barsikspit
    @Barsikspit Месяц назад

    fun recursion for the 5th task.
    def solution(a,b,c):
    ls = sorted([a,b,c])
    a = ls[-1] - 1
    b = ls[1] - 1
    c = ls[0]
    ls = sorted([a,b,c])
    if ls[0] + ls[1] == 0:
    return 1
    return 1 + solution(a, b, c )

  • @derickio
    @derickio 6 месяцев назад +3

    Best idea i've seen in ages, you guys found a hit with this one

  • @dinos80152
    @dinos80152 5 месяцев назад

    Watching this competition is so interesting! We should bring in our daily sync-up to warm the brain!

  • @ruchirmehta
    @ruchirmehta 5 месяцев назад +5

    Reallly, such easy questions!!

    • @TheSinfulFreak
      @TheSinfulFreak 4 месяца назад +1

      agreed, took me 2 minutes to think and code each one. Sad to see how people with multiple years of experience are pretty bad at problem solving.

  • @prosenjeetdey3702
    @prosenjeetdey3702 4 месяца назад +1

    blessed by this beautiful recommendation , we need more competition

  • @Eaglesight02
    @Eaglesight02 6 месяцев назад +19

    Jacopo's solution on R1-G3 is wrong if we take two strings having same alphabets, but different in counts. Eg: s1="aaab", s2="abbb". Here, if we use set to store all alphabets of s1, s2; then we get {a,b}. Difference in positions of characters is two, so Jacopo's solution would return True. But in reality, it's False as s1 has three a's, s2 has three b's. So, we need to take a bit-array or hashmap to store characters and their counts for each string separately, then compare the occurrences for each character.

    • @jacopocalvi7546
      @jacopocalvi7546 6 месяцев назад +1

      Damn, you're right. Well spotted!

    • @meirbek241
      @meirbek241 6 месяцев назад +1

      1st condition: return false if strings have not same number of characters
      2nd condition: return false if there are more than 1 character mismatch
      otherwise just return true

    • @kumarashutosh-p3n
      @kumarashutosh-p3n 6 месяцев назад

      unordered_mapm;
      for(int i=0;i

    • @sohantirpude2455
      @sohantirpude2455 5 месяцев назад

      Yes, you are right. Jacopo's solution is not working on certain cases. But, I think, the approach you mentioned that to store characters and their counts for each string separately, then compare the occurrences for each character, will also fail if s1="abba" and s2="abab". If we match the difference in position of characters then it may work. But in my opinion it's better to create a new string from s2 with swapping and compare with s1.

    • @kumarashutosh-p3n
      @kumarashutosh-p3n 5 месяцев назад

      @@sohantirpude2455i am storing index and since the two strings should have been equal means, the index of alpha should be the same, if it isn't we will swap. in leetcode it's called as buddy strings
      unordered_mapm;
      for(int i=0;i

  • @ykinisha
    @ykinisha 5 месяцев назад

    Something to consider moving forward is showing the solutions for each problem. Hoping to see more of these competitions.

  • @lightyagami7488
    @lightyagami7488 3 месяца назад +5

    This is my first time watching this contest........correct me If I am missing something.....but I think the questions are not that difficult....Can someone please give me a rating of these questions in terms of Codeforces .....it would be really helpful for me to compare.

  • @mtomato4708
    @mtomato4708 5 месяцев назад +1

    Currently doing my computer science degree loved this you got a new subscriber

  • @mithrandir2171
    @mithrandir2171 5 месяцев назад +4

    These are my people!

  • @germanater887
    @germanater887 Месяц назад

    R2 - G1 can be done with a simple comparison im sure:
    You have 3 values:
    find the largest value
    if the sum of the 2 smaller values is less than the larger, return this.
    else return the largest value. eg
    if(a+b < c) return a+b
    else return c

  • @sunshineandrainbow5453
    @sunshineandrainbow5453 6 месяцев назад +4

    I loved it. Thank you so much for posting.

  • @roberto9369
    @roberto9369 5 месяцев назад

    competitors are the neardiest guys ive seen in the world, and I'm a programmer, so I loved them. commentators are awesome. i had a lot of fun watching the matches. keep doing this

  • @mats-5970
    @mats-5970 6 месяцев назад +14

    this was great to watch, keep it up!

  • @yaspersdev
    @yaspersdev 4 месяца назад

    Increible!! yo recién en la universidad he empezado en el mundo de la programación competitiva y siempre uso C++ para las soluciones. Muy interesante lo que han presentado y felicidades a todos los participantes.

  • @01HKM
    @01HKM 2 месяца назад +5

    Sum To 100 is not correctly solved and the test should have failed or am I wrong?
    The task says "You have the numbers from 1 to 10 in order [...] You may also concatenate digits, however they must remain in the original order [...]".
    Layton's line does not include all numbers from 1 to 10 in an order. Example 2 is also wrong, because digit "10" is separated by the symbol * (0 is not included in the given order) and how the heck shall I receive two 5s by inserting symbols?

  • @Madcoe
    @Madcoe 5 месяцев назад +1

    Great work all. Have fun. I appreciate if you share challanges/test cases under this video for us to try. Cheers...

  • @imxande6930
    @imxande6930 6 месяцев назад +5

    wow this is wonderful, love it thanks for sharing fam!!!

  • @nawrasteaches5206
    @nawrasteaches5206 6 месяцев назад +1

    Just wonderful competition. I had some coding classes that work for text analysis in linguistics but you guys are amazing.

  • @crafter505
    @crafter505 6 месяцев назад +14

    We got coders cup b3fore gta 6 💀

  • @Arsencon
    @Arsencon 6 месяцев назад +1

    wow, this channel and competition is a great finding! Thank you, YT algorithm!

  • @SonicJazz-dz5sb
    @SonicJazz-dz5sb 4 месяца назад +2

    Hoping someday I will become great programmer

  • @michaelcoxfitness6089
    @michaelcoxfitness6089 5 месяцев назад +1

    This is awesome!!!! I am so happy to stumble upon this!!

  • @notcountdankula
    @notcountdankula 6 месяцев назад +8

    Looks interesting. Are the questions available on any coding platforms for us to try it ourselves?

    • @huevosrancheros135
      @huevosrancheros135 6 месяцев назад

      If you google the questions you will find the problems on leetcode

  • @rafaeltorres2658
    @rafaeltorres2658 6 месяцев назад +2

    That was way more enjoyable than I ever imagined thank you for creating such a great event

  • @levelupmr8581
    @levelupmr8581 3 месяца назад +4

    Are the anchors comedians lol. Great work anchors

  • @SouwaBeezy
    @SouwaBeezy 6 месяцев назад +1

    Love this! started my journey to become as skilled as these guys. won't be easy but I am here for the ride!

  • @iamyou6555
    @iamyou6555 6 месяцев назад +4

    Really good can’t we have one every week

  • @gray_dragneel
    @gray_dragneel 6 месяцев назад +2

    This was great..hope there will be more competitions like this in future

  • @Mari_Selalu_Berbuat_Kebaikan
    @Mari_Selalu_Berbuat_Kebaikan 6 месяцев назад +3

    Let's always do alot of good ❤️

  • @greektrumpet
    @greektrumpet 3 месяца назад

    I am so happy to see that other people struggle with programming quizzes and its not just me.

  • @basicallyeveryone
    @basicallyeveryone 4 месяца назад +4

    I don't understand how "return 1 + 2 + 3 + 4 + 9 * 10" was accepted as a solution.
    According to my understanding and the examples provided, all numbers from 1 to 10 must be included in the solution.
    If "return 1 + 2 + 3 + 4 + 9 * 10" worked, then a simple "return 2 * 5 * 10" should have worked too, right?
    I assume "return 100" would have solved the problem as well...
    Or was it accepted because of the poor wording, since it doesn't say "you must use each digit exactly once"?

  • @kunalkumarbhoi324
    @kunalkumarbhoi324 2 месяца назад

    Very very exciting as well as interesting 👏🏻👏🏻👏🏻both teams are pro max level coders ❤.

  • @SnafuWorld
    @SnafuWorld 5 месяцев назад +7

    You can feel the social awkwardness in this video. I feel at home.

  • @laurencedale3854
    @laurencedale3854 5 месяцев назад

    This is so good. Great work by the competitors but also the production value is better than loads of eSports!

  • @bhavjotsingh3190
    @bhavjotsingh3190 6 месяцев назад +3

    this is great! Keep it up!

    • @HackSussex
      @HackSussex  6 месяцев назад +2

      Thank you! We run these every year! Glad you enjoyed it

  • @imansanjaya8037
    @imansanjaya8037 4 месяца назад

    This event has been an inspiration for me. I will do something similar in Indonesia.
    Thank you very much for the inspiration.

  • @just-me-and-code
    @just-me-and-code 6 месяцев назад +4

    It was really great watching this.

  • @khalilpetrus1483
    @khalilpetrus1483 5 месяцев назад

    The presenting is exactly what I was expecting. I'm here for all of this.

  • @tech_lover983
    @tech_lover983 5 месяцев назад +18

    Why are these questions so basic?

    • @Pepespizzeria1
      @Pepespizzeria1 5 месяцев назад +4

      A clever person looks for complexity, a genius looks for simplicity

    • @tech_lover983
      @tech_lover983 5 месяцев назад

      @@Pepespizzeria1 Blessed

    • @julian_handpan
      @julian_handpan 4 месяца назад +1

      @@Pepespizzeria1 reply nonsense! The questions are basic for real...

    • @svhuwagv2965
      @svhuwagv2965 4 месяца назад

      The rounds would probably be too long

  • @springcar
    @springcar 6 месяцев назад +2

    your creative teams make great inspiring fire and motivation to us who like create logic shapes. you can grow to meet big effect to code and logic creators. try continue be fire and inspiring . i subscribed

  • @pedro2001
    @pedro2001 6 месяцев назад +6

    I love this video. I’m from Brazil.

  • @henrymishael9457
    @henrymishael9457 6 месяцев назад +2

    I learnt a lot just from the commentary...This was a great tournament

    • @fatteena859
      @fatteena859 6 месяцев назад +1

      Anwhere, anyone… anyway