Giter Site home page Giter Site logo

chalup / jdd-14-dev-contest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from danielstankiewicz/jdd-14-dev-contest

0.0 1.0 0.0 149 KB

Allegro JDD.14 dev contest - Chief Troublemaker Officer

License: Apache License 2.0

Groovy 47.71% Java 52.29%

jdd-14-dev-contest's Introduction

Allegro JDD.14 dev contest - Chief Troublemaker Officer

Story

You are a team lead in The Company. A new CTO has joined this month. There are rumors that he is going to fire your colleagues and hire his own.

He calls you to his office.
He hands you out a piece of paper.
Damn, that's over, he is going to fire you, but wait!

"This is the new structure of IT Department," he said. "Prepare the contracts for new hires and do something with fired."

"OK boss, no problem, but there are hundreds of guys working here. Who exactly is to be fired? And who is to be hired?"

"Listen." He frowns. "You are still a coder, aren't you? Just compare old structure with new one and find the difference!"

Dev contest

Your task is to implement a diff method for comparing two trees with the employee structure.

Method that you should fill in, is in the StructureDiff class.

As a result, the method should return an Changes with three sets:

  • fired guys,
  • hired guys
  • and the guys whose salary has changed.
public class StructureDiff {
    public Changes calculate(Employee oldCTO, Employee newCTO){
        // your code goes here
        throw new NotImplementedException();
    }
}

We have also prepared bunch of failing tests to make your life easier.

Tools

  • Java 8, Groovy, Gradle
  • any library you need

Criteria

  • code passes all unit tests and is fast
  • make your code small, clean and sexy
  • leverage lambdas or maybe use some smart tool?

Applying

Jury

Tips

Come to our booth for some tips.

Fame

The best solutions might be published on allegrotech.io/blog.

Awards

  • tablet Nexus 7 for the best solution
  • Dice+, booby prize


[allegrotech.io](http://allegrotech.io)

jdd-14-dev-contest's People

Contributors

bartoszwalacik avatar chalup avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.