Git Product home page Git Product logo

data-structures-and-algorithms's Introduction

Hi, I am Akash ๐Ÿ‘‹

I am a software engineer with a love for chai and a passion for writing code.

Socials: LinkedIn โ€ข Twitter โ€ข Peerlist โ€ข Mail


๐Ÿ I am currently a part of the Order Search Team at Dell Inc.

โš—๏ธ You'd mostly find me fiddling around with Node.js, Go, C++, Docker or building CI/CD pipelines with Actions or Travis CI.

Feel free to reach out and connect with me.

~ akashchouhan16

data-structures-and-algorithms's People

Contributors

akashchouhan16 avatar aryan-basu avatar aryan-jha29 avatar bhavya092 avatar debarchan-nayek avatar dheeman-007 avatar dishanp avatar instinctblaze avatar itz-scarecrow avatar mariajz avatar pranav2274 avatar pretam591 avatar radhika-joshi123 avatar rishabhk965 avatar sanjaykumarmodak avatar sohinijrover avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

data-structures-and-algorithms's Issues

Add LC-732 : Design Calendar II Problem

Statement:
A k-booking happens when k events have some non-empty intersection (i.e., there is some time that is common to all k events.)
You are given some events [start, end), and after each given event, return an integer k representing the maximum k-booking between all the previous events.

//Implement the Calendar class:
class Calendar{
 public:
  Calendar() {} /* Initializes the object.*/
  int book(int startDate, int endDate);
  /* Returns an integer k representing the largest integer
      such that there exists a k-booking in the calendar*/
};

Add LC-731 : Design Calendar II Problem

You are implementing a program to use as your calendar. We can add a new event if adding the event will not cause a triple booking.

A triple booking happens when three events have some non-empty intersection (i.e., some moment is common to all the three events).
The event can be represented as a pair of integers start and end that represents a booking on the half-open interval [start, end), the range of real numbers x such that start <= x < end.

Implement the Calendar class:

class Calendar{
   Calendar() {} /*Initializes the calendar object.*/
   bool book(int startDate, int endDate); 
    /*Returns true if the event can be added to the calendar successfully
       without causing a triple booking. Otherwise, return false and do not
       add the event to the calendar.*/
};

LC Problem 2136: Earliest Possible Day of Full Bloom

  • Language accepted: C++
  • Refer this 2min read before making a PR: Contributing guidelines
  • Problem Statement: You have n flower seeds. Every seed must be planted first before it can begin to grow, then bloom. Planting a seed takes time and so does the growth of a seed. You are given two 0-indexed integer arrays plantTime and growTime, of length n each.
    - plantTime[i] is the number of full days it takes you to plant the ith seed. Every day, you can work on planting exactly one seed.
    - You do not have to work on planting the same seed on consecutive days, but the planting of a seed is not complete until you have worked plantTime[i] days on planting it in total.
    • growTime[i] is the number of full days it takes the ith seed to grow after being completely planted. After the last day of its growth, the flower blooms and stays bloomed forever.
    • From the beginning of day 0, you can plant the seeds in any order.
    • Return the earliest possible day where all seeds are blooming.
  • Link: Earliest Possible Day of Full Bloom

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.