Solved! Leetcode 2073. Time Needed to Buy Tickets

Table of ContentsDescription: Time Needed to Buy TicketsExample 1Example 2ConstraintsSolution 1Time Complexity Space ComplexitySolution 2Time ComplexitySpace Complexity Description: Time Needed to Buy Tickets There are n people in a line queuing to buy tickets, where the 0th person is at the front of the line and the (n - 1)th person is at the back of the line. You are given a 0-indexed integer array tickets of length n where the ...

Solved! Leetcode 950. Reveal Cards In Increasing Order

Table of ContentsDescription Reveal Cards In Increasing OrderExample 1Example 2ConstraintsSolutionTime ComplexitySpace Complexity Description Reveal Cards In Increasing Order You are given an integer array deck. There is a deck of cards where every card has a unique integer. The integer on the ith card is deck[i]. You can order the deck in any order you want. Initially, all the ...

Emulation vs Simulation

While both the terms refer to mimicking the behavior of something, they, however, are not the same in the sense of- degree to which they duplicate the behavior along with some traditional meaning associated with them. In the earlier years of its inception, the term Emulation was used only for hardware based simulations, which has ...