leetcode-solutions
My solutions to Leetcode Problems (by razimantv)
Fork_CPP
This repository contain the C++ program from basic to advance. This repository will help you to prepare for the interview questions. (by mashiyathussain2)
leetcode-solutions | Fork_CPP | |
---|---|---|
22 | 1 | |
61 | 15 | |
- | - | |
9.2 | 0.0 | |
4 days ago | about 1 year ago | |
C++ | C++ | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
leetcode-solutions
Posts with mentions or reviews of leetcode-solutions.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-10-01.
-
How can I solve this problem?
This is a 2D prefix sum problem (Check the problems tagged Prefix>Sum>2D in my repository).
-
Can anyone here explain Passing Yearbooks problem?
For more problems like this, check the Permutation> Cycle section here: https://github.com/razimantv/leetcode-solutions
-
Solved Hard#250 with today's weekly (virtually)
All my leetcode solutions are here along with tags. Find today's solutions in the latest commit.
-
Make Array Empty Biweekly Contest
You can't just use (index-displaced) because many positions in between might have already been removed. You need some data structure that can answer questions like "how many numbers in this range have not been removed?" and make updates like "remove this number" efficiently. I did this using a segment tree: https://github.com/razimantv/leetcode-solutions/tree/main/Solutions/M/make-array-empty
-
Code runs fine locally, but won't run on LeetCode
No. I used to answer a lot of programming and math questions on Quora (https://www.quora.com/profile/Raziman-T-V). I also have a GitHub repository of my LeetCode solutions (https://github.com/razimantv/leetcode-solutions)
-
Got TLE on the last problem no matter how I optimized my solution.
Here is my solution: https://github.com/razimantv/leetcode-solutions/tree/main/Solutions/D/difference-between-maximum-and-minimum-price-sum
-
Just solved Problem #1000 with today's daily
If you are interested, all my solutions (mostly C++) are here, along with tags for the algorithms/tricks I used to solve them.
-
Meeting room problem variant
Very similar to maximum profit in job scheduling. Can be done with sorting+dp with binary search: https://github.com/razimantv/leetcode-solutions/tree/main/Solutions/M/maximum-profit-in-job-scheduling
-
Can we do this question with sliding ? if yes then how?
One way to solve this would be to keep a hash map of prefix sums modulo k: https://github.com/razimantv/leetcode-solutions/tree/main/Solutions/C/continuous-subarray-sum
-
Facing wrong answer with implementation of Rabin Karp algorithm, can you help?
Here is my c++ implementation of a similar problem, try to take a look.
Fork_CPP
Posts with mentions or reviews of Fork_CPP.
We have used some of these posts to build our list of alternatives
and similar projects.
-
Contributing on Github using the Github website
I’ve received the permission of Mashiya to use his repository for this post .
What are some alternatives?
When comparing leetcode-solutions and Fork_CPP you can also consider the following projects:
DSA-Bootcamp-Java - This repository consists of the code samples, assignments, and notes for the Java data structures & algorithms + interview preparation bootcamp of WeMakeDevs.
kactl - KTH Algorithm Competition Template Library (... eller KTHs AC-tillverkande lapp)