Git Product home page Git Product logo

Manshi Mohanta's Projects

hackerrank icon hackerrank

HackerRank solutions in C/Java/JavaScript/Python/SQL

minesweeper-game icon minesweeper-game

You are presented with a field of squares. Some squares contain mines (bombs), others don't. If you click on a square containing a bomb, you lose. If you manage to click all the squares (without clicking on any bombs) you win.

sorting-comparator icon sorting-comparator

The players are first sorted by decreasing score and then sorted alphabetically by name.

the-good-ranges icon the-good-ranges

Consider you have a set A. A Good Range is the largest range that contains only one element from the set A. Now you are provided with the number range 1 to N and M queries. In each query, an integer X is added to set and for each query, you have to output the sum of left and right border indices of all the Good Ranges. For example. N = 10, and in the first query 2 is added to set A. The Good Ranges contain the range [1,10] and the sum is 11. Here [2,2] is also a range containing only one element from the set but it isn't the largest one. Now suppose 5 is added to the set, then the largest range containing only 2 is [1,4] and largest containing only is [3,10], so the sum is 1+4+3+10=18

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.