Code Monkey home page Code Monkey logo

scala-assignment's Introduction

Scala-Assignment by Shivam Raj

1. Bucketise the given array[Double] into buckets having range interval (x, x+0.049).

0.000 - 0.049

0.050 - 0.099

0.100 - 0.149

0.150 - 0.199

0.200 - 0.249

0.250 - 0.299

0.300 - 0.349

0.350 - 0.399 ... ... 100.000 - 100.049

Sample -

12.05, 12.03, 10.33, 11.45, 13.50

Output- [12.050-12.099, 12.050-12.099, 10.300-10.349, 11.450-11.499, 13.500-13.549]

2. For given players statistics, Found the below:

  • Player with the best highest run scored.

  • Top 5 players by run scored.

  • Top 5 players by wicket taken.

  • Rank players with overall performance give weight 5x to wicket taken and (5/100)x to run scored.

  • Sample

    Year, PlayerName, Country, Matches, Runs, Wickets

    2021, Sam, India, 23, 2300, 3

    2021, Ram, India, 23, 300, 30

    2021, Mano, India, 23, 300, 13

scala-assignment's People

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.