Write a Code in C++ to achieve below functionality (Longest Substring Without Repeating Characters)
Opened this issue · 9 comments
sayak2k1maruti commented
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) {
}
};
prahuljose commented
hey @sayak2k1maruti I can do this, please assign this to me!
sayak2k1maruti commented
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
i would like to work on this in cpp
sayak2k1maruti commented
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
@sayak2k1maruti review my PR #64
aryanayush012 commented
I want to contribute. pleaase assign this to me. @prahuljose
sayak2k1maruti commented
I want to contribute. pleaase assign this to me. @prahuljose
Don't wait for Assigning just make PR
Arika008 commented
@sayak2k1maruti Please check my PR #144
akash-1107 commented
Please Assign this to me