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...

КОМЕНТАРІ • 11

  • @funwithkickbuttowski4610
    @funwithkickbuttowski4610 6 місяців тому +5

    Time complexity (n^3)

  • @Anuj_pal_1
    @Anuj_pal_1 7 місяців тому +2

    runtime complextity is 1825 ms

  • @Nshupriya
    @Nshupriya 6 місяців тому

    Nice explaination sir..... please make a video on longest substring without repeating characters. !!!...

    • @Chirag12390
      @Chirag12390 5 місяців тому

      Hello

    • @pranaywaghmare1405
      @pranaywaghmare1405 4 місяці тому +1

      public class Substring {

      public static int longestSubstringWithoutRepetition(String s) {



      int l =0;

      int r=0;

      int res=0;


      HashSet hs = new HashSet();


      while(r

    • @diwakarkumar6286
      @diwakarkumar6286 3 місяці тому

      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

  • @monugit9
    @monugit9 7 місяців тому +1

    More ❤

  • @diwakarkumar6286
    @diwakarkumar6286 3 місяці тому +1

    bro why is my code showing memory limit exceeded
    bool isPalindrome(string s,int i,int j){
    while(i

    • @CodingSphere
      @CodingSphere  3 місяці тому

      checkout this code: github.com/codingsphere10/Leetcode-Questions/blob/main/Leetcode_5.java

  • @Interesting_facts_with_Pallavi
    @Interesting_facts_with_Pallavi 28 днів тому

    TLE