Блог пользователя darkshadows

Автор darkshadows, 6 лет назад, По-английски

Throughout the year, Google Code Jam hosts online Kickstart rounds to give participants the opportunity to develop their coding skills, get acquainted with Code Jam’s competition arena, and get a glimpse into the programming skills needed for a technical career at Google.

Each Kickstart round gives participants 3 hours to solve challenging, algorithmic problems developed by Google engineers. Participating is a fun way to grow your coding skills—and potentially explore opportunities at Google.

Inviting you to solve some fun and interesting problems on Sunday, Sept 30, 2018 19:00 UTC.

Dashboard can be accessed here during the contest. Problem analysis will be published soon after the contest.

  • Проголосовать: нравится
  • +61
  • Проголосовать: не нравится

»
6 лет назад, # |
  Проголосовать: нравится +27 Проголосовать: не нравится

What kind of rank can get the attention of a recruiter? Can anyone please share?

Thanks in advance.

  • »
    »
    6 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится +49 Проголосовать: не нравится

    5th place is not enough from my experience (Kickstart Round C 2018)

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится +16 Проголосовать: не нравится

      This is actually quite interesting. I've heard from people getting interviews with a rank as high as 350, so something tells me that it isn't rank itself that they use to offer interviews. Maybe your region/country would make a difference?

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится +6 Проголосовать: не нравится

      I got 3rd place in Kickstart Round C. Back then, I was really really hyped because I thought I would get an email or something from Google. No contact whatsoever :(

  • »
    »
    6 лет назад, # ^ |
    Rev. 2   Проголосовать: нравится +10 Проголосовать: не нравится

    27th place was enough for SWE interviews in 2016. (It was APAC and not Kickstart then)

»
6 лет назад, # |
  Проголосовать: нравится +9 Проголосовать: не нравится
»
6 лет назад, # |
  Проголосовать: нравится +2 Проголосовать: не нравится

Hey, I tried problem-B's large dataset case but had doubt even in the analysis (here), can anyone help?

When f(v) has no food assigned its says to give any food to v but if(l(f(v))>l(v)) and d(v)>d(f(v)) then there may be case that f(f(v)) has already a food assigned(say F1) and thus if assign F1(which means F2 to v) average distance will more compared to when we assign F2 to f(v)(which means F1 to v).

So how can we count the minimum average distance cases is this way?

P.S.: If there is any other method please enlighten :)

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится +6 Проголосовать: не нравится

    Hi, your can solve it in this way.

    Sort the roads by distance in increasing order. Initialize graph with no road with V nodes. From lowest distance to highest connect on initialized graph if one of endpoints have not connected before to any other node(i.e. no neighbor). By doing this our graph converged N disconnected trees, where answer is 2^N. (there is special case when zero road is included.). We can color connected tree with two color(Fruit and vegetable as color), such that every neighbor is different color, in two way. This lead to 2^N. Also note that each node is connected to at least one other node.

    Why this way of connecting is minimum? When we connect we use the roads which are the smallest distance roads for one of its endpoints.

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Can it also be said that the required answer is equal to the number of different MST of the given graph?

      • »
        »
        »
        »
        6 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        No, in MST makes tree where each node is reachable from any node. But in this case it is possible to use less than V-1 roads to connect, such as second example.

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      @bayram Thanks, this is quite an inspiring way of solving!

    • »
      »
      »
      6 лет назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Please explain the special case when road length is zero.

      • »
        »
        »
        »
        6 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        Say there are 3 vertices, 3, 4 and 5 and edge weight connecting 3 and 4 is 0, and say edge weight is 10 for edge connecting 3 and 5. Suppose, the nearest neighbour to 5 is 3, i.e at distance of 10. Hence, we can assign any of the labels either fruit or vegetable to vertex 5, since in this case labels of 3 and 4 will be opposite and 5 is at same distance with 3 as well as 4. That's it.

      • »
        »
        »
        »
        6 лет назад, # ^ |
          Проголосовать: нравится 0 Проголосовать: не нравится

        Suppose you have a graph after connecting some roads and suppose road A to B is zero distance. First of all A's and B's color should be different. If we make them same then it will not be minimum.

        Any node(except A and B) which is directly connected to A or B does not necessarily chose according to A's or B's color, because if it reaches to A then it can also reach to B and vice versa. So we can think each them as disconnected tree where there is two ways to color. For example.
        9 8
        1 2 6
        3 4 0
        5 6 7
        3 5 1
        4 6 2
        5 7 3
        7 8 4
        6 9 5

        We make new graph which includes all roads except (5,6) with distance 7. Only nodes 5 and 6 have roads which connects to 3 or 4. So we can think that [5,7,8] and [6,9] as new disconnected tree. As a result N will be change by -1 + 2 + 1.
        -1 for tree which includes zero road.
        +2 for newly disconnect trees.
        +1 for coloring endpoints of zero road. (A is vegetable, B is fruit and vice versa).

        In short, we should count roads which connects to zero road endpoints in our new graph and add that number to N.