sayak2k1maruti / competetivePogramming

Data Structures, Algorithms and CompetetiveProgramming Related Problems in Multiple Languages
6 stars 46 forks source link

Write a Code in C++ to achieve below functionality (Longest Substring Without Repeating Characters) #11

Open sayak2k1maruti opened 3 years ago

sayak2k1maruti commented 3 years ago

Longest Substring Without Repeating Characters

Problem Link: https://leetcode.com/problems/longest-substring-without-repeating-characters/

What to Do:

Constraints

Example 1:

Input: s = "abcabcbb"
Output: 3
Explanation: The answer is "abc", with the length of 3

Example 2:

Input: s = "bbbbb"
Output: 1
Explanation: The answer is "b", with the length of 1.

Example 3:

Input: s = "pwwkew"
Output: 3
Explanation: The answer is "wke", with the length of 3.
Notice that the answer must be a substring, "pwke" is a subsequence and not a substring.

Example 4:

Input: s = ""
Output: 0

Template Function :

class Solution {
public:
    int lengthOfLongestSubstring(string s) {

    }
};
prahuljose commented 3 years ago

hey @sayak2k1maruti I can do this, please assign this to me!

sayak2k1maruti commented 3 years ago

hey @sayak2k1maruti I can do this, please assign this to me!

No need to wait for getting assigned. Just go ahead and Raise PRs after doing the needed code.

abhijeet-crypto commented 3 years ago

i would like to work on this in cpp

sayak2k1maruti commented 3 years ago

i would like to work on this in cpp

No need to wait for getting assigned. Just go ahead and Raise PRs after doing the needed code.

abhijeet-crypto commented 3 years ago

@sayak2k1maruti review my PR #64

aryanayush012 commented 2 years ago

I want to contribute. pleaase assign this to me. @prahuljose

sayak2k1maruti commented 2 years ago

I want to contribute. pleaase assign this to me. @prahuljose

Don't wait for Assigning just make PR

Arika008 commented 2 years ago

@sayak2k1maruti Please check my PR #144

akash-1107 commented 2 years ago

Please Assign this to me