5. Longest Palindromic Substring|| Java || Leetcode || Hindi
Вставка
- Опубліковано 12 вер 2024
- 5. Longest Palindromic Substring|| Java || Leetcode || Hindi
code link:github.com/cod...
Link of the question: leetcode.com/p...
DSA through Java-Leetcode Questions Playlist:
• DSA through Java || Le...
TCS Coding Question and Solution Playlist:
• TCS NQT Coding Questio...
Programs in C Language Playlist:
• Programs in C Language
Programs in Java Playlist:
• Programs in Java
Join Telegram Group for Notes, Quiz, Placement opportunities and more:
Link: t.me/+T_7XOYFY...
Time complexity (n^3)
runtime complextity is 1825 ms
Nice explaination sir..... please make a video on longest substring without repeating characters. !!!...
Hello
public class Substring {
public static int longestSubstringWithoutRepetition(String s) {
int l =0;
int r=0;
int res=0;
HashSet hs = new HashSet();
while(r
int lengthOfLongestSubstring(string s) {
int n=s.size();
//if(n==0) return 1;
unordered_map ump;
int l=0,r=0;
int ans=0;
while(r
More ❤
thank you❤
bro why is my code showing memory limit exceeded
bool isPalindrome(string s,int i,int j){
while(i
checkout this code: github.com/codingsphere10/Leetcode-Questions/blob/main/Leetcode_5.java
TLE