Thursday, October 2, 2025

To check later palindrom what mistake i did. Earn Inte

 /*

A palindrome is a word that is the same when read left-to-right and right-to-left.  For example, “racecar” is a palindrome.

Given a string, find all of the substrings that are also palindromes.

Example input:

  "racecar"

Example output:

   [“racecar”, “aceca”, “cec”, “r”, “a”, “c”, “e”, “c”, “a”, “r”]
*/
import java.io.*;
import java.util.*;


class Solution {
  public static void main(String[] args) {

    String str = "racecar";
    ArrayList<String> resultSet = new ArrayList<String>();
   /*  
   for(int i = 0; i< str.length(); i++)
    {
       for(int j = i; j< str.length(); j++)
       {
          String subStr =str.substring(i, j+1);
          if(isPalindrome(subStr))
          {
              resultSet.add(subStr);
              System.out.println(subStr);
          }
       }
    }
    */
   int left = 0;
   int right = str.length();
   for(int i = 0; i< str.length(); i++)
   {
          int oddString = isPalindrome(str ,i,i);
          int evenString = isPalindrome(str ,i,i+1);

         
    }
   
   
  }


public static int isPalindrome(String str, int left, int right)
    {
        while(left>=0 && right < str.length() && str.charAt(left) == str.charAt(right))
        {
           
              left--;
              right ++;
               System.out.println(str.substring(left+1, right));
         
        }
       // System.out.println(str.substring(left+1, right));
        return right-left-1;
       
    }

    public static Boolean isPalindrome(String str)
    {
        int left = 0;
        int right = str.length() -1;
        for(int i = left; i< right; i++, right--)
        {
          if(str.charAt(i) != str.charAt(right))
          {
            return false;
          }
         
        }
        return true;
    }

   
}

Wednesday, September 24, 2025

Monday, September 22, 2025

Things to do with 6 year old

7 ki ho jaaye toh Chromebook le lo uske liye-  Cheap laptop hai jisse woh typing and kuch aur educational stuff learn kar legi

Piano
Swimming
Cycling

YouTube pe Dr Binocs kids used to like
Bluey cartoon bhi acha hai. Both parents and kids learn good behavior

Stem experiment games

Doctor Jupiter My First Science Kit

PlayShifu Globe for Children – Orboot Earth

https://www.amazon.com/dp/B075WW3JKQ?ref=cm_sw_r_cso_wa_apin_dp_FZJCTFH5VDEZGD468CWX&ref_=cm_sw_r_cso_wa_apin_dp_FZJCTFH5VDEZGD468CWX&social_share=cm_sw_r_cso_wa_apin_dp_FZJCTFH5VDEZGD468CWX&titleSource=true&th=1

https://www.amazon.com/dp/B09XGMHGJ3?ref=cm_sw_r_cso_wa_apin_dp_3TXDBNMEC7EVR8TM2HK9&ref_=cm_sw_r_cso_wa_apin_dp_3TXDBNMEC7EVR8TM2HK9&social_share=cm_sw_r_cso_wa_apin_dp_3TXDBNMEC7EVR8TM2HK9&titleSource=true&th=1


Friday, September 12, 2025

My mumma's best matar paneer

 




My mumma's best Dal Makhani recipe

 


Baati

4 cup atta

1 cup sooji 

1 and 1/2 spoon curd

1/2 satche eno 

Ajwani 

Salt

4-5 spoon ghee 

Pani


Make dough little tough not too soft


After making dough keep it for rest for 10 min while covering it 


Then preheat the air fry at 360 f for 8 min


To cook Batı air fry 380 degree f for 20 min

Temp you can increase since in description its air fryer not oven

Edamame Avocado chaat

 Boil Edamame. Add avocado mash, lemon, black salt, black pepper, salt (if required), tomato, chanachur.

To check later palindrom what mistake i did. Earn Inte

  /* A palindrome is a word that is the same when read left-to-right and right-to-left.  For example, “racecar” is a palindrome. Given a str...