Longest Substring Without Repeating Characters - LeetCode
Problem Link
C++ Code
class Solution {
public:
int lengthOfLongestSubstring(string s) {
int n = s.size();
vector<bool> isPresent(256, false);
int i=0, j=0;
int maxLength = 0;
while(j<n) {
i...