sayak2k1maruti/competetivePogramming

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

Opened this issue · 9 comments

Longest Substring Without Repeating Characters

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

What to Do:

  • Go to folder: "\CP\LeetCode\Longest Substring Without Repeating Characters"
  • Take your GitHUB username id like "hrithik339", "hacker-boy", etc or anything which you have.
  • File extension = ".cpp" in this issue.

Problem:

Given a string s, find the length of the longest substring without repeating characters.

Constraints

  • 0 <= s.length <= 5 * 10^4
  • s consists of English letters, digits, symbols and spaces.

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) {
        
    }
};

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

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.

i would like to work on this in cpp

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.

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

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

Don't wait for Assigning just make PR

@sayak2k1maruti Please check my PR #144

Please Assign this to me