cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Print the Longest Common Substring in C++, Java and Python

Open prashant-mahanta opened this issue 7 years ago • 10 comments

This is a(n):

  • [x] New algorithm
  • [x] Update to an existing algorithm
  • [ ] Error
  • [ ] Proposal to the Repository

Details:

Available: Link The code is available only for cpp to find the length of the longest common substring. Space complexity: O(n^2) Time Complexity: O(n^2)

My request: Print the Longest Common Substring Space Complexity: O(n) Time complexity: O(n^2) Instead of maintaining a 2-D matrix of m*n we can only keep consequtive two rows which reduces space complexity to 2*n i.e., O(n).

Can I work on this? Also should I create a new folder or add my code into the same folder?

prashant-mahanta avatar Mar 27 '19 21:03 prashant-mahanta

Hey! Can I work on the Python code for this ?

Bhairavi-shah avatar Mar 29 '19 14:03 Bhairavi-shah

@Bhairavi-shah Go for it! Make sure to reference this issue when doing so.

arnavb avatar Mar 29 '19 14:03 arnavb

Hi! Can I work on this in Java?

jigyasak05 avatar Mar 31 '19 12:03 jigyasak05

@jigyasak05 Go for it! Make sure to reference this issue when doing so.

arnavb avatar Mar 31 '19 13:03 arnavb

@arnavb Sir, I had already asked for C++, Java, and Python in the issue. How can others be assigned on this issue?

prashant-mahanta avatar Apr 01 '19 18:04 prashant-mahanta

Ah, I wasn't aware of this @prashant-mahanta. @jigyasak05 looks like Prashant has already begun working on this issue. Please pick a different language or algorithm to work on instead! Sorry for any inconvenience to the both of you.

arnavb avatar Apr 01 '19 19:04 arnavb

Alright

jigyasak05 avatar Apr 01 '19 19:04 jigyasak05

I want to provide a solution in Java. Please assign that part to me.

Priya-Raut avatar Mar 01 '20 01:03 Priya-Raut

I can provide the solution on java and c++. please assign this problem to me

shristi428 avatar Mar 01 '20 09:03 shristi428

I want to contribute to this issue as a part of GSSoC 2020.

mehakmalhotra1 avatar Mar 02 '20 06:03 mehakmalhotra1