GithubHelp home page GithubHelp logo

ashishpawar517 / lc-hard-problemset Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 4.0 49 KB

Leetcode hard problmes

License: MIT License

C++ 100.00%
hacktoberfest learngit opensourceforgood hactoberfest-2023 algorithms cpp data-structures leetcode leetcode-solutions

lc-hard-problemset's Introduction

LC-Hard-Problemset

Leetcode hard problems and Solutions in C++/Java/Python

Problemset

# Title Solution Time Space Tag
1707 Maximum XOR With an Element From Array C++ O(nlogn + mlogm + nlogk + mlogk) O(nlogk) bit-manipulation
2151 Maximum Good People Based on Statements C++ O(n^2 * 2^n) O(1) Bitmasks Brute Force
1714 Sum Of Special Evenly-Spaced Elements In Array C++ O(n * sqrt(n)) O(n * sqrt(n)) arrays
1998 GCD Sort of an Array C++ O(nlogn + m) O(n + m) Union Find Sieve of Eratosthenes
1559 Detect Cycles in 2D Grid C++ O(m * n) O(m * n) Union Find BFS
1862 Sum of Floored pairs C++
2151 Maximum Good People Based on Statements C++ O(n^2 * 2^n) O(1) Bitmasks Brute Force
1714 Sum Of Special Evenly-Spaced Elements In Array C++ O(n * sqrt(n)) O(n * sqrt(n)) arrays
1998 GCD Sort of an Array C++ O(nlogn + m) O(n + m) Union Find Sieve of Eratosthenes
1970 Last Day Where You Can Still Cross C++ O(m * n) O(m * n) Union Find
1559 Detect Cycles in 2D Grid C++ O(m * n) O(m * n) Union Find BFS
2035 Partition Array Into Two Arrays to Minimize Sum Difference C++ O(n * 2^n) O(2^n) Meet in the Middle
1259 Handshakes That Don't Cross C++ O(n) O(1) Catalan Number DP
1012 Numbers With Repeated Digits C++ O(n * 2^n) O(2^n) math
2106 Maximum Fruits Harvested After at Most K Steps C++ O(n) O(n) prefix-sum
2122 Recover the Original Array C++ O(n^2) O(n)
2301 Match Substring After Replacement C++ O(n^k) O(m) brute-force

lc-hard-problemset's People

Contributors

ashishpawar517 avatar dhanshreebarthare avatar galaxyshark 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.