DSC-Banasthali-Vidyapith / Code-Crossroad

This project contains the carefully compiled Data Structures & Algorithm questions asked by the companies that visit Banasthali Vidyapith on-campus.
MIT License
55 stars 78 forks source link

Longest Substring Without Repeating Characters #110

Closed aditi944 closed 2 years ago

aditi944 commented 3 years ago

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

Language- C++

time complexity- O(n) Space complexity- O(n)

I would like to work on this issue using hash map or declaring a vector of same size. Please assign me this.