DP level 2

class Solution {
    
    //using rabin karp rolling hash algo to replace text.substring ->O(n) to O(1)
    //which makes the whole algo O(n^2)
    private static final int PRIME = 101;
    private static final int MOD = 1_000_000_007;
    public int distinctEchoSubstrings(String text) {
        /*  Q66 of dp playlist , echo substring(ess)
        */
        
        int n = text.length();
        
        // dp[i][j] : hash value of text[i:j]
        int[][] dp = new int[n][n];
        for (int i = 0; i < n; i++) {
            long hash = 0;
            for (int j = i; j < n; j++) {
                hash = hash * PRIME + (text.charAt(j) - 'a' + 1);
                hash %= MOD;
                dp[i][j] = (int) hash;
            }
        }

        //make a HS to store distinct echo substrings
        HashSet<Integer> set = new HashSet<>();

        //checking all ess of length 2->n/2
        for(int len = 1 ; len <= n/2 ; len++){

            /* we keep checking characters at a gap of length and increasing count
            if chars are equal we keep the count going for potential ess ,if chars
            are not equal our current potential ess is ruined and we start checking
            again for new ess from count = 0

            if count = len , we add the substring in the HS and count-- to check if
            the next characters are making and ess , basically it means deleting
            a character from behind and continue checking to find next ess
            */
            int count = 0;
            for(int i = 0,j = len ;j < n ; i++ , j++){
                
                char ch1 = text.charAt(i) , ch2 = text.charAt(j);

                if(ch1 == ch2)
                count ++;

                else
                count = 0;

                if(count == len){
                //here instead of substring function we store a unique hashvalue for i to jth string in dp
                    set.add(dp[i][j]);
                    count --;
                }
            }
        }
        System.out.print(set);
        return set.size();
    }
}
class Solution {
    public int distinctEchoSubstrings(String text) {
        /*  Q66 of dp playlist , echo substring(ess)
        */

        int n = text.length();
        //make a HS to store distinct echo substrings
        HashSet<String> set = new HashSet<>();

        //checking all ess of length 2->n/2
        for(int len = 1 ; len <= n/2 ; len++){

            /* we keep checking characters at a gap of length and increasing count
            if chars are equal we keep the count going for potential ess ,if chars
            are not equal our current potential ess is ruined and we start checking
            again for new ess from count = 0

            if count = len , we add the substring in the HS and count-- to check if
            the next characters are making and ess , basically it means deleting
            a character from behind and continue checking to find next ess
            */
            int count = 0;
            for(int i = 0,j = len ;j < n ; i++ , j++){
                
                char ch1 = text.charAt(i) , ch2 = text.charAt(j);

                if(ch1 == ch2)
                count ++;

                else
                count = 0;

                if(count == len){
                    String str = text.substring(i - (len-1), j+1);
                    set.add(str);
                    count --;
                }
            }
        }
        System.out.print(set);
        return set.size();
    }
}
class Solution {
    public boolean canCross(int[] stones) {
        /* Q64 of dp playlist , in this question we need to store the jumps which
        has been made from the previous stone for that we make a HM<stones , HS>
        to store the allowed jumps

        we traverse the array and keep updating the next stones allowed jumps,
        if we end up on any stone which has its jumps hashset = 0 we return false
        if we end on last stone we return true;
        */
    
        //make a hashmap to store allowed jumps
        HashMap<Integer,HashSet<Integer>> map = new HashMap<>();
        int n = stones.length;

        //fill the hashmap and initialise the HS
        for(int i = 0 ; i < n ; i++)
        map.put(stones[i] , new HashSet<>());

        //adding jumps for 0th and 1st stone;
        map.get(0).add(1);
        
        //traverse the array
        for(int i = 0 ; i < n ; i++){
            
            //taking out allowed jumps
            HashSet<Integer> jumps = map.get(stones[i]);

            //check all jumps in jumps hashset
            for(int jump : jumps){
                System.out.print(" " + stones[i] +" "+ jump+ "\n" );
                
                boolean validJump = map.containsKey(stones[i] + jump);
                
                //if after jumping we end on a valid stone update the jumps of 
                //the valid stone 
                if(validJump == true){
                    HashSet<Integer> nextStone = map.get(stones[i] + jump);

                    nextStone.add(jump);
                    nextStone.add(jump + 1);
                    
                    //we cannot add 0 jumps
                    if(jump != 1)
                    nextStone.add(jump - 1);

                    map.put(stones[i] + jump , nextStone);
                    
                }
            }
        }

        if(map.get(stones[n-1]).size() > 0){
            // System.out.println(map);
            return true;
        }

        else{
            // System.out.println(map);
            return false;
        }
        
    }
}







class Solution {
    public double champagneTower(int poured, int query_row, int query_glass) {
        /* Q63 of dp playlist , the tower is nothing but a 2d array , make a 2d dp
        of size k+1(to be on safe side) , and simply find spare for each glass
        and pass on spare/2 to both glasses below it 

        travel the dp from left to right 
        */
        double[][] dp = new double[102][102];
        dp[0][0] =(double) poured;   //adding water to the first glass

        for(int i = 0 ; i <= query_row ; i++){

            for(int j = 0 ; j <= i ; j++){
                //calculating spare and filling both glasses directly below
                //if the current glass has overflow 
                if(dp[i][j] > 1.0){
                    double spare = dp[i][j] - 1.0;
                    dp[i+1][j] += spare / 2.0; 
                    dp[i+1][j+1] += spare / 2.0;

                    dp[i][j] = 1.0;
                }
            }
        }

        return dp[query_row][query_glass];
    }
}
class Solution {
    public int nthSuperUglyNumber(int n, int[] primes) {
        /* Q62 of dp playlist , every cell denotes ith ugly number . here we make
        a pointers array to store pointer for all factors which are in primes 
        array. rest same approach as ugly numbers.

        we apply 2 loops 1-> to check the minimum of all values given by factors
        and 2-> to update the indexes of pointers
        */
        int m = primes.length;
        
        long[] dp = new long[n+1];   //we have to return nth ugly number
        dp[1] = 1;  //1 is the first ugly number

        int[] pointers = new int[m];
        Arrays.fill(pointers , 1);  //all primes pointers points at one in begning

        for(int i = 2 ; i <= n ;i++){

            //1st loop to find min of all values
            long min = Integer.MAX_VALUE;
            for(int j = 0 ; j < m ; j++){
                long valf = (long)primes[j] * (long)dp[pointers[j]];

                min = Math.min(min , valf);
            }
            dp[i] = min;    //storing min value in dp

            //now incrementing indexes of pointers for primes which gave min value
            for(int j = 0 ; j < m ;j++){
                long valf = (long)primes[j] * (long)dp[pointers[j]];
                
                if(valf == min)
                pointers[j] ++;
            }
            
        }
        
        // for(int i = 0 ;i <= n ; i++)
        // System.out.print(dp[i] + " ");
        
        return (int)dp[n];
    }
}
class Solution {
    public boolean isUgly(int n) {
        /* Q61 dp playlist , every cell denote ith ugly number . we make 3 
        pointers for 2,3,5 keeping every pointer at 1 . we traverse the dp and 
        find next ugly number by multiplying prev ugly number by all 3 factors
        and taking minimum of all and moving pointer which gave minimum value by
        1.
        -> if more than 1 pointer gives the same minimum value we both all such
        pointers by 1
        */
        if(n == 1)return true;

        int[] dp = new int[n+1];
        dp[1] = 1;  //1 is 1st ugly number
        
        int f2 = 1 , f3 = 1 , f5 = 1;

        for(int i = 2 ; i <= n ; i++){
            int val2 = 2 * dp[f2] , val3 = 3 * dp[f3] , val5 = 5 * dp[f5];

            //ugly number will be min of all vals
            dp[i] = Math.min(val2 , Math.min(val3,val5));

            //updating pointers
            if(dp[i] == val2) f2++;
            if(dp[i] == val3) f3++;
            if(dp[i] == val5) f5++;

            //if before reaching n 
            if(dp[i] == n)
            return true;

            // else if(dp[i] > n)
            // return false;
        }

        for(int i = 0 ;i < n ; i++)
        System.out.print(dp[i] + " ");

        return false;
    }
}
class Solution {
    public int minInsertions(String s) {
        /* Q60 of dp playlist , find longest pallindromic subsequnce 
        then minimum insertion to make strings pallindromic becomes
                    str.length() - LPS;
        */

        //code of LPS
        int n = s.length();
        int[][] dp = new int[n][n];

        for(int gap = 0 ; gap < n ; gap++){
            for(int i = 0 , j = gap ; j < n ; j++,i++){

                if(gap == 0)
                dp[i][j] = 1;

                else if(gap == 1)
                dp[i][j] = s.charAt(i)==s.charAt(j) ? 2 :1;

                else{
                    char ch1 = s.charAt(i) , ch2 = s.charAt(j);

                    if(ch1 == ch2)
                    dp[i][j] = dp[i+1][j-1] + 2;

                    else
                    dp[i][j] = Math.max(dp[i][j-1] , dp[i+1][j]);
                }
            }
        }

        //minimum insertions becomes
        return s.length() - dp[0][n-1];

    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;

class GFG{
    public static void main(String args[])throws IOException
    {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(in.readLine());
        while(t-- > 0){
            int N = Integer.parseInt(in.readLine());
            String a[] = in.readLine().trim().split("\\s+");
            int arr[] = new int[N];
            for(int i = 0; i < N;i++)
                arr[i] = Integer.parseInt(a[i]);
            
            Solution ob = new Solution();
            System.out.println(ob.offerings(N, arr));
        }
    }
}
// } Driver Code Ends


//User function Template for Java

class Solution{
    int offerings(int n, int arr[]){
        /* Q59 of dp playlist , we traverse from left to right the temple and assign
        prev + 1 if we encounter a greater value else 1 , we do the same thing from right
        to left .
        
        we do this method inorder to get correct estimation of the no.downhill .for eg
        if uphill is 1 2 3 4 and then downhilll will be 3 2 1 0 -1 -2 -3 but we cant 
        give negative offering therefore we traverse from left to right also to get
        correct estimation of by taking max of (left ,right)
        */
        int left[] = new int[n] , right[] = new int[n];
        
        //left to right traverse
        left[0] = 1;
        for(int i = 1 ; i < n ;i++){
            
            //if we encounter greater temple we offer prev+1 offering
            if(arr[i] > arr[i-1])
            left[i] = left[i-1] + 1;
            
            //else offering resets to 1
            else
            left[i] = 1;
        }
        
        //similiarly for right to left 
        right[n-1] = 1;
        for(int i = n-2 ; i >=0 ; i--){
            
            if(arr[i] > arr[i+1])
            right[i] = right[i+1] +1;
            
            else
            right[i] = 1;
        }
        
        int ans = 0;
        
        //our answer will be correct estimation of temples offering which we will get 
        //by taking max of left and right for each temple
        for(int i = 0 ;i < n ; i++)
        ans += Math.max(left[i],right[i]);
        
        return ans;
    }
}
class Solution {
    public boolean wordBreak(String s, List<String> wordDict) {
        /* Q58 of dp , every cell will store total no.of sentences which can be
        made using ith string , we have solved this question for total no. of 
        sentences which can be made from s for words in dictionary
        */

        HashSet<String> set = new HashSet<>(wordDict);
        int n = s.length();
        int[] dp = new int[n];

        for(int i =0 ; i < n ;i++){
            //checking all suffix of ith string
            for(int j = 0 ; j <= i  ; j++){
                String temp = s.substring(j , i+1);

                //if ith string is in dictionary 
                if(set.contains(temp)){
                    /* if the suffix word is in dictionary add that word in the
                    of all sentences which are made by dp[j-1];
                    */
                    if(j > 0)
                    dp[i] += dp[j-1];

                    //if the whole substring exist in the dictionary add +1 for
                    //that individual word
                    else //j==0
                    dp[i] += 1;
                }
            }
        }

        //if dp[n-1] has any valid sentences it will be greater than 0
        return dp[n-1] > 0 ? true : false;
    }
} 
class Solution {
    public int numberOfArithmeticSlices(int[] nums) {
        /* Q57 of dp playlist , every cell denotes total no. of subarrays APs 
        of size >=2 ending at that ith element. here dp is an array of HM
        
        we make a HM[] to store common difference -> no.of Ap for all elements
        */
        int n = nums.length , ans = 0;
        //making HM
        HashMap<Integer,Integer>[] map = new HashMap[n];

        //iniitalizing all hashmap in hashmap[]
        for(int i = 0 ; i < n ; i++)
        map[i] = new HashMap<>();

        //common approach of LIS
        for(int i = 1 ; i < n ;i++){

            for(int j = i-1 ; j >= 0 ; j--){
                long cd = (long)nums[i]-(long)nums[j];

            //edge case if cd goes out of integer range
            if(cd <= Integer.MIN_VALUE || cd >= Integer.MAX_VALUE)continue;
            
        /*we traverse the array in LIS fashion to store subarray ap of size >=2
        for each element if at any moment we find that the common difference 
        found by nums[i] - nums[j] already exists that means current element 
        is going to be the 3rd or more member of the AP so now total no. of
        AP's  of length >=3 increases by 1 and we add to the answer */
                if(map[j].containsKey((int)cd)){
                    int AP = map[j].get((int)cd);

                    map[i].put((int)cd , map[i].getOrDefault((int)cd,0) + AP+1);
                    ans += AP;
                }
        /* if its a new (cd then we just add it to the map and they become a 2
        sized ap , if in the future some number has same common difference it
        will add to this AP 
        */
                else
                map[i].put((int)cd , map[i].getOrDefault((int)cd,0)+1);

            }
        }
        return ans;
    }
}
class Solution {
    public int numberOfArithmeticSlices(int[] nums) {
        /* Q56 of dp playlist , every cell denotes no. of subarrays of dp which
        ends in ith element , our answer will be total sum of all such subarrays
        stored in dp
        */

        //making dp
        int n = nums.length;

        if( n < 3) return 0;    //we need >= 3 elements for an AP

        int[] dp = new int[n];

        //we skip the first 2 elements 
        int ans = 0 ;
        for(int i = 2 ; i < n ; i++){
            int val1 = nums[i] - nums[i-1];
            int val2 = nums[i-1] - nums[i-2];
            
            /*we check if the common difference is same ith element will have 
            +1 ap than the previous element
            */
            if(val1 == val2)
            dp[i] = dp[i-1] +1;

            else
            dp[i] = 0;
            
            //answer will be sum of all 
            ans += dp[i];
        }

        return ans;
    }
}
int n = arr.length;
 
		int[] winSum = new int[n];
 
		for(int i = 0; i <= n - k; i++){
 
            if(i == 0){
 
                for(int j = 0; j < k; j++){
 
                    winSum[i] += arr[j];
 
                }
 
            }else{
 
                winSum[i] = winSum[i - 1] + arr[i + k - 1] - arr[i - 1];
 
            }
 
        }
 
        
 
		int[][] dp = new int[m + 1][arr.length + 1];
 
		for(int i = 0; i < dp.length; i++){
 
		    for(int j = 0; j < dp[0].length; j++){
 
		        if(i == 0){
 
		            dp[i][j] = 0;
 
		        }else if(j < i * k){
 
		            dp[i][j] = 0;
 
		        }else{
 
		            dp[i][j] = Math.max(dp[i][j - 1], dp[i - 1][j - k] + winSum[j - k]);
 
		        }
 
		    }
 
		}
 
		return dp[m][arr.length];
// Java program to find Max sum
// of M non-overlapping subarray
// of size K in an Array

import java.io.*;

class GFG
{
// calculating presum of array.
// presum[i] is going to store
// prefix sum of subarray of
// size k beginning with arr[i]
static void calculatePresumArray(int presum[],
								int arr[],
								int n, int k)
{
	for (int i = 0; i < k; i++)
	presum[0] += arr[i];

	// store sum of array index i to i+k
	// in presum array at index i of it.
	for (int i = 1; i <= n - k; i++)
	presum[i] += presum[i - 1] + arr[i + k - 1] -
								arr[i - 1];
}

// calculating maximum sum of
// m non overlapping array
static int maxSumMnonOverlappingSubarray(int presum[],
										int m, int size,
										int k, int start)
{
	// if m is zero then no need
	// any array of any size so
	// return 0.
	if (m == 0)
		return 0;

	// if start is greater then the
	// size of presum array return 0.
	if (start > size - 1)
		return 0;

	int mx = 0;

	// if including subarray of size k
	int includeMax = presum[start] +
			maxSumMnonOverlappingSubarray(presum,
					m - 1, size, k, start + k);

	// if excluding element and searching
	// in all next possible subarrays
	int excludeMax =
			maxSumMnonOverlappingSubarray(presum,
						m, size, k, start + 1);

	// return max
	return Math.max(includeMax, excludeMax);
}

// Driver code
public static void main (String[] args)
{
	int arr[] = { 2, 10, 7, 18, 5, 33, 0 };
	int n = arr.length;
	int m = 3, k = 1;
	int presum[] = new int[n + 1 - k] ;
	calculatePresumArray(presum, arr, n, k);
	
	// resulting presum array
	// will have a size = n+1-k
	System.out.println(maxSumMnonOverlappingSubarray(presum,
										m, n + 1 - k, k, 0));
}
}

// This code is contributed by anuj_67.
class Solution {
    public int[] maxSumOfThreeSubarrays(int[] nums, int k) {
        /* Q54 of dp playlist
        */

        //making 3 arrays left ,right and PSA
        int n = nums.length;
        int[] left = new int[n] , right = new int[n] , psa = new int[n];

        //making prefix sum array
        for(int i = 0 ;i < n ;i++){
            if(i==0)
            psa[i] = nums[i];
            
            else 
            psa[i] = psa[i-1] + nums[i];
        }

        //now making left and right dp arrays
        int sum1 = 0 , sum2 = 0;
        for(int i = 0 , j = n-1 ; i < n ; i++ ,j--){

            if(i < k){
                sum1 += nums[i];
                left[i] = sum1;
            }
            else{
                sum1 += nums[i] - nums[i-k];
                left[i] = Math.max(sum1 , left[i-1]);
            }

            if(j+k >= n){
                sum2 += nums[j];
                right[j] = sum2;
            }
            else{
                sum2 += nums[j] - nums[j+k];
                right[j] = Math.max(sum2 , right[j+1]);
            }
        }

        //now traversing the middle array and finding max combination of 
        //left + middle + right and also finding the indexes of all 3 arrays
        
        int ans = Integer.MIN_VALUE;
        int li = -1 , mi = -1 , ri = -1;    //left idx ,middle idx , right idx
        for(int i = k ; i <= n - 2*k ; i++){
            int middle = psa[i + k -1] - psa[i-1];
            
            int val = left[i-1] + right[i+k] + middle;
            
            if(val > ans){
                ans = val;
                li = left[i-1] ; mi = i ; ri = right[i+k];
            }
        }

        // System.out.println(li + " " + mi + " " + ri);
        /* now that we have the indexes of all 3 we can find lexiographically
        first index of all 3 subarray by storing the first value which comes 
        for left ,right
        */
        

        // for(int i = 0 ;i < n ; i++)
        // System.out.print(left[i] + " ");

        // System.out.println();

        // for(int i = 0 ;i < n ; i++)
        // System.out.print(right[i] + " ");
        
        // System.out.println();
        
        //finding lexiographically first index of left by comparing value of Li
        
        for(int i = k-1 ; i <= mi-1 ; i++){
            if(psa[i] - (i-k < 0 ? 0 : psa[i-k])==li){
                li = i-k+1;
                break;
            }
        }

        //finding lexiographically first index of right by comparing value of Ri
        for(int i = mi + (2 * k)-1 ; i < n ; i++){
            if(psa[i] - psa[i-k] == ri){
                ri = i-k+1;
                break;
            }
        }

        // System.out.println(li + " " + mi + " " + ri);

        int[] list = {li , mi , ri};
        return list;
    }
}









class Solution {
    
    public int function(int[] nums , int x , int y){
        //making dp 
        int n = nums.length;
        int[] dp1 = new int[n];     //dp for MSA of x size
        int[] dp2 = new int[n];     //dp for MSA of y size

        int sum1 = 0 , sum2 = 0;
        for(int i = 0 , j = n-1 ; i < n ; i++ , j--){
            int val = nums[i];
            //if ith index is smaller than x store sum only
            if(i < x){
                sum1 += val;
                dp1[i] = sum1;
            }
            //else check which is larger previous MSAx or sum including current 
            //element
            else{
                sum1 += nums[i] - nums[i-x];
                dp1[i] = Math.max(dp1[i-1] ,sum1);
            }

            int val2 = nums[j];

            //we fill 2nd array right to left 
            if(j + y  >= n){
                sum2 += val2;
                dp2[j] = sum2;
            }
            //else check which is larger previous MSAy or sum including current 
            //element
            else{
                sum2 += nums[j] - nums[j+y];
                dp2[j] = Math.max(dp2[j+1] , sum2);
            }
        }

        int ans = 0;

        //assuming x size MSA to be first and y size MSA to be 2nd
        for(int i = x-1 ; i < n-y ; i++)
        ans = Math.max(ans , dp1[i] + dp2[i+1]);

        return ans;
    }
    
    public int maxSumTwoNoOverlap(int[] nums, int firstLen, int secondLen) {
        /* Q53 dp playlist ,we use kadane's algo to find MSA for x size and y
        size respectively for every element and then take max(MSAx + MSAy)for
        all indexes

        we fill 2nd dp right to left and 1st dp left to right

        similiarly we do the same this time assuming y size has occured first 
        and then x size has occured and do the same

        finally we return max value of the two values obtained
        */
        
        //assuming firstlen exists 1st and secondlen exists 2nd
        int ans1 = function(nums , firstLen , secondLen);

        //assuming firstlen exists 2nd and secondlen exists 1st
        int ans2 = function(nums , secondLen , firstLen);

        return Math.max(ans1 , ans2);
    }
}





//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;

class GFG {
    public static void main(String args[]) throws IOException {
        BufferedReader read =
            new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(read.readLine());
        while (t-- > 0) {
            
            String s = read.readLine();
            Solution ob = new Solution();
            System.out.println(ob.maxSubstring(s));
        }
    }
}
// } Driver Code Ends


//User function Template for Java

class Solution {
    int maxSubstring(String s) {
        /* Q52 of dp playlist , making 0's to 1 and 1's to -1 and then applying
        kadane's algo to find max sum sub array which will also give use the 
        max difference between 0's and 1's
        */
        
        //applying kadanes
        int csum = 0 , omax = Integer.MIN_VALUE;
        
        for(int i =0 ; i < s.length() ; i++){
            char ch = s.charAt(i);
            int val = 0;
            
            if(ch == '0')
            val = 1;
            
            else
            val = -1;
            
            if(csum > 0)
            csum += val;
            
            else
            csum = val;
            
            omax = Math.max(csum , omax);
        }
        return omax;
    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;
class GfG
{
    public static void main(String args[])
        {
            Scanner sc = new Scanner(System.in);
            int t = sc.nextInt();
            while(t-->0)
                {
                    int n = sc.nextInt();
                    Solution ob = new Solution();
                    System.out.println(ob.getCount(n));
                }
        }
}    
// } Driver Code Ends


//User function Template for Java

class Solution
{
	public long getCount(int n)
	{
	    /*Q51 dp playlist , 
		*/
		long ans = 0;
		//make dp , keep no.of presses on rows and keypad nums on cols
		long[][] dp = new long[n+1][10];
		
		//store the info of which keypads can be pressed for which keypads
		int[][] data = {
		    {0,8},
		    {1,2,4},
            {1,2,3,5},
            {3,2,6},
            {4,1,5,7},
            {4,5,6,2,8},
            {3,6,9,5},
            {4,7,8},
            {5,7,8,9,0},
            {6,8,9}
		};
	
		//i==0 will be all 0 by default
		for(int i = 1 ; i <= n ; i++){
		    
		    for(int j = 0 ; j <= 9 ; j++){
		        
		        //if 1st row only 1 number can be created with 1 press
		        if(i==1)
		        dp[i][j] = 1;
		        
		        /* if more than 1 press add all the (i-1)th press numbers generated
		        for all numbers which can be pressed after current key stored in data[]
		        */
		        else{
		            for(int prev : data[j])
		            dp[i][j] += dp[i-1][prev];
		        }
		    }
		}
		
		//total numbers can be created with n presses will be sum of last row 
		for(int j = 0; j <= 9 ; j++)
		ans += dp[n][j];
		
		return ans;
	}
}



import static java.lang.Math.max;
import static java.lang.Math.min;
import static java.lang.Math.abs;
import static java.lang.System.out;
import java.util.*;
import java.io.*;
import java.math.*;

public class main {
    
    public static int solution(String s1 , String s2 ){//s2 is target
        //tabulization approach -> every cell denotes total no. of way of making 
        //ith string from jth string if only deletion is allowed
        
        //make dp with target on rows and source on coloumns
        int n = s1.length() , m = s2.length();
        int dp[][] = new int[m+1][n+1];
        
        for(int i = m ; i>=0 ; i--){
            for(int j = n ; j>=0 ; j--){
                //if last cell ->1
                if(i == m & j==n)
                    dp[i][j] =1;
                //if last row ->1
                else if(i == m)
                    dp[i][j] = 1;
                //if last col -> 0
                else if(j == n)
                    dp[i][j] = 0;
                
                //rest of the dp
                else{
                    char ch1 = s2.charAt(i) , ch2 = s1.charAt(j);
                    //if chars are not equal we remove character from source
                    if(ch1 != ch2)
                        dp[i][j] = dp[i][j+1];
                    
                    //if chars are equal we remove character from source & we match
                    //both characters
                    else
                        dp[i][j] = dp[i+1][j+1] + dp[i][j+1];
                }
            }
        }
        
        for(int i = 0 ; i < dp.length ; i++){
            for(int j = 0 ; j < dp[0].length ; j++)
                System.out.print(dp[i][j] + " ");
            
            System.out.println();
        }
        return dp[0][0];
    }
    public static void main(String[] args) throws Exception {   
         Scanner scn = new Scanner(System.in);
        String s1 = scn.next();
        String s2 = scn.next();
        
        int[][] dp = new int[s1.length()][s2.length()];
        
        System.out.println(solution(s1, s2 ));
    }
}
import static java.lang.Math.max;
import static java.lang.Math.min;
import static java.lang.Math.abs;
import static java.lang.System.out;
import java.util.*;
import java.io.*;
import java.math.*;

public class main {
    
    public static int solution(String s1 , String s2 , int si ,int ti , int[][] dp){
        //base case if target ends
        if(ti == s2.length())
            return 1;
        
        //if source string ends
        else if(si == s1.length())
            return 0;
        
        //memoization , if answer is already calculated return it
        if(dp[si][ti] != -1)
            return dp[si][ti];
        
        //taking out characters
        char ch1 = s1.charAt(si) , ch2 = s2.charAt(ti);
        
        int totalways = 0;
        //if chars are not equal we delete source character and give a call
        if(ch1 != ch2)
            totalways = solution(s1 , s2 , si+1 , ti , dp);
        
        //if chars are equal we give 2 calls 1 with both matching other with removing
        //only source character
        else{
            int tw1 = solution(s1,s2,si+1,ti+1,dp);
            int tw2 = solution(s1,s2,si+1,ti,dp);
            
            totalways = tw1 + tw2;
        }
        
        dp[si][ti] = totalways;
        
        return totalways;
    }
    public static void main(String[] args) throws Exception {   
         Scanner scn = new Scanner(System.in);
        String s1 = scn.next();
        String s2 = scn.next();
        
        int[][] dp = new int[s1.length()][s2.length()];
        
        for(int i = 0 ; i < dp.length ; i++){
            for(int j = 0 ; j < dp[0].length ; j++)
                dp[i][j] = -1;
        }
        
        System.out.println(solution(s1, s2 , 0 ,0 , dp));
    }
}
import java.util.* ;
import java.io.*; 
 
public class Solution {

	public static int highwayBillboard(int[] billboards, int[] revenue, int m, int x) {
	 	//making a HM to store billboards and their revenue
		 HashMap<Integer,Integer> map = new HashMap<>();

		 for(int i = 0 ; i < billboards.length ; i++)
		 map.put(billboards[i],revenue[i]);

		 //making dp 
		 int dp[] = new int[m+1];	//+1 for 0th mile
		 dp[0] = 0;
		 
		 for(int i =1 ; i <= m ; i++){

			 //if there exists a billboard on ith mile
			 if(map.containsKey(i)){
				 int boardNotInstalled = dp[i-1];
				 int boardInstalled = map.get(i);

				//we add dp[i- x-1] only when ith mile is greater than x+1
					if(i >= x+1)
					boardInstalled += dp[i- x-1];
				 dp[i] = Math.max(boardInstalled,boardNotInstalled);
			 }
			 else
			 dp[i] = dp[i-1];
		 }

		 return dp[m];
	}

}
import java.util.* ;
import java.io.*; 
 
public class Solution {

	public static int highwayBillboard(int[] billboards, int[] revenue, int m, int x) {
		/* Q49 dp playlist ,first approach same as LIS , we find max while
		applying LIS here we have to make sure 2 billboards are placed at a
		greater distance of x , which becomes the constraint between i and j
		*/
			int ans = Integer.MIN_VALUE;
			int dp[] = new int[revenue.length];
			dp[0]=revenue[0];
			
			for(int i = 1 ; i < dp.length ;i++){
				
				int profit = revenue[i];
				for(int j = i-1 ; j >=0 ; j--){
					int potential = dp[j] + revenue[i];

					if(billboards[i] - billboards[j] > x)
					profit = Math.max(potential , profit);
				}
				dp[i] = profit;

				ans = Math.max(ans , dp[i]);
			}
			return ans;
		
	}

}
class Solution {
    
    public boolean isValid(int ni , int nj , int n ){

        if(ni < 0 || nj < 0 || ni >= n || nj >= n)
        return false;

        return true;
    }
    public double knightProbability(int n, int k, int row, int col) {
        /* Q48 in dp playlist ,current represent current instance of the board,
        next represent next instance of the board in the end we swap curr &
        next and make next to 0 again so that we can use it store the prob of
        next moves which will impact the board cells

        in the end we loop over the latest board and add all the probibilites
        on all cell which will give us probibility that knight remains on the 
        board
        */

        double[][] curr = new double[n][n];
        double[][] next = new double[n][n];

        //making a direction array to loop over for the knights 8 moves
        int[][] dir = {{2,1},{2,-1},{1,2},{1,-2},{-2,1},{-2,-1},{-1,2},{-1,-2}};

        //for the very first instance probibility of center cell will be 1
        curr[row][col] = 1;

        //looping for k moves
        for(int moves = 0 ; moves < k ; moves++){
            
        //looping the current board and storing effect of knight move on next
            for(int i = 0 ; i < n ; i++ ){

                for(int j = 0 ; j < n ; j++){
                    
                    if(curr[i][j] != 0){
                        int ni = 0 , nj = 0;    //next i , next j
                        for(int d = 0 ; d < 8 ; d++){
                            ni = i + dir[d][0];
                            nj = j + dir[d][1];

                            if(isValid(ni,nj,n))
                            next[ni][nj] += curr[i][j]/8.0;
                        }
                    }
                }
            }
        //to store the probibilities of next move we do the following 
            curr = next;
            next = new double[n][n];
        }

        //now we add all the probibilites of the latest board and return it 
        double prob = 0;
        for(int i = 0 ; i < n ; i++){
            for(int j = 0 ; j < n ; j++)
            prob += curr[i][j];
        }

        return prob;
    }
}









class Solution {
    public int cherryPickup(int[][] grid) {
        int n = grid.length;
        int[][][][] dp = new int[n][n][n][n];
        return cherry(0 , 0 , 0 , 0 , grid , dp , n);
    }

    public static int cherry(int r1 , int c1 , int r2 , int c2 , int[][] grid ,int[][][][] dp , int n)
    {
        //if invalid move return -infinity as there is no way to reach last cell
        if(r1 >= n || r2 >= n || c1 >= n ||
        c2 >= n || grid[r1][c1] == -1 || grid[r2][c2] == -1)
        return -1;

        //if 1 person is at last cell it means other will also be at last cell
        if(r1 == n - 1 && c2 == n - 1)
        return grid[r1][c1];
        
        //if answer is already stored in memoization return it
        if(dp[r1][c1][r2][c2] != 0)
        return dp[r1][c1][r2][c2];

        int cherries = 0;
        
        //if both person are at same cell , add it only once 
        if(r1 == r2 && c1 == c2)
        cherries += grid[r1][c1];

        else
        cherries += grid[r1][c1] + grid[r2][c2];

        int f1 = cherry(r1 , c1+1 , r2 , c2+1 , grid,dp,n);  //hh
        int f2 = cherry(r1 , c1+1 , r2+1 , c2 , grid,dp,n);  //hv
        int f3 = cherry(r1+1 , c1 , r2+1 , c2 , grid,dp,n);  //vv
        int f4 = cherry(r1+1 , c1 , r2 , c2+1 , grid,dp,n);  //vh

        cherries += Math.max(Math.max(f1,f2),Math.max(f3,f4));
        dp[r1][c1][r2][c2] = cherries;
        return cherries;
    }
}
class Solution {
    public int superEggDrop(int eggs, int floors) {
        //dp ques 46 of playlist


        //if floors == 1 return 1 , if 0 return 0 ;
        if(floors == 0) return 0 ;
        if(floors == 1) return 1;  
        if(eggs == 0)  return -1;
        if(eggs == 1) return floors;    //minimum attempts will be total floors

        //let eggs be on rows and floors be on cols

        //+1 for 0 eggs and 0 floors
        int dp[][] = new int[eggs+1][floors+1]; 

        //1st row ->invalid , 2nd row -> no.of floors will be answer ,1st col->0
        for(int i = 1 ; i < eggs+1 ;i++){
            for(int j = 1 ; j < floors+1 ; j++){

                if(i == 1)
                dp[i][j] = j;

                else{
                    // taking max of all options and then taking min of those
    
                    int min = Integer.MAX_VALUE;
                    for(int b = j-1 , a = 0 ; b>=0 ; a++ , b--){
                        int breaks = dp[i][b];  //egg breaks
                        int safe = dp[i-1][a];   //egg doesn't breaks

                        int val = Math.max(safe , breaks);
                        min = Math.min(val , min);
                    }
                    dp[i][j] = min+1;
                }
            }
        }
        
        return dp[eggs][floors];
    }
}






class Solution {
    public boolean PredictTheWinner(int[] arr) {
        //dp playlist ques - 45 , use of gap strategy
        
        //finding total
        int n = arr.length , total = 0;

        for(int i = 0 ; i < n ; i++)
        total += arr[i];

        //making the dp
        int [][]dp = new int[n][n];
        
        //traversing & handling trivial cases and rest of the dp
        for(int gap = 0 ; gap <  n ; gap++){
            
            for(int i = 0 , j = gap ; j < n ; i++ , j++){
                
                //when only one coin
                if(gap == 0)
                dp[i][j] = arr[i];  //i==j
                
                //when only 2 coin, you take maximum of 2
                else if(gap == 1)
                dp[i][j] = Math.max(arr[i],arr[j]);
                
                //when more than 2 coins
                else{
                    /* if you chose ith coin , the opponent will choose the
                    next coin such that you get minimum of next choice
                    */
                    int cost1 = arr[i] + Math.min(dp[i+2][j],dp[i+1][j-1]);
                    
                    /* if you chose ith coin , the opponent will choose the
                    next coin such that you get minimum of next choice
                    */
                    int cost2 = arr[j] + Math.min(dp[i+1][j-1] , dp[i][j-2]);
                    
                    //but you will make choices such that you get max of cost1
                    //and cost2
                    dp[i][j] = Math.max(cost1 , cost2);
                }
            }
        }
        //now your final maximum score is in dp[0][n-1] , opponent score will be
        int opponent = total - dp[0][n-1];
        
        //if opponent score is greater than yours return false else true
        return opponent > dp[0][n-1] ? false : true;
    }
}








//{ Driver Code Starts
import java.util.*;
import java.io.*;
import java.lang.*;

class OptimalStrategy
{
    public static void main (String[] args) {
        
        //taking input using Scanner class
        Scanner sc = new Scanner(System.in);
        
        //taking total number of testcases
        int t = sc.nextInt();
        
        while(t-- > 0)
        {
            //taking number of elements
            int n = sc.nextInt();
            int arr[] = new int[n];
            
            //inserting the elements
            for(int i = 0; i < n; i++)
                arr[i] = sc.nextInt();
                
           //calling the countMaximum() method of class solve
           System.out.println(new solve().countMaximum(arr, n)); 
        }
    }
    
    
}
// } Driver Code Ends



class solve
{
    //Function to find the maximum possible amount of money we can win.
    static long countMaximum(int arr[], int n)
    {
        //dp playlist ques - 45 , use of gap strategy
        
        //making the dp
        int [][]dp = new int[n][n];
        
        //traversing & handling trivial cases and rest of the dp
        for(int gap = 0 ; gap <  n ; gap++){
            
            for(int i = 0 , j = gap ; j < n ; i++ , j++){
                
                //when only one coin
                if(gap == 0)
                dp[i][j] = arr[i];  //i==j
                
                //when only 2 coin, you take maximum of 2
                else if(gap == 1)
                dp[i][j] = Math.max(arr[i],arr[j]);
                
                //when more than 2 coins
                else{
                    /* if you chose ith coin , the opponent will choose the next coin
                    such that you get minimum of next choice
                    */
                    int cost1 = arr[i] + Math.min(dp[i+2][j],dp[i+1][j-1]);
                    
                    /* if you chose ith coin , the opponent will choose the next coin
                    such that you get minimum of next choice
                    */
                    
                    int cost2 = arr[j] + Math.min(dp[i+1][j-1] , dp[i][j-2]);
                    
                    
                    //but you will make choices such that you get max of cost1 and cost2
                    dp[i][j] = Math.max(cost1 , cost2);
                }
            }
        }
        
        return dp[0][n-1];
        //returning answer
    }
}
  
  
  
  
  
  
  
  
  
  
  //{ Driver Code Starts
import java.util.*;
import java.io.*;
import java.lang.*;

class OptimalStrategy
{
    public static void main (String[] args) {
        
        //taking input using Scanner class
        Scanner sc = new Scanner(System.in);
        
        //taking total number of testcases
        int t = sc.nextInt();
        
        while(t-- > 0)
        {
            //taking number of elements
            int n = sc.nextInt();
            int arr[] = new int[n];
            
            //inserting the elements
            for(int i = 0; i < n; i++)
                arr[i] = sc.nextInt();
                
           //calling the countMaximum() method of class solve
           System.out.println(new solve().countMaximum(arr, n)); 
        }
    }
    
    
}
// } Driver Code Ends



class solve
{
    //Function to find the maximum possible amount of money we can win.
    static long countMaximum(int arr[], int n)
    {
        //dp playlist ques - 45 , use of gap strategy
        
        //making the dp
        int [][]dp = new int[n][n];
        
        //traversing & handling trivial cases and rest of the dp
        for(int gap = 0 ; gap <  n ; gap++){
            
            for(int i = 0 , j = gap ; j < n ; i++ , j++){
                
                //when only one coin
                if(gap == 0)
                dp[i][j] = arr[i];  //i==j
                
                //when only 2 coin, you take maximum of 2
                else if(gap == 1)
                dp[i][j] = Math.max(arr[i],arr[j]);
                
                //when more than 2 coins
                else{
                    /* if you chose ith coin , the opponent will choose the next coin
                    such that you get minimum of next choice
                    */
                    int cost1 = arr[i] + Math.min(dp[i+2][j],dp[i+1][j-1]);
                    
                    /* if you chose ith coin , the opponent will choose the next coin
                    such that you get minimum of next choice
                    */
                    
                    int cost2 = arr[j] + Math.min(dp[i+1][j-1] , dp[i][j-2]);
                    
                    
                    //but you will make choices such that you get max of cost1 and cost2
                    dp[i][j] = Math.max(cost1 , cost2);
                }
            }
        }
        
        return dp[0][n-1];
        //returning answer
    }
}
  
  
  
  
  
  
  
  
  
  
  
//{ Driver Code Starts
//Initial Template for Java

import java.util.*;
import java.lang.*;
import java.io.*;

class GFG {
	public static void main(String[] args) throws IOException
	{
	        BufferedReader br =
            new BufferedReader(new InputStreamReader(System.in));
        int t =
            Integer.parseInt(br.readLine().trim()); // Inputting the testcases
        while(t-->0)
        {
            long n = Long.parseLong(br.readLine().trim());
            long a[] = new long[(int)(n)];
            // long getAnswer[] = new long[(int)(n)];
            String inputLine[] = br.readLine().trim().split(" ");
            for (int i = 0; i < n; i++) {
                a[i] = Long.parseLong(inputLine[i]);
            }
            long k = Long.parseLong(br.readLine().trim());
            
            Compute obj = new Compute();
            System.out.println(obj.maxSumWithK(a, n, k));
            
        }
	}
}


// } Driver Code Ends


//User function Template for Java


class Compute {
    
    public long maxSumWithK(long arr[], long n, long k)
    {
        //applying kadanes and storing answers
        long msa[] = new long[arr.length];
        msa[0] = arr[0];
        long csum = arr[0]; 
        for(int i = 1 ; i < arr.length ; i++){
            
            if(csum > 0)
            csum += arr[i];
            
            else
            csum = arr[i];
            
            msa[i] = csum;
        }
        
        // for(int i = 0 ; i < arr.length ; i++)
        // System.out.print(msa[i] + " ");
        
        // System.out.println();
        
        //finding ans of first window
        long exactK = 0 , ans = Integer.MIN_VALUE;
        
        for(int i = 0 ; i < (int)k ; i++)
        exactK += arr[i];
        
        ans = Math.max(ans , exactK);
        //moving the window through rest of the array 
        
        for(int j = (int)k; j < arr.length ; j++){
            
            exactK += arr[j] - arr[j - (int)k];
            
            long atleastK = exactK + msa[j- (int)k];
            
            ans = Math.max(ans , exactK);
            ans = Math.max(ans , atleastK);
        }
        //returning answer
        return ans;
    }
}
















class Solution {
    public int maxSubArray(int[] nums) {
        //kadane's algorithm will be used to find maximum subarray
        
        //current sum , overall max subarray
        int csum = nums[0] , omax = nums[0] , n = nums.length;

        for(int i =1 ; i < n ; i++){
            
            int value = nums[i];

            //if previous train is +ve jump into it 
            if(csum >= 0)
            csum += value;

            //else start your own
            else
            csum = value;

            //update max
            omax = Math.max(omax , csum);
        }

        return omax;
    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;
class GfG
{
    public static void main(String args[])
        {
            Scanner sc = new Scanner(System.in);
            int t = sc.nextInt();
            while(t-->0)
                {
                    String X = sc.next();
                    String Y = sc.next();
                    int costX = sc.nextInt();
                    int costY = sc.nextInt();
                    
                   
                    Solution ob = new Solution();
                    System.out.println(ob.findMinCost(X,Y,costX,costY));
                }
        }
}    
// } Driver Code Ends


//User function Template for Java

class Solution
{
	public int findMinCost(String s1, String s2, int costX, int costY)
	{
		//similiar to Leetcode 712, minimum cost(MC)
 
        //every cell will store MC for ith string to be equal to jth string
 
        int m = s1.length() , n = s2.length();
        int[][] dp = new int[m+1][n+1];     //+1 for empty string
 
        //last row and last col will be 0
        
        for(int i = m; i>=0 ;i--){
 
            for(int j = n ; j>=0 ; j--){
                
                //last cell
                if(i == m && j == n)
                dp[i][j] = 0;
                
                //last col , we will have to delete all chars to match "-"
                else if(j == n)
                dp[i][j] = dp[i+1][j] + costX;
 
                //last row , we will have to delete all chars to match "-"
                else if(i == m)
                dp[i][j] = dp[i][j+1] + costY;
 
                //ROD - rest of the dp
                else{
                    //if chars are equal check diagonally forward
                    if(s1.charAt(i) == s2.charAt(j))
                    dp[i][j] = dp[i+1][j+1];
                    
                    /*removing first char of str1 and checking MC with ros str2
                    and vice versa ...and also removing both and checking
                    diagonally....and taking minimum of all and adding the
                    the cost value of character removed
                    */
                    else{
                        int MC1 = dp[i+1][j] + costX;
                        int MC2 = dp[i][j+1] + costY;
                        int MC3 = dp[i+1][j+1] + costX + costY;
                        dp[i][j] = Math.min(MC1 , Math.min(MC2,MC3));
                    }
                }
            }
        }
 
        return dp[0][0];
	}
}

class Solution {
    public int minimumDeleteSum(String s1, String s2) {
        //Ques 40 of dp playlist ,minimum ASCCII SUM (MAS)

        //every cell will store MAS for ith string to be equal to jth string

        int m = s1.length() , n = s2.length();
        int[][] dp = new int[m+1][n+1];     //+1 for empty string

        //last row and last col will be 0
        
        for(int i = m; i>=0 ;i--){

            for(int j = n ; j>=0 ; j--){
                
                //last cell
                if(i == m && j == n)
                dp[i][j] = 0;
                
                //last col, it will be down cell + ASCII of current character
                else if(j == n)
                dp[i][j] = dp[i+1][j] + (int)s1.charAt(i);

                //last row, it will be right cell + ASCII of current character
                else if(i == m)
                dp[i][j] = dp[i][j+1] + (int)s2.charAt(j);

                //ROD - rest of the dp
                else{
                    if(s1.charAt(i) == s2.charAt(j))
                    dp[i][j] = dp[i+1][j+1];
                    
                    /*removing first char of str1 and checking MAS with ros str2
                    and vice versa ...and taking minimum of both while adding
                    the ascii value of character removed
                    */
                    else{
                        int MAS1 = dp[i+1][j] + (int)(s1.charAt(i));
                        int MAS2 = dp[i][j+1] + (int)(s2.charAt(j));
                        dp[i][j] = Math.min(MAS1 , MAS2);
                    }
                }
            }
        }

        return dp[0][0];
    }
}
class Solution {
    public boolean isScramble(String s1, String s2) {
        /* DP ques 39 
        */
        //if lengths are not equal return false
        if(s1.length() != s2.length())
        return false;

        int n = s1.length();

        //making 3d dp putting s1 on row ,s2 on col and length+1 on z axis
        boolean[][][] dp = new boolean[n][n][n+1];

        //traversing the dp

        for(int len = 1 ; len <= n ; len++){

            for(int i = 0 ; i <= n-len ; i++){

                for(int j = 0 ; j <= n - len ; j++){
                    
                    // for len 1 if chars are not equal -> false else true
                    if(len == 1)
                    dp[i][j][len] = (s1.charAt(i) == s2.charAt(j));

                    else{

                        /* making cuts on strings , and looping till either all
                        cuts have been covered or we have already found true
                        */
                        for(int k = 1 ; k < len && !dp[i][j][len];k++){
                            dp[i][j][len] = 
                            
                            //left-left             right-right
                            (dp[i][j][k] && dp[i+k][j+k][len-k]) ||
                            
                            //left - right          right - left
                            (dp[i][j+len-k][k] && dp[i+k][j][len-k]);
                        }
                    }
                }
            }
        }

        

        return dp[0][0][n];
    }
    
    //recursion 1 , recursion 2 and recursion with memoization
    // public boolean isScramble1(String s1, String s2){
    //     if(s1.equals(s2))
    //     return true;

    //     for(int i = 1 ; i < s1.length() ; i++){

    //         if(isScramble1(s1.substring(0,i),s2.substring(0,i)) && isScramble1(s1.substring(i),s2.substring(i)))) ||
    //         (isScramble1(s1.substring(0,i),s2.substring(s2.length()-i)) && isScramble1(s1.substring(i),s2.substring(0,s2.length()-i))) )
    //         return true;
    //     }
    //     return false;
    // }
    // public boolean isScramble2(String s1, String s2 , int si1 ,int ei1 , int si2 , int ei2){
    //     if(s1.equals(s2))
    //     return true;

    //     for(int i = 1 ; i < s1.length() ; i++){

    //         if( (isScramble2(s1,s2,si1,si1+i,si2,si2+i) && isScramble2(s1,s2,si1+i + 1,ei1,si2+i+1,ei2)) ||
    //         (isScramble2(s1,s2,si1,si1+i,ei2-1,ei2) && isScramble2(s1,s2,si1,si1+i+1,ei1,ei2-i-1)) )
    //         return true;
    //     }
    //     return false;

    // }
    // public boolean isScramble3(String s1, String s2 ,int si1, int si2 , int len , Boolean[][][] dp){
    //     if(s1.substring(si1,si1+len).equals(s2.substring(si2,si2+len)))
    //     return true;
        
    //     if(dp[si1][si2][len] != null)
    //     return dp[si1][si2][len];

    //     for(int k = 1 ; k<len ; k++){
    //         if((isScramble3(s1,s2,si1,si2,k,dp) && isScramble3(s1,s2,si1+k,si2+k,len-k,dp)) ||
    //         (isScramble3(s1,s2,si1,si2+len-k,k,dp) && isScramble3(s1,s2,si1+k,si2,len-k,dp))){
    //             dp[si1][si2][len];
    //             return true;
    //         }
            
    //     }
        
    //     dp[si1][si2][len] = false;
    //     return false;
    // }





}     
class Solution {
    public int minDistance(String word1, String word2) {
        int m = word1.length() , n = word2.length();

        int dp[][] = new int [m+1][n+1];

        /* every cell stores minimum cost needed to convert string till that row to
        string till that coloumn 
        */
        
        //base case filling first row and coloumn
        for(int j = 0 ; j < dp[0].length ; j++)
        dp[0][j] = j;

        for(int i = 0 ; i < dp.length ; i++)
        dp[i][0] = i;


        for(int i = 1 ; i < dp.length ; i++){

            for(int j = 1 ; j < dp[0].length ;j++){

                if(word1.charAt(i-1) == word2.charAt(j-1))
                dp[i][j] = dp[i-1][j-1];

                else{
                    //replace
                    int replace = dp[i-1][j-1];
                    
                    //delete
                    int delete = dp[i-1][j];
                    
                    //insert
                    int insert = dp[i][j-1];

                    //find min and add 1 for your own operation
                    dp[i][j] = Math.min(replace ,Math.min(delete , insert)) +1;
                }
            }
        }

        return dp[m][n];
    }
}












class Solution {
    public boolean isMatch(String s, String p) {
        //Q37 of dp playlist ,

        int m = p.length() , n = s.length();   //pattern on rows , str on col
        boolean [][] dp = new boolean[m+1][n+1];    //for empty string

        //traversing the dp
        for(int i = 0 ; i < m+1 ; i++){

            for(int j = 0 ; j< n+1 ; j++){

                //if 0,0 ->true
                if(i == 0 && j== 0)
                dp[i][j] = true;

                //if first coloumn
                else if(j==0){
                    
                    //if * check 2 rows above
                    if(p.charAt(i-1) == '*')
                    dp[i][j] = dp[i-2][j];

                    //if p.charAt(j) == any char or '.' it stays false
                }

                //first row all false
                else if(i==0)
                dp[i][j] = false;

                //rest of the string
                else{
                    
                    //if chars are equal or . then check diagonally behind
                    if(p.charAt(i-1)==s.charAt(j-1) || p.charAt(i-1) == '.')
                    dp[i][j] = dp[i-1][j-1];

                    /* if * then check 2 rows above and also if last chars
                    are equal then check left also , ans will be OR of both

                    here last chars means char before * and last char of str
                    char before * can also be '.'
                    */
                    else if(p.charAt(i-1) == '*'){
                        dp[i][j] = dp[i-2][j]; 
                        
                        if(p.charAt(i-2)==s.charAt(j-1) || p.charAt(i-2) == '.')
                        dp[i][j] = dp[i][j] || dp[i][j-1];
                    }
                }
            }
        }

        // for(int i = 0 ; i < m+1 ; i++){
        //     for(int j = 0 ; j < n+1 ; j++)
        //     System.out.print(dp[i][j] + " ");

        //     System.out.println();
        // }

        return dp[m][n];
    }
}









class Solution {
    public boolean isMatch(String s, String p) {
        //Ques 36 , dp playlist
        
        int m = p.length() , n = s.length();
        boolean dp[][] = new boolean[m+1][n+1]; //+1 for empty string

    //last cell will be true , else last row and last colomn will be false
        
        //traversing reversely
        for(int i = m ; i >=0 ; i--){

            for(int j = n ; j>=0 ; j--){

                //if last cell
                if(i == m && j== n)
                dp[i][j] = true;

                //if last row
                else if(i == m)
                dp[i][j] = false;

                //if last coloumn
                else if(j == n){
                    //and * check below 
                    if(p.charAt(i) == '*')
                    dp[i][j] = dp[i+1][j];

                    //else outright false
                    else
                    dp[i][j] = false;
                }

                //for rest of the matrix
                else{
                    
                    //if ? , or char are same then check diagonally right
                    //else it stays false , which is by default
                    if(p.charAt(i) == '?' || p.charAt(i) == s.charAt(j))
                    dp[i][j] = dp[i+1][j+1];

                    //if * in rest of the matrix check right and below
                    else if(p.charAt(i) == '*')
                    dp[i][j] = dp[i][j+1] || dp[i+1][j];
                }
                
            }
        }

        // for(int i =0 ; i < m+1 ; i++){
        //     for(int j = 0 ; j < n+1 ; j++)
        //     System.out.print(dp[i][j] + " ");

        //     System.out.println();
        // }
        return dp[0][0];
    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.util.*;
import java.lang.*;
import java.io.*;
class GFG
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int T = Integer.parseInt(br.readLine().trim());
        while(T-->0)
        {
            String str = br.readLine().trim();
            Solution ob = new Solution();
            int ans = ob.LongestRepeatingSubsequence(str);
            System.out.println(ans);
        }
    }
}

// } Driver Code Ends


//User function Template for Java

class Solution
{
    public int LongestRepeatingSubsequence(String str)
    {   
        /* Q35 dp playlist , finding Longest common subsequence in str with itself ,
        and checking if equal characters have equal indexes or not as we need to find
        repeated string with different characters
        */
        int n = str.length() ;
        
        int[][] dp = new int[n+1][n+1];
        
        //last row ,last coloumn  and last cell will be 0 by default
        //handling for rest of the dp
        for(int i = n-1 ; i>=0 ; i--){
            
            for(int j = n-1 ; j>=0 ; j--){
                
                //checking if chars are equal and indexes are not
                if(str.charAt(i) == str.charAt(j) && i!=j)
                    dp[i][j] = dp[i+1][j+1] + 1;
            
                else
                    dp[i][j] = Math.max(dp[i][j+1] , dp[i+1][j]);
            
            }
        }
        
        return dp[0][0];
    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;

class GFG
{
    public static void main(String args[])throws IOException
    {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(read.readLine());
        while(t-- > 0)
        {
            String input[] = read.readLine().trim().split(" ");
            int n = Integer.parseInt(input[0]);
            int m = Integer.parseInt(input[1]);
            
            String S1 = read.readLine().trim();
            String S2 = read.readLine().trim();

            Solution ob = new Solution();
            System.out.println(ob.longestCommonSubstr(S1, S2, n, m));
        }
    }
}
// } Driver Code Ends


//User function Template for Java

class Solution{
    int longestCommonSubstr(String s1, String s2, int m, int n){
        /* Q34 of dp playlist , compare all prefixes of both s1 and s2 and find longest
        common suffix , that will become your longest common substring
        */
        
        int dp[][] = new int[m+1][n+1];
        int ans = 0;
        
        //first coloumn and first row will be 0 , which is by default also 0
        
        for(int i = 1 ; i < m+1 ; i++){
            
            for(int j = 1 ; j < n+1; j++){
                
                //if last chars are equal , ans = ansof(prefix) + 1 , ans of prefix
                //can be found diagonally behind
                if(s1.charAt(i-1) == s2.charAt(j-1)){
                    dp[i][j] = dp[i-1][j-1] + 1;
                    ans = Math.max(ans , dp[i][j]);
                }
                
            }
        }
        
        // for(int i = 0 ; i < m ; i++){
        //     for(int j = 0 ; j<n ; j++){
        //         System.out.print(dp[i][j] + " ");
        //     }
        //     System.out.println();
        // }
        
        return ans;
    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;

class GFG {
    public static void main(String args[]) throws IOException {
        BufferedReader read =
            new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(read.readLine());
        while (t-- > 0) {
            String s = read.readLine();
            Solution ob = new Solution();
            System.out.println(ob.distinctSubsequences(s));
        }
    }
}
// } Driver Code Ends


//User function Template for Java

class Solution {
    int distinctSubsequences(String s) {
        //not getting submitted on GFG cause not included mod operations
        //every cell denotes no. of distinct subsequences(NODS) till that string
        
        int n = s.length();
        
        //n+1 , as 0th place would be taken by empty subsequence
        int dp[] = new int[n+1];    
        dp[0] = 1 ;//for 1 character string , NODS = 1
        
        //make HM to store latest indexes of repeated characters
        HashMap<Character ,Integer> map = new HashMap<>();
        
        for(int i = 1 ; i < n+1 ; i++){
            
            dp[i] = 2*dp[i-1];
            
            char ch = s.charAt(i-1);  //dp is 1 greater than string
            
            /* if character already exists means its repeated, so we will subtract all
            subsequences of dp[ch - 1] where ch represent last occurence of repeated 
            character before now, as those are the ones which will get combined and repeated
            */
            if(map.containsKey(ch)) {
                int idx = map.get(ch);  //getting previous occurence of repeated character
                dp[i] -= dp[idx- 1];
            }
            
            map.put(ch , i);    //updating characters
        }
        
        return dp[n];
    }
}
class Solution {
    public String longestPalindrome(String s) {
        /*  Q30 dp playlist , similiar to Q22 
            the last true cell will be the LPS with length gap +1 
            which can be found by substring(i , j+1)
        */
        //making 2d dp
        int n = s.length();
        String ans = "";
        boolean dp[][] = new boolean[n][n];

        for(int gap = 0 ; gap < n ; gap ++){

            for(int i = 0 , j = gap ; j < n ;i++, j++){

                if(gap == 0 )
                    dp[i][j] = true;

                else if(gap == 1)
                    dp[i][j] = s.charAt(i)==s.charAt(j) ? true : false;
                    
                else{
                    if(s.charAt(i) == s.charAt(j))
                    dp[i][j] = dp[i+1][j-1];

                    //else default value is already false
                }

                //storing the substring of the last true value
                if(dp[i][j] == true) 
                ans = s.substring(i,j+1);
            }
        }

        return ans;
    }
}








//{ Driver Code Starts
import java.util.*;
class GFG
{
	public static void main(String args[])
	{
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		sc.nextLine();
		while(t>0)
		{
			String str = sc.nextLine();
			//System.out.println(str.length());
			Solution ob  = new Solution();
			System.out.println(ob.countPS(str));
		t--;
		}
	}
}
// } Driver Code Ends


/*You are required to complete below method */

class Solution
{
    long countPS(String s)
    {
        //making 2d dp array, S&m - every cell denotes LPS of that string
        long mod = 1000000000 + 7;
        int n = s.length();
        long[][] dp = new long[n][n];

        for(int gap = 0 ; gap < n ; gap++){
                
            for(int i = 0 , j = gap; j < n ; i++ , j++){
                if(gap == 0)
                dp[i][j] = 1;   //for 1 character string CPS = 1

                //for 2char string , CPS = 3 if c1=c2 else CPS = 2
                else if(gap == 1)
                dp[i][j] = s.charAt(i)==s.charAt(j) ? 3 : 2;
                

                //i denotes prefix , j denotes suffix
                else{
                    
                    //if c1 == c2 , CPS of prefix + suffix + 1 (for c1+empty subsequence+c2)
                    if(s.charAt(i) == s.charAt(j))
                    dp[i][j] = 1 + dp[i][j-1]  + dp[i+1][j] ;

                    //else CPS of suffix + prefix - middlepart
                    else
                    dp[i][j] = dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1];
                }
            }
        }

        // for(int i = 0 ; i < n ; i++){
        //     for(int j =  0 ; j < n ;j++)
        //     System.out.print(dp[i][j] + " ");

        //     System.out.println();
        // }
        

        return dp[0][n-1] ;

    }
}
class Solution {
    public int longestPalindromeSubseq(String s) {
        /* Q29 of dp series , gap1 strategy 
        */

        //making 2d dp array, S&m - every cell denotes LPS of that string
        int n = s.length();
        int[][] dp = new int[n][n];

        for(int gap = 0 ; gap < n ; gap++){
                
            for(int i = 0 , j = gap; j < n ; i++ , j++){
                if(gap == 0)
                dp[i][j] = 1;   //for 1 character string LPS = 1

                //for 2char string , LPS = 2 if c1=c2 else LPS = 1
                else if(gap == 1)
                dp[i][j] = s.charAt(i)==s.charAt(j) ? 2 : 1;
                

                //i denotes prefix , j denotes suffix
                else{
                    
                    //if c1 == c2 , LCS of middle part + 2 for both chars
                    if(s.charAt(i) == s.charAt(j))
                    dp[i][j] = dp[i+1][j-1] + 2;

                    //else max of (prefix , suffix)
                    else
                    dp[i][j] = Math.max(dp[i][j-1] , dp[i+1][j]);
                }
            }
        }

        // for(int i = 0 ; i < n ; i++){
        //     for(int j =  0 ; j < n ;j++)
        //     System.out.print(dp[i][j] + " ");

        //     System.out.println();
        // }
        

        return dp[0][n-1];
    }
}









class Solution {
    public int longestCommonSubsequence(String text1, String text2) {
        /* Q28 dp playlist , every cell denotes LCS for that coloumn string
        with that row string 

        2)smallest problem on bottom left , biggest problem on 0,0
        
        3)making 2d dp array , keeping text 1 on coloumn and text2 on row +1
        for dash or empty string

        */

        int m = text1.length() , n = text2.length();
        int[][] dp = new int[m+1][n+1];

        //last coloumn , last row will be 0 for dashes
        // i represent text1 , j represent text2
        for(int i = m-1 ; i>= 0 ; i--){

            for(int j = n-1 ; j>=0 ; j--){
                
                //if first chars are equal , diagonally right +1 will be ans
                if(text1.charAt(i) == text2.charAt(j))
                dp[i][j] = dp[i+1][j+1] + 1;

                //else max (horizontal ,vertical) will be answer
                else
                dp[i][j] = Math.max(dp[i+1][j] , dp[i][j+1]);
            }
        }

        return dp[0][0];
    }
}
class Solution {
    public int minScoreTriangulation(int[] values) {
        /*  question no 27 in notes of dp playlist , catalan number , gap 
        strategy and matrix chain multiplication are being used 

        1) make 2d dp array to store results of previous polygon 
        2)every cell denotes minimum score to make that polygon with that 
        many sides
        3) traversing the gap diagnols and handling trivial cases  0 , 1

        4) handling further gap diagonals through formula for left , right 
        and immediate triangle using gap strategy 2
        */

        int n = values.length;
        int[][] dp = new int[n][n];

        for(int gap = 0 ; gap < n ; gap ++){

            for(int i = 0 , j = gap ; j < n ; i++ , j++){

                if(gap == 0 )
                dp[i][j] = 0;
                
                else if(gap == 1)
                dp[i][j] = 0;

                //only 1 triangle can be formed with 3 points
                else if(gap == 2)
                dp[i][j] = values[i] * values[i+1] * values[i+2];

                else{
                    //4
                    int min = Integer.MAX_VALUE;
                    for(int k = i+1 ; k<= j-1 ; k++){
                        int left = dp[i][k];
                        int right = dp[k][j];
                        int triangle = values[i] * values[j] * values[k];

                        min = Math.min(min , left + right + triangle);
                    }

                    dp[i][j] = min;
                }
            }
        }

        return dp[0][n-1];
    }
} 







//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;

class GFG{
    public static void main(String args[])throws IOException
    {
        BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(read.readLine());
        while(t-- > 0)
        {
            int n = Integer.parseInt(read.readLine());
            String input_line[] = read.readLine().trim().split("\\s+");
            int keys[]= new int[n];
            for(int i = 0; i < n; i++)
                keys[i] = Integer.parseInt(input_line[i]);
            String input_line1[] = read.readLine().trim().split("\\s+");
            int freq[]= new int[n];
            for(int i = 0; i < n; i++)
                freq[i] = Integer.parseInt(input_line1[i]);
            Solution ob = new Solution();
            System.out.println(ob.optimalSearchTree(keys, freq, n));
        }
    }
}
// } Driver Code Ends


//User function Template for Java

class Solution
{
    static int optimalSearchTree(int keys[], int frequency[], int n)
    {
        //making 2d dp for gap strategy
        int[][] dp = new int[n][n];
        
        //making prefix sum array
        int psa[] = new int[n] , sum = 0;
        
        for(int i = 0 ; i < n ; i++){
            sum += frequency[i];
            psa[i] = sum;
        }
        
        for(int gap = 0 ; gap < n ; gap ++){
            
            //traversing on gap diagnols
            for(int i = 0 , j = gap ; j < n ;i++, j++){
                
                if(gap == 0)
                dp[i][j] = frequency[i];     //i == j
                
                else if(gap == 1){
                    //i = left node , j = right node
                    int f1 = frequency[i] , f2 = frequency[j];
                    dp[i][j] = Math.min(f1 + 2*f2 , 2*f1 + f2);
                }
                
                else{
                    //freq to be added with left and right
                    int freq =0;
                    // for(int x = i ; x <= j ; x++)
                    // freq += frequency[x];
                    
                    //can also be done through prefix sum array for optimization
                    freq = psa[j] - (i == 0 ? 0 : psa[i-1]);
                    //i = left side , j = right side
                    int min = Integer.MAX_VALUE;
                    for(int k = i ; k <= j ;k++){
                        
                        //if k is at begning it left will be zero and if at end righ will
                        // be zero 
                        int left = k == i ? 0 : dp[i][k-1];
                        int right = k == j ? 0 : dp[k+1][j];
                        
                        min = Math.min(min , left + right + freq);
                    }
                    
                    dp[i][j] = min;
                }
            }
        }
        
        return dp[0][n-1];
    }
}










//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;

class GFG
{
    public static void main(String args[])throws IOException
    {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int t = Integer.parseInt(in.readLine());
        while(t-- > 0){
            int N = Integer.parseInt(in.readLine());
            String input_line[] = in.readLine().trim().split("\\s+");
            int arr[]= new int[N];
            for(int i = 0; i < N; i++)
                arr[i] = Integer.parseInt(input_line[i]);
            
            Solution ob = new Solution();
            System.out.println(ob.matrixMultiplication(N, arr));
        }
    }
}

// } Driver Code Ends


//User function Template for Java

class Solution{
    static int matrixMultiplication(int n, int arr[])
    {
        /* making a dp array for the gap strategy and to store answer of previous matrice
        multiplication
        1)travelling the gap diagonals and handling trivial cases for 0 and 1 diagnol
        2)handling for gap diagonals >= 2
        */
        
        int[][] dp = new int[n-1][n-1];
        
        //1
        for(int gap = 0 ; gap < n-1 ; gap++ ){
            
            
            for(int i =0 , j = gap ; j < n-1 ; i++ ,j++){
                
                if(gap == 0)
                dp[i][j] = 0;
                
                //i is first matrix , j is 2nd matrix
                else if(gap == 1)
                dp[i][j] = arr[i] * arr[j] * arr[j+1];
                
                //2
                else{
                    //k represents the cuts we are making from 0 to j-1
                    
                    int min = Integer.MAX_VALUE;
                    for(int k = i ; k < j ; k++){
                    //dp -> [i,k] = left half and [k+1,j] = right half
                    //arr -> i*k+1 = left half , k+1*j+1 = right half
                        int left = dp[i][k];
                        int right = dp[k+1][j];
                        int m = arr[i] * arr[k+1] * arr[j+1];
                        
                        min = Math.min(min , left + right + m);
                    }
                    dp[i][j] = min;
                }
            }
        }
        
        return dp[0][n-2];
    }
}
















class Solution {
    public int minCut(String s) {
        /* dp playlist video 28 , 2nd approach O(n^2)
        */

        //make boolean 2d array
        int n = s.length();
        boolean[][] arr = new boolean[n][n];

        
        //traversing diagonally up
        for(int gap = 0 ; gap < n ; gap++){

            for(int i = 0 , j = gap ; j < n ; i++ , j++){

                if(gap == 0)
                arr[i][j] = true;

                else if(gap == 1){
                    if(s.charAt(i) == s.charAt(j)) 
                    arr[i][j] = true;
                }
                

                else{
                    if(s.charAt(i) == s.charAt(j) && arr[i+1][j-1]==true)
                    arr[i][j] = true;
                }
                
            }
        }

        //making 1d dp array 
        int dp[] = new int [n];
        dp[0] = 0;  //0 letters need no cuts
        
        //now checking every suffix from 
        for(int i = 1 ; i < n ; i++){
            
            int min = Integer.MAX_VALUE;
            //making suffix and checking from boolean table
            for(int j = i ; j >= 0 ;j-- ){
                //if suffix is already a pallindrome
                if(j==0 && arr[j][i])
                min = 0;

                else if(arr[j][i])
                min = Math.min(min , dp[j-1] + 1);
            
            }
            dp[i] = min;

        }

        return dp[n-1];
    }
}











class Solution {
    public int minCut(String s) {
        /* dp playlist video 28 , first approach O(n^3)
        */

        //make boolean 2d array
        int n = s.length();
        boolean[][] arr = new boolean[n][n];

        
        //traversing diagonally up
        for(int gap = 0 ; gap < n ; gap++){

            for(int i = 0 , j = gap ; j < n ; i++ , j++){

                if(gap == 0)
                arr[i][j] = true;

                else if(gap == 1){
                    if(s.charAt(i) == s.charAt(j)) 
                    arr[i][j] = true;
                }
                

                else{
                    if(s.charAt(i) == s.charAt(j) && arr[i+1][j-1]==true)
                    arr[i][j] = true;
                }
                
            }
        }

        //now making int 2d array to store minimum cuts on every cell
        int [][] dp = new int[n][n];

        for(int gap = 0 ; gap < n ; gap++){

            for(int i = 0 , j = gap ; j < n ; i++ , j++){
                //handling trivial cases
                if(gap == 0)
                dp[i][j] = 0;

                else if(gap == 1){
                    if(s.charAt(i) != s.charAt(j))
                    dp[i][j] = 1;
                }
                    
                
                

                else{
                    //if word is already a pallindrome
                    if(arr[i][j] == true)
                    dp[i][j] = 0;
                    
                    else{
                        /* now checking every partion call for minimum
                        cuts(faith) left string will be [i , k]  
                        right will be [k+1 , j] find minimum cut faith call
                        */
                        int min = Integer.MAX_VALUE;
                        //k starts from i and ends on j
                        for(int k = i ; k < j ;k++){
                            int left = dp[i][k];
                            int right = dp[k+1][j];

                            min = Math.min(min,left + right);
                        }

                        dp[i][j] = min +1;  //add 1 for faith call

                        }
                }
            }
        }
        return dp[0][n-1];  //last coloumn of first row will have answer
    }
}












class Solution {
    public int countSubstrings(String s) {
        /* question of DP gap strategy vid 32 of dp playlist
        
        1)making a boolean array for checking pallindrome by keeping start
        points on coloumn and end points on rows
        
        2)travelling the upper triangle only ,where 0th diagnol represents
        substring with 0 gap that is that element itself 

        3) handling for 0 ,1 gap which are trivial case then handling for 
        2 onwards , where we will check extremities and if inside string is 
        also pallindrome by checking diagnolly behind
        */

        //1
        boolean dp[][] = new boolean[s.length()][s.length()];
        int count = 0 , n = s.length();

        //2

        for(int gap = 0 ; gap < n ; gap ++){
            
            //every diagnol ends at last coloumn,so this loop runs from first
            //row till last coloumn
            for(int i = 0 , j = gap ; j < n ; i++ , j++){

                //handling for 0 gap diagnol -> all are true
                if(gap == 0 ){
                    dp[i][j] = true;
                    count++;
                }
                


                //handling for 1 gap diagnol -> check if both chars are equal
                else if(gap == 1){
                    if(s.charAt(i) == s.charAt(j)){
                        dp[i][j] = true;
                        count++;
                    }
                    
                }


                //3
                else{
                    
                    if(s.charAt(i) == s.charAt(j) && dp[i+1][j-1] == true){
                        dp[i][j] = true;
                        count++;
                    }
                    
                }
            }
        }

        return count;
        
    }
}














//{ Driver Code Starts
import java.io.*;
import java.util.*;

class RodCutting {

    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while (t-- > 0) {
            int n = sc.nextInt();
            int[] arr = new int[n];
            for (int i = 0; i < n; i++) arr[i] = sc.nextInt();

            Solution ob = new Solution();
            System.out.println(ob.cutRod(arr, n));
        }
    }
}

// } Driver Code Ends


class Solution{
    public int cutRod(int price[], int n) {
        /* storage and meaning - every cell denotes maximum profit if the rod had been of
        that length 
        */
        
        int dp[] = new int[n+1];
        int nprice[] = new int[n+1];  //for ease of indexing
        
        //copying all prices in 1 based indexing
        for(int i = 1 ; i < n+1 ; i++)
        nprice[i] = price[i-1];
        
        //dp of 0 is already 0 
        dp[1] = nprice[1];  //1 length of rod can only be sold for price of 1 length
        
        
        for(int i = 2 ; i < n+1 ; i++){
            
            //storing profit when rod is not cut at all and sold at full length of i only
            int maxProfit = nprice[i]; 
            
            //cutting rod in 1 to i-1 pieces and checking for max profit 
          //with optimized i-j 
            for(int j = 1 ;j < i ; j++ )
            maxProfit = Math.max(maxProfit , dp[i-j] + nprice[j]);
          
          //or 
          //this will be cutting in j and taking cartesian product of optimized j & 
         //optimized i-j , we only have to travel till half as then pairs will get repeated
			// for(int j = 1 ;j <= i/2 ; j++ )
            // maxProfit = Math.max(maxProfit , dp[i-j] + dp[j]);
                
            dp[i] = maxProfit;
            
        }
        
        // for(int i = 0 ; i < n+1 ; i ++)
        // System.out.print(dp[i] + " ");
        
        return dp[n];
    }
}
public class Solution {
    public int chordCnt(int n) {
        long mod = 1000000000 + 7;
        long dp[] = new long[n+1];
        dp[0] = 1 ; dp[1] = 1;
        
        for(int k = 2  ; k <= n ; k++){
            
            for(int i = 0 , j = k-1 ; i <= k-1 ; i++ , j--)
            dp[k]= (dp[k]%mod + (((dp[i]%mod)*(dp[j]%mod))%mod))%mod;
        }
        
        return (int)(dp[n] % mod);
    }
}
class Solution {
    public List<String> generateParenthesis(int n) {
        /* you can find how many total no. of brackets will be generated 
        through catalan number 

        TC for interview purposes - O(n * 2^2n)
        */

         backtrack("" , 0 , 0 , n);
         return res;
    }
    public List<String> res = new ArrayList<>();

    //open -> open brackets , clost brackets
    public void backtrack(String sb , int open , int close , int n){
        //base condition
        if(sb.length() == 2*n){
            res.add(sb);
            return;
        }

        //always start with open bracket
        if(open < n)
        backtrack(sb + "(", open + 1 , close , n);

        //close brackets should always be lesser than open,make recursion 
        //tree to understand this better
        if(close < open)
        backtrack(sb + ")",open ,close+1 , n);
    }
}
import java.io.*;
import java.util.*;

public class Main {

   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int n = Integer.parseInt(br.readLine());
      long[] dp = new long[n + 1];
      dp[0] = 1;

      for(int i = 1; i < dp.length; i++){
         for(int j = 0; j < i; j++){
            dp[i] += dp[j] * dp[i - 1 - j];
         }
      }

      System.out.println(dp[n]);
   }

}


                        


                        
class Solution {
    public int numTrees(int n) {
        /* basically a question of catalan number , learn the first 5 catalan
        numbers to be able to find the pattern in questions
        */

        int[] dp = new int[n+1];
        dp[0] = 1 ; dp[1] = 1;
        
        
        for(int k = 2 ; k <= n ; k++){

            for(int i = 0 , j = k-1 ; i<=k-1 ; i++ , j--)
            dp[k] += dp[i] * dp[j];
        }

        return dp[n];
    }
}
// // "static void main" must be defined in a public class.
public class Main {
    public static void main(String[] args) {
        System.out.println(findCatalan(8));
    }
    //Function to find the nth catalan number.
    public static int findCatalan(int n)
    {
        
        int dp[] = new int[n+1];
        dp[0] = 1 ; dp[1] = 1;
        
        for(int k = 2 ; k <= n; k++){
            
            for(int i = 0 , j = k-1 ; i <= k-1 ; i++ , j--){
                
                dp[k] += dp[i]*dp[j];
            }
        }
        
        return dp[n];
    }
}

class Solution {
    public int minScore(int n, int[][] roads) {
        /*question of connected components , find 1's component and find minimum edge 
        weight in 1's component as we have to find path between 1 and n
        */

        //making adjency list
        HashMap<Integer, ArrayList<List<Integer>>> map = new HashMap<>();

        for(int[] road : roads){

            map.computeIfAbsent(road[0],k -> new ArrayList<List<Integer>>()).add(Arrays.asList(road[1],road[2]));

            map.computeIfAbsent(road[1],k -> new ArrayList<List<Integer>>()).add(Arrays.asList(road[0],road[2]));
        }

        System.out.println(map);

        return BFS(n , map);
    }


    public int BFS(int n , HashMap<Integer, ArrayList<List<Integer>>> map){

        int ans = Integer.MAX_VALUE;
        Queue<Integer> q = new ArrayDeque<>();
        boolean visited[] = new boolean[n+1];
        
        //adding first node
        q.add(1);
        visited[1] = true;


        while(q.size()!=0){
            int node = q.poll();        //remove
            
            //work and then add into q
            //if(map.containsKey(node)==false) continue;

            for(List<Integer> edge : map.get(node)){
                ans = Math.min(ans , edge.get(1));

                if(visited[edge.get(0)]==false){
                    q.add(edge.get(0));
                    visited[edge.get(0)] = true;
                }
            }
            
        }

        return ans;
    }
}











class Solution {
    public int numSquares(int n) {
        /* dp solution , storage - 1d array , 
        meaning - every element will store minimum number of perfect squares it needs
         to sum to that element

            algo - solve left to right (smaller to larger)
        */

        int[] dp = new int[n+1];
        dp[0] = 0;
        dp[1] = 1;

        for(int i = 2 ; i <= n ; i++){

     //subtracting for all perfect squares smaller than i and finding previous answers
            int min = Integer.MAX_VALUE;
            for(int j = 1 ; j*j <= i ; j++){

                min = Math.min(min,dp[i - j*j]);
            }
            
            //adding 1 for subtracting current perfect square that is 
            // dp[i] = previous answer(dp[i - j*j]) + current(1 which is j*j)
            // if(min != Integer.MAX_VALUE)
            dp[i] = min +1;
        }

        return dp[n];
    }
}
class Solution {
    public class pair implements Comparable<pair>{
        int width , height ;

        pair(){

        }

        pair(int width , int height){
            this.width = width ; 
            this.height = height;
        }

        //this - other = ascending order , other-this = descending order
        public int compareTo(pair o){
            //if width are equal sort based on hieghts
            if(this.width == o.width)
            return this.height - o.height;

            //else sort based on width only
            else
            return this.width - o.width;
        }
    }
    public int maxEnvelopes(int[][] envelopes) {
        /* similiar to max overlapping bridges , LIS concept will be used here
        approach - sort on the bases of either width or height lets take width for eg:
        now you already have width in ascending order , 
        now find LIS of height for every width , maximum of these will be your answer 
        
        ** sorting width makes sure that you get width in ascending order and 
        finding LIS of heights makes sure no hieghts overlap to each other and you can 
        find Maximum LIS of heights which will become you answer
         */
        
        //making a pair class array to store heights and width of each envelops
        pair[] arr = new pair[envelopes.length];
         
         //taking input in the pair array
         int i = 0;
         for(int input[] : envelopes){    
            
            arr[i] = new pair();        //initializing the object
            arr[i].width = input[0];    
            arr[i].height = input[1];

            i++;
         }

         //sorting the pair array based on width
            Arrays.sort(arr);

         //calling LIS function based on height for all sorted widths in pair array

         return LIS(arr);
    }

    public int LIS(pair[] arr){
        int n = arr.length ;
        int[] LIS = new int[n];
        LIS[0] = 1;     //for the first envelop it can only make 1 LIS of envelopes
        
        int ans = 1;
        //traversing all the sorted widths envelops
        for(int i = 1 ; i < n ;i++ ){
            
            
         //checking all envelops before current which have smaller height and for those
         //which dont have their widths equal as it is mentioned in the question
            for(int j = i-1 ; j >= 0 ; j--){

                if(arr[j].width != arr[i].width && arr[j].height < arr[i].height)
                LIS[i] = Math.max(LIS[i],LIS[j]);
            }

            //adding LIS for current element
            LIS[i]+=1;

            ans = Math.max(ans , LIS[i]);
        }

        return ans;
    }
}
import java.io.*;
import java.util.*;

public class Main {
    public static class bridge implements Comparable<bridge>{
        int north , south ;
        
        bridge(){
            
        }
        bridge(int north ,int south){
            this.north = north;
            this.south = south;
        }
        
        //this - other = ascending order , other - this = descending
        public int compareTo(bridge o){
            
       //if north coordinates are equal sort in ascending order of south
            if(this.north == o.north)
            return this.south - o.north;
            
            //else sort in ascending order of north only
            else
            return this.north - o.north;
        }
    }
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int n = Integer.parseInt(br.readLine());
      bridge[] brdgs = new bridge[n];
      for (int i = 0; i < brdgs.length; i++) {
         String str = br.readLine();
         brdgs[i] = new bridge();
         brdgs[i].north = Integer.parseInt(str.split(" ")[0]);
         brdgs[i].south = Integer.parseInt(str.split(" ")[1]);
      }
      
      Arrays.sort(brdgs);   //sort in ascending order of north
      
      //now LIS based on south coordinate
      
      System.out.println(LIS(brdgs));
    }
    
    public static int LIS(bridge[] brdgs){
        int n= brdgs.length;
        int[] LIS = new int[n];
        
      //for first bridge it can only make 1 maximum non overlapping bridge
        LIS[0] = 1; 
        
        int ans = 1;
        for(int i = 1 ; i < n ; i++){
            
        //checking all bridges before current which have south coordinate         // smaller than current 
            for(int j = i-1 ; j >= 0 ; j--){
                if(brdgs[j].south < brdgs[i].south){
                    LIS[i] = Math.max(LIS[i],LIS[j]);
                }
            }
            LIS[i] += 1;    //adding length 1 for current bridge
            
            ans = Math.max(ans , LIS[i]);
        }
        
        return ans;
    }
    

}











//{ Driver Code Starts
//Initial Template for Java

import java.util.*;
import java.lang.*;
import java.io.*;
class GFG
{
    public static void main(String[] args) throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int T = Integer.parseInt(br.readLine().trim());
        while(T-->0)
        {
            int n = Integer.parseInt(br.readLine().trim());
            String s = br.readLine().trim();
            String[] s1 = s.split(" ");
            int[] nums = new int[n];
            for(int i = 0; i < s1.length; i++)
                nums[i] = Integer.parseInt(s1[i]);
            Solution ob = new Solution();
            int ans = ob.LongestBitonicSequence(nums);
            System.out.println(ans);           
        }
    }
}

// } Driver Code Ends


//User function Template for Java

class Solution
{
    public int[] LIS(int[] nums ){
        int n = nums.length;
        
        int dp[] = new int[n];
        dp[0] = 1;  // for 1 length LIS will be 1 length
        
        for(int i = 1 ; i < n ; i++){
            
            for(int j = i-1 ; j>= 0 ; j--){
                
                //finding max in previous smaller elements
                if(nums[j] < nums[i])
                dp[i] = Math.max(dp[i] , dp[j]);
            }
            
            //adding +1 for current element
            dp[i] +=1;
            
        }
        
        return dp;
    }
    
    public int[] LDS(int[] nums){
        int n = nums.length;
        
        int dp[] = new int[n];
        dp[n-1] = 1;  // for 1 length LDS will be 1 length
        
        for(int i = n-2 ; i >=0 ; i--){
            
            for(int j = i+1 ; j< n ; j++){
                
                //finding max in previous smaller elements
                if(nums[j] < nums[i])
                dp[i] = Math.max(dp[i] , dp[j]);
            }
            
            //adding +1 for current element
            dp[i] +=1;
            
        }
        
        return dp;
    }
    public int LongestBitonicSequence(int[] nums)
    {
        /* for LBS we will need LIS and LDS , storage - 2 1D arrays for LIS and LDS
        meaning - 
        every cell will store LIS ending at that element this is going from left to right
        
        every cell will store LDS ending at that element this is going from right to left       
        
        LDS can be understood as LIS but in reverse array
        */ 
        
        int LIS[] = LIS(nums);
        
        //for LDS we can find reverse LIS 
        int LDS[] = LDS(nums);
        
        
        //now find max biotonic sequence for every element by LIS+LDS -1 and return max
        //-1 for the repeated element which exists in both LIS and LDS
        
        int ans = 0;
        for(int i = 0 ; i < nums.length ;i++){
            
            int biotonic = LIS[i] + LDS[i] -1;
            
            ans = Math.max(ans , biotonic);
        }
        
        return ans;
        
    }
}
//{ Driver Code Starts
//Initial Template for Java

import java.io.*;
import java.util.*;
class GfG
{
    public static void main(String args[])
        {
            Scanner sc = new Scanner(System.in);
            int t = sc.nextInt();
            while(t-->0)
                {
                    int n = sc.nextInt();
                    int Arr[] = new int[n];
                    for(int i = 0;i<n;i++)
                        Arr[i] = sc.nextInt();
                    Solution ob = new Solution();
                    System.out.println(ob.maxSumIS(Arr,n));
                }
        }
}    
// } Driver Code Ends


//User function Template for Java

class Solution
{
	public int maxSumIS(int arr[], int n)  
	{  
	        /* storage - 1d array , meaning - every cell will store maximum LIS sum ending at that
	    element(inclusive)
	    */
	    //base case
	    if(n == 1)return arr[0];
	    
	    int dp[] = new int[n];
	    dp[0] = arr[0]; //for length 1 max LIS will be that element
	    
	    int ans = dp[0];
	    
	    for(int i = 1 ; i< n ;i++){
	        
	        for(int j = i-1 ; j>= 0 ; j--){
//storing maximum LIS sum of previous elements provided the element is smaller than current
	            if(arr[j] < arr[i])
	            dp[i] = Math.max(dp[i],dp[j]);
	    }
	    //now adding current elements value to the max LIS
	    dp[i] += arr[i];
	    
	    ans = Math.max(dp[i],ans);
	}  
	
	return ans;
	}  
}
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Queue;
import java.util.Scanner;

public class Main{
    
    public static class Pair {
        int l;  //length
        int i;  //index
        int v;  //value
        String psf;
        
        Pair(int l, int i, int v, String psf){
            this.l = l;
            this.i = i;
            this.v = v;
            this.psf = psf;
        }
    }
        
    public static void solution(int []nums){
           /* 1D array
        storage- every cell denotes LIS till that cell ,mandatory that LIS ends at 
        that cell

        moving fromt left to right(small problem to large problem)
        */

        int n = nums.length;

        //base case
        // if(n == 1)return 1;
        int dp[] = new int[n];
        dp[0] = 1;  //LIS for 1 length will be of length 1 
        
        int ans = 1;
        for(int i = 1 ; i < n ; i++){

/*finding max LIS in previous elements in dp and also ensuring that current element
is greater than last element of previous LIS , as we have already assigned storage 
ensuring that LIS will end at that element so we already know that last element will 
be previous element only  */


            for(int j = i-1 ; j >=0 ; j--){
                
//for printing we are also taking equal values and not strictly
//greater values 
                if(nums[j] <= nums[i])
                dp[i] = Math.max(dp[i], dp[j]);
            }
            dp[i] += 1;

            ans = Math.max(dp[i] , ans);
        }        
        
/*we are returning ans and not dp[n-1] as dp[n-1] will just store LIS which the and 
will end at arr[n-1] but we need maximum length so we will store max as we traverse 
put in values in dp */

//now printing our answers through BFS for which we need pair class
        
        
        BFS(dp , ans , nums);

    }
    
    public static void BFS(int dp[] , int ans , int nums[]){
        
        ArrayDeque<Pair> q= new ArrayDeque<>();
        
        //add all elements which "ans" length stored in dp
        
        for(int i = 0 ; i < dp.length ; i++)
        if(dp[i]==ans)
        q.add(new Pair(dp[i],i,nums[i],nums[i]+""));
        
        
        //now remove print add children
        while(q.size()>0){
            Pair rem = q.removeFirst();
            
            int length = rem.l , idx = rem.i , val = rem.v;
            String psf = rem.psf;
            
            //if we got to LIS with 1 length print psf
            if(length ==1)
            System.out.println(psf);
            
//adding all children of rem which have length -1 and are smaller
            
            for(int j = 0 ; j < idx ; j++){
                
                if(dp[j]== length - 1 && nums[j] <= val)
                q.add(new Pair(dp[j],j,nums[j],nums[j]+" -> "+psf));   
            }
    
        }
    }
    
    
    
    public static void main(String []args){
        Scanner scn = new Scanner(System.in);

        int n = scn.nextInt();

        int arr[] = new int[n];
        for(int i = 0 ; i < n ; i++){
            arr[i] = scn.nextInt();
        }

        solution(arr);

        scn.close();
    }
}
class Solution {
    public int lengthOfLIS(int[] nums) {
        /* 1D array
        storage- every cell denotes LIS till that cell ,mandatory that LIS ends at 
        that cell

        moving fromt left to right(small problem to large problem)
        */

        int n = nums.length;

        //base case
        if(n == 1)return 1;
        int dp[] = new int[n];
        dp[0] = 1;  //LIS for 1 length will be of length 1 
        
        int ans = 1 ;
        for(int i = 1 ; i < n ; i++){

/*finding max LIS in previous elements in dp and also ensuring that current element
is greater than last element of previous LIS , as we have already assigned storage 
ensuring that LIS will end at that element so we already know that last element will 
be previous element only  */


            for(int j = i-1 ; j >=0 ; j--){
                
                if(nums[j] < nums[i])
                dp[i] = Math.max(dp[i], dp[j]);
            }
            dp[i] += 1;

            ans = Math.max(ans , dp[i]);
        }        
        return ans;
/*we are returning ans and not dp[n-1] as dp[n-1] will just store LIS which the and 
will end at arr[n-1] but we need maximum length so we will store max as we traverse 
put in values in dp */

    }
}
 class Solution {
    
    public int minSteps(int n) {
        // initialize the dp table
        int[] memo = new int[n + 1];
        memo[n] = 0;
        
        for (int i = n - 1; i >= 1; i--) {
            // since we want the minimum answer among all candidates, 
            // the result is initially set to the maximum value.
            int res = Integer.MAX_VALUE;

            // extra is the len of the copied string, 
            // nPastes is the number of paste operations performed after the initial copy.
            int len = i;
            int extra = len, nPastes = 0;

            // repeat while we can successfully paste the text
            while (len + extra <= n) {
                // paste the text
                len += extra;
                nPastes++;

                // find answer for the remaining length
                int remain = memo[len];

                // if answer is found, update the current result
                if (remain != -1)
                    res = Math.min(res, nPastes + remain);
            }

            // if answer is not found, return -1,
            // else return result + 1 (plus one to consider the copy operation we performed initially)
            memo[i] = res == Integer.MAX_VALUE ? -1 : res + 1;
        }
        
        return memo[1];
    }
}
import java.io.*;
import java.util.*;

public class Main {
    public static class pair {
        int i ;
        int j ;
        String psf;
        
        pair(int i , int j , String psf){
            this.i = i;
            this.j = j;
            this.psf = psf;
        }
    }
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int size = Integer.parseInt(br.readLine());

        int[] val = new int[size];
        String str1 = br.readLine();
        for (int i = 0; i < size; i++) {
            val[i] = Integer.parseInt(str1.split(" ")[i]);
        }

        int[] wts = new int[size];
        String str2 = br.readLine();
        for (int i = 0; i < size; i++) {
            wts[i] = Integer.parseInt(str2.split(" ")[i]);
        }

        int cap = Integer.parseInt(br.readLine());

        //rows will be wts-val and cols will 0 to knapsack capacity (W)
         int dp[][] = new int[size+1][cap+1];
         int m = dp.length  , n = dp[0].length;
         
         //first row and first col will be 0 by default 
         
         //rest of the array
         
         for(int i = 1 ; i <m ;i++ ){
             for(int j = 1 ; j < n;j++){
                 
                 int plays = 0; 
                 int notplays = dp[i-1][j];
                 
                 if(j >= wts[i-1])
                 plays = val[i-1] + dp[i-1][j- wts[i-1]];
                 
                 dp[i][j] = Math.max(plays , notplays);
                 
             }
         }
         
         System.out.println(dp[m-1][n-1]);
         
         BFS(dp,val , wts);
        
    }
    
    public static void BFS(int[][]dp ,int[] val, int[] wts){
        ArrayDeque<pair> q = new ArrayDeque<>();
        q.add(new pair(dp.length -1 , dp[0].length-1,""));
        
        
        while(q.size()>0){
            pair rem = q.removeFirst();
            
            int i = rem.i , j = rem.j;
            String psf = rem.psf;
            
            //if players or balls become 0 print psf
            if(i == 0 || j == 0)
            System.out.println(psf);
            
            else{
                
                //when the number plays and when it doesn't play
                int plays = 0 , notplays = dp[i-1][j];
                
                if(j >= wts[i-1])
                plays= dp[i-1][j-wts[i-1]] + val[i-1];
                
                if(plays == dp[i][j])
                q.add(new pair(i-1 , j-wts[i-1] , i-1 +" "+psf));
                
                if(notplays == dp[i][j])
                q.add(new pair(i-1 , j , psf));
                
            }
        }
    }
}
















                        


                        


                        
import java.io.*;
import java.util.*;

public class Main {

    public static class Pair{
        int i;
        int j;
        String psf;

        public Pair(int i, int j, String psf){
            this.i = i;
            this.j = j;
            this.psf = psf;
        }
    }
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int size = Integer.parseInt(br.readLine());
        int[] arr = new int[size];

        for (int i = 0; i < size; i++) {
            arr[i] = Integer.parseInt(br.readLine());
        }

        int tar = Integer.parseInt(br.readLine());

        boolean dp[][] = new boolean[arr.length +1][tar+1];
        int m = dp.length , n = dp[0].length;
        
        
        //first col will be true
        for(int i = 0 ; i <m ;i++)
        dp[i][0] = true;
        
        //first row after first element will be false ,default in boolean 
        
        for(int i = 1 ; i < m ; i++){
            
            for(int j = 1 ; j < n ;j++){
                
    //number will contribute only if it is >= current col target
                if(j >= arr[i-1] ){
                    
                    if(dp[i-1][j] || dp[i][j- arr[i-1]])
                    dp[i][j] = true;
                }
                
            //else previous answer will be stored
                else {
                    dp[i][j] = dp[i-1][j];
                }
            }
        }
        
        System.out.println(dp[arr.length][tar]);
        
        BFS(dp ,arr, tar);

    }
    
    public static void BFS(boolean[][] dp,int[] arr ,int target ){
        
        ArrayDeque<Pair> q = new ArrayDeque<>();
    
        q.add(new Pair(arr.length,target , ""));
        
        
        while(q.size()>0){
            
            Pair rem = q.removeFirst();
            int i = rem.i , j = rem.j ; 
            
//if we get to first col all numbers will be ignored from this point and we have already reached our answer 
            if(i == 0 || j == 0)
            System.out.println(rem.psf);
            
/* 2 calls will be made from last coloumn of include and exclude 
recursive call will stop if encounters false anywhere while 
retracing 
*/

            else{
                
                boolean exec = dp[i-1][j];
                if(exec)
                q.add(new Pair(i-1 ,j , rem.psf));    // i-1 is added as array is i-1 of dp
                
                if(j>= arr[i-1]){
                    boolean inc = dp[i-1][j - arr[i-1]];
                    
                    if(inc)
                    q.add(new Pair(i-1,j-arr[i-1],(i-1)+" "+ rem.psf));
                }
            }
        }
    }
}













                        


                        
import java.io.*;
import java.util.*;

public class Main {

   private static class Pair {
      String psf;
      int i;
      int j;

      public Pair(String psf, int i, int j) {
         this.psf = psf;
         this.i = i;
         this.j = j;
      }
   }
   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int n = Integer.parseInt(br.readLine());
      int m = Integer.parseInt(br.readLine());
      int[][] arr = new int[n][m];

      for (int i = 0; i < n; i++) {
         String str = br.readLine();
         for (int j = 0; j < m; j++) {
            arr[i][j] = Integer.parseInt(str.split(" ")[j]);
         }
      }
        int max = Integer.MIN_VALUE;    //answer variable
        
      int dp[][] = new int[m][n];
      
      //filling last col
      for(int i = 0 ; i < m ; i++)
      dp[i][n-1] = arr[i][n-1];
      
      //now Traversing col wise from 2nd last col and finding minimum and also adding our own cost in it
      
        for(int j = n - 2 ; j >= 0 ; j--){
            
            for(int i = 0 ; i < m ;i++){
                
                //if first row
                if(i == 0 ){
                    dp[i][j] = Math.max(dp[i][j+1],dp[i+1][j+1]) + arr[i][j]; 
                    max = Math.max(max , dp[i][j]);
                }
                //if last row
                else if(i == m-1){
                    dp[i][j] = Math.max(dp[i][j+1],dp[i-1][j+1]) + arr[i][j];
                max = Math.max(max , dp[i][j]);
                }
                
                
                //rest of the matrix
                else{
                    dp[i][j] = Math.max(dp[i-1][j+1],Math.max(dp[i][j+1],dp[i+1][j+1])) + arr[i][j];
                
                max = Math.max(max , dp[i][j]);
                }
                
            }
        }
        
        System.out.println(max);
        // for(int i = 0 ; i < m ; i++){
        //     for(int j  = 0 ; j < n ; j++)
        //     System.out.print(dp[i][j] + " ");
            
        //     System.out.println();
        // }
        
        BFS(dp,max);
      
   }
   
   public static void BFS(int[][]dp,int maxcost){
       
       ArrayDeque<Pair> q = new ArrayDeque<>();
       
       //adding max element of first row and calling BFS
       for(int i = 0 ; i < dp.length ; i++)
       if(dp[i][0] == maxcost)
       q.add(new Pair(i+ "",i , 0));
       
       while(q.size()>0){
           
           Pair rem = q.removeFirst();
           int i = rem.i ; 
           int j = rem.j;
           
           //last col
           if(j == dp[0].length -1){
               System.out.println(rem.psf);
           }
           //first row
           else if(i == 0){
               int max = Math.max(dp[i][j+1],dp[i+1][j+1]);
               
               if(max == dp[i][j+1])
               q.add(new Pair(rem.psf + " d2",i , j+1));
               
               if(max == dp[i+1][j+1])
               q.add(new Pair(rem.psf +" d3" , i+1 , j+1));
           }
           
           //last row
           else if(rem.i == dp.length - 1){
               int max = Math.max(dp[i-1][j+1],dp[i][j+1]);
               
               if(max == dp[i-1][j+1])
               q.add(new Pair(rem.psf + " d1",i-1 , j+1));
               
               if(max == dp[i][j+1])
               q.add(new Pair(rem.psf + " d2",i , j+1));
           }
           
           //rest of the matrix
           else{
               int max = Math.max(dp[i-1][j+1],Math.max(dp[i][j+1],dp[i+1][j+1]));
               
               if(max == dp[i-1][j+1])
               q.add(new Pair(rem.psf + " d1",i-1 , j+1));
               
               if(max == dp[i][j+1])
               q.add(new Pair(rem.psf + " d2",i , j+1));
               
               if(max == dp[i+1][j+1])
               q.add(new Pair(rem.psf +" d3" , i+1 , j+1));
           }
       }
   }


}





















import java.io.*;
import java.util.*;

public class Main {

   private static class Pair {
      String psf;
      int i;
      int j;

      public Pair(String psf, int i, int j) {
         this.psf = psf;
         this.i = i;
         this.j = j;
      }
   }

   public static void main(String[] args) throws Exception {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int n = Integer.parseInt(br.readLine());
      int m = Integer.parseInt(br.readLine());
      int[][] arr = new int[n][m];

      for (int i = 0; i < n; i++) {
         String str = br.readLine();
         for (int j = 0; j < m; j++) {
            arr[i][j] = Integer.parseInt(str.split(" ")[j]);
         }
      }

      int dp[][] = new int[m][n];
      
      //last cell
      dp[m-1][n-1] = arr[m-1][n-1];
      
      //last row
      for(int j = n-2 ; j >= 0 ; j--)
      dp[m-1][j] = dp[m-1][j+1] + arr[m-1][j];
      
      //last col
      for(int i = m-2 ; i >=0 ; i--)
      dp[i][n-1] = dp[i+1][n-1] + arr[i][n-1];
      
      //rest of the matrix
      for(int i = m -2 ; i >= 0 ;i--){
          for(int j = n-2 ; j >= 0 ;j--){
              
              dp[i][j] = Math.min(dp[i][j+1],dp[i+1][j]) ;
              
              //adding your cell's cost
              dp[i][j] += arr[i][j];
          }
      }
      
        //answer stored in dp[0][0]
        System.out.println(dp[0][0]);
        
        //now we will use BFS to find all paths of minimum cost
        
        BFS(dp);
      
   }
   
   public static void BFS(int[][] dp){
       
       ArrayDeque<Pair> q = new ArrayDeque<>();
       q.add(new Pair("" , 0 , 0)); //adding first element
       
       while(q.size()>0){
          Pair rem = q.removeFirst();
          
          //if we have arrived at the last element
          if(rem.i ==dp.length-1 && rem.j == dp[0].length-1)
          System.out.println(rem.psf);
          
          //if last row we can move only right
          else if(rem.i == dp.length - 1)
          q.add(new Pair (rem.psf + "H", rem.i, rem.j+1));
          
          //if last col we can move only down
          else if(rem.j == dp[0].length - 1)
          q.add(new Pair(rem.psf + "V", rem.i+1, rem.j));
          
          //if we are in rest of the matrix
          else{
              
              //if horizontal element is smallest
              if(dp[rem.i][rem.j+1] < dp[rem.i+1][rem.j])
              q.add(new Pair (rem.psf + "H", rem.i, rem.j+1));
              
              //if vertical element is smallest
              else if(dp[rem.i+1][rem.j] < dp[rem.i][rem.j+1])
              q.add(new Pair(rem.psf + "V", rem.i+1, rem.j));
              
              //if both are equal
              else{
                q.add(new Pair(rem.psf + "V", rem.i+1, rem.j));
                q.add(new Pair (rem.psf + "H", rem.i, rem.j+1));
                
              }
          }
          
       }
   }

}











class Solution {
    
    //this is a dp problem , count stairs with minimum jumps
    public int jump(int[] nums) {
        int n = nums.length ;

        //every index stores minimum number of jumps from itself to last index
        //we take Integer to store null for indexes from where there is no path
        Integer dp[] = new Integer[n];   

        //jump from n to n will be 0
        dp[n-1] = 0;
        
        /*
        while iterating from right to left find minimum jumps of from that index
        to the last index
        */
        for(int i = n - 2;i >=0 ;i--){
            
            //if jumps are greater than 0
            if(nums[i] > 0){
                int min = Integer.MAX_VALUE;

                /*
                take jumps from 1 to nums[i] from current index amd see which 
                next index gives you the minimum ans
                 */
                for(int j = 1 ; j <= nums[i] && i+j < n ;j++){

                    //take minimum jumped index answer 
                    if(dp[i+j] != null)
                    min = Math.min(min , dp[i+j]);
                }
                
                //now add 1 for your cell's jump
                // if all jumps lead to null, min will stay as it is
                if(min!= Integer.MAX_VALUE){
                    dp[i] = min+1;
                    System.out.print(dp[i]);
                }
                
            }
                
            
        }

        return (int)dp[0];
    }
}
class Solution {
    public int max = 0;
    public int maximalSquare(char[][] matrix) {
        
    //Q-1 of dp level 2 , every cell denotes maxmimum submatrix square they can make

        //dividing the matrix in 4 parts and solving them indivisually 
        
        int m = matrix.length , n = matrix[0].length;
        int dp[][] = new int[m][n];

    //max subsquare last row can make will be 1 if there is a 1 present in matrix cell
        for(int j = 0 ; j < n ; j++){
            dp[m-1][j] = matrix[m-1][j] -'0' ;
            max = Math.max(max , dp[m-1][j]);
        }
        

    //max subsquare last col can make will be 1 if there is a 1 present in matrix cell
        for(int i = 0 ; i < m; i++){
            dp[i][n-1] = matrix[i][n-1] -'0' ;
            max = Math.max(max , dp[i][n-1]);
        }
        

    //rest of the matrix 

        for(int i = m-2 ; i >= 0 ; i--){
            for(int j = n-2 ; j >= 0 ; j--){

                if(matrix[i][j] == '1'){
                    //minimum of next , below and diagnolly below cell + 1
                 dp[i][j] = Math.min(dp[i][j+1], Math.min(dp[i+1][j+1],dp[i+1][j])) +1;

                 max = Math.max(max , dp[i][j]);
                }
                
            }
        }

        return max*max;     //we have to return area
    }
}
class Solution {
    public int lengthOfLIS(int[] nums) {
        /* LIS in O(nlogn) -> shorturl.at/tyJZ7
        
        we make a dp array of length n where every cell denote the last element
        of ith length LIS , we make an upperbound function which returns the 
        just greater or equal to target index where we keep updating the values
        if we encounter another smaller value than previously stored at index

        we do this so that we can make a longer LIS in the future , in the end 
        we traverse reversely and at any index if we find value other than INTMAX
        we return that index + 1 which denotes length of MAX LIS;
        */

        int n = nums.length;
        int[] dp = new int[n];
        Arrays.fill(dp , Integer.MAX_VALUE);

        //traverse the array use upperbound function to update values
        for(int i = 0 ; i < n ; i++){
            int idx = upperBound(dp , 0 , i ,nums[i]);
            dp[idx] = nums[i];           
        }

        //traverse reversely to find the max LIS 
        for(int i = n-1 ; i>=0 ; i--){
            if(dp[i] != Integer.MAX_VALUE)
            return i+1;
        }

        return -1;  //will never reach this statement
    }

    //upperbound returns just greater or equal to value index for updating value
    public int upperBound(int[] dp , int low , int high , int target){

        while(low <= high){
            int mid = low + (high - low)/2;

            if(dp[mid] == target) 
            return mid;
            
            else if(dp[mid] > target)
            high = mid-1;

            else
            low = mid+1;
        }

        return low;
    }
}

class Solution {
    public static int M = (int)(Math.pow(10, 9) + 7);
    public long mod(long val){
        return val % M;
    }
    

    public long add(long val1 , long val2){
        return mod(mod(val1) + mod(val2));
    }
    

    public long mul(long val1 , long val2){
        return mod(mod(val1) * mod(val2));
    }

    public int kConcatenationMaxSum(int[] arr, int k) {
        //ques 43 of dp playlist , kadanes algo 
        System.out.println(arr.length);
        if(k == 1){
            return Math.max((int)mod(kadanes(arr)) , 0);
        }
        

        else{
            //find total sum
            long sum = 0  ;
            int n = arr.length;

            for(int i = 0 ; i < n ; i++)
            sum = sum + arr[i];

            //make an array of double size to store first 2 repetition
            int narr[] = new int[2*n];

            for(int i = 0 ; i < 2*n ; i++)
            narr[i] = arr[i%n];

            //if sum < 0 , find kadanes of first 2 repetition only 
            if(sum < 0){
                int MAS = (int)mod(kadanes(narr));

                return MAS < 0 ? 0 : MAS;
            }
            
            //if sum >= 0 find kadanes of first and last repetition and add
            //(k-2) * sum
            else {

                int MAS = (int)add(kadanes(narr) ,mul(k-2, sum));
                return MAS < 0 ? 0 : MAS;
            }
        }

    
    }
    public long kadanes(int[] arr){
        int n = arr.length ;
        long csum = arr[0] , omax = arr[0];
        
        for(int i = 1 ; i < n ; i++){
            long val = arr[i];
            if(csum > 0)
            csum = csum + val;

            else
            csum = val;

            omax = Math.max(omax , csum);
        }

        return omax;
    }
}
class Solution {
    public int maxEnvelopes(int[][] envelopes) {
        /* Q13 of dp playlist , the question is reducable to LIS , we sort the
        array based on width now we have sorted width so we find LIS on heights
        
        its very important to sort the heights in descending order if widths are
        equal as its given that , widths and heights both should be strictly 
        greater
        */
        int n = envelopes.length;
        
        /* sorting the enevelopes array based on width , we use thiss and otherr
        as we cannot use legacy naming this and other , we sort the array based
        on width and if widths are equal we sort them based on descending heights
        */
        Arrays.sort(envelopes , new Comparator<int []>(){
            
            public int compare(int thiss[] , int otherr[]){
                if(thiss[0] == otherr[0])
                return otherr[1] - thiss[1];

                else
                return thiss[0] - otherr[0];
            }
        });

        /* we initialise the dp array with MAX_VALUE , then traverse the array
        and keep placing elements based on patience sort or deck of cards , every
        cell in dp denotes last element of ith LIS , we find position of new 
        values using upperbound and keep updating the ith index which stores
        last element for ith index.
        */
        int[] dp = new int[n];
        Arrays.fill(dp , Integer.MAX_VALUE);

        for(int i = 0 ;i < dp.length ; i++){
            
            int idx = upperBound(dp , 0 , i ,envelopes[i][1]);
            dp[idx] = envelopes[i][1];
        }

        //traverse reversely and find the first not intmax value which is our LIS
        for(int i = n-1 ; i>=0 ; i--){
            if(dp[i] != Integer.MAX_VALUE){
                return i+1;
            }
        }

        return -1;  //would never reach this statement
    }

    //function to find just greater or equal to index
    public int upperBound(int[] dp , int low , int high , int target){

        while(low <= high){
            int mid = low + (high - low)/2;

            if(dp[mid] == target)
            return mid;

            else if(dp[mid] > target)
            high = mid-1;

            else
            low = mid+1;
        }
        return low;
    }
}





class Solution {
    public int maxCoins(int[] nums) {
        //this is a question of matrix chain multiplication dp playlist vid23

        //adding an extra 1 in the end of the array 
        int n = nums.length;
        int dp[][] = new int[n][n];

        for(int gap = 0; gap < n ; gap++){

            for(int i = 0 , j = gap ; j < n ; i++ , j++){ 
                
                int max = Integer.MIN_VALUE;
                for(int k = i ; k <= j ;k++){

                    int left = k==i ? 0: dp[i][k-1] ;
                    int right = k==j ? 0: dp[k+1][j] ;
                    
                    //cost = nums[i-1] * nums[k] * nums[j+1]
                    //handling for i==0 and j == n-1
                    int cost = nums[k];
                    
                    cost *= i > 0 ? nums[i-1] : 1;
                    cost *= j != n-1 ? nums[j+1] :1;

                    max = Math.max(max , left + right + cost);
                }
                
                dp[i][j] = max;
                
            }
        }

        return dp[0][n-1];

    }
}








Similiar Collections

Python strftime reference pandas.Period.strftime python - Formatting Quarter time in pandas columns - Stack Overflow python - Pandas: Change day - Stack Overflow python - Check if multiple columns exist in a df - Stack Overflow Pandas DataFrame apply() - sending arguments examples python - How to filter a dataframe of dates by a particular month/day? - Stack Overflow python - replace a value in the entire pandas data frame - Stack Overflow python - Replacing blank values (white space) with NaN in pandas - Stack Overflow python - get list from pandas dataframe column - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to lowercase a pandas dataframe string column if it has missing values? - Stack Overflow How to Convert Integers to Strings in Pandas DataFrame - Data to Fish How to Convert Integers to Strings in Pandas DataFrame - Data to Fish create a dictionary of two pandas Dataframe columns? - Stack Overflow python - ValueError: No axis named node2 for object type <class 'pandas.core.frame.DataFrame'> - Stack Overflow Python Pandas iterate over rows and access column names - Stack Overflow python - Creating dataframe from a dictionary where entries have different lengths - Stack Overflow python - Deleting DataFrame row in Pandas based on column value - Stack Overflow python - How to check if a column exists in Pandas - Stack Overflow python - Import pandas dataframe column as string not int - Stack Overflow python - What is the most efficient way to create a dictionary of two pandas Dataframe columns? - Stack Overflow Python Loop through Excel sheets, place into one df - Stack Overflow python - How do I get the row count of a Pandas DataFrame? - Stack Overflow python - How to save a new sheet in an existing excel file, using Pandas? - Stack Overflow Python Loop through Excel sheets, place into one df - Stack Overflow How do I select a subset of a DataFrame? — pandas 1.2.4 documentation python - Delete column from pandas DataFrame - Stack Overflow python - Convert list of dictionaries to a pandas DataFrame - Stack Overflow How to Add or Insert Row to Pandas DataFrame? - Python Examples python - Check if a value exists in pandas dataframe index - Stack Overflow python - Set value for particular cell in pandas DataFrame using index - Stack Overflow python - Pandas Dataframe How to cut off float decimal points without rounding? - Stack Overflow python - Pandas: Change day - Stack Overflow python - Clean way to convert quarterly periods to datetime in pandas - Stack Overflow Pandas - Number of Months Between Two Dates - Stack Overflow python - MonthEnd object result in <11 * MonthEnds> instead of number - Stack Overflow python - Extracting the first day of month of a datetime type column in pandas - Stack Overflow
MySQL MULTIPLES INNER JOIN How to Use EXISTS, UNIQUE, DISTINCT, and OVERLAPS in SQL Statements - dummies postgresql - SQL OVERLAPS PostgreSQL Joins: Inner, Outer, Left, Right, Natural with Examples PostgreSQL Joins: A Visual Explanation of PostgreSQL Joins PL/pgSQL Variables ( Format Dates ) The Ultimate Guide to PostgreSQL Date By Examples Data Type Formatting Functions PostgreSQL - How to calculate difference between two timestamps? | TablePlus Date/Time Functions and Operators PostgreSQL - DATEDIFF - Datetime Difference in Seconds, Days, Months, Weeks etc - SQLines CASE Statements in PostgreSQL - DataCamp SQL Optimizations in PostgreSQL: IN vs EXISTS vs ANY/ALL vs JOIN PostgreSQL DESCRIBE TABLE Quick and best way to Compare Two Tables in SQL - DWgeek.com sql - Best way to select random rows PostgreSQL - Stack Overflow PostgreSQL: Documentation: 13: 70.1. Row Estimation Examples Faster PostgreSQL Counting How to Add a Default Value to a Column in PostgreSQL - PopSQL How to Add a Default Value to a Column in PostgreSQL - PopSQL SQL Subquery - Dofactory SQL IN - SQL NOT IN - JournalDev DROP FUNCTION (Transact-SQL) - SQL Server | Microsoft Docs SQL : Multiple Row and Column Subqueries - w3resource PostgreSQL: Documentation: 9.5: CREATE FUNCTION PostgreSQL CREATE FUNCTION By Practical Examples datetime - PHP Sort a multidimensional array by element containing date - Stack Overflow database - Oracle order NULL LAST by default - Stack Overflow PostgreSQL: Documentation: 9.5: Modifying Tables PostgreSQL: Documentation: 14: SELECT postgresql - sql ORDER BY multiple values in specific order? - Stack Overflow How do I get the current unix timestamp from PostgreSQL? - Database Administrators Stack Exchange SQL MAX() with HAVING, WHERE, IN - w3resource linux - Which version of PostgreSQL am I running? - Stack Overflow Copying Data Between Tables in a Postgres Database php - How to remove all numbers from string? - Stack Overflow sql - How to get a list column names and datatypes of a table in PostgreSQL? - Stack Overflow postgresql - How do I remove all spaces from a field in a Postgres database in an update query? - Stack Overflow sql - How to get a list column names and datatypes of a table in PostgreSQL? - Stack Overflow How to change PRIMARY KEY of an existing PostgreSQL table? · GitHub Drop tables w Dependency Tracking ( constraints ) Import CSV File Into PosgreSQL Table How To Import a CSV into a PostgreSQL Database How can I drop all the tables in a PostgreSQL database? - Stack Overflow How can I drop all the tables in a PostgreSQL database? - Stack Overflow PostgreSQL CASE Statements & Examples using WHEN-THEN, if-else and switch | DataCamp PostgreSQL LEFT: Get First N Characters in a String How can I drop all the tables in a PostgreSQL database? - Stack Overflow How can I drop all the tables in a PostgreSQL database? - Stack Overflow PostgreSQL - Copy Table - GeeksforGeeks PostgreSQL BETWEEN Query with Example sql - Postgres Query: finding values that are not numbers - Stack Overflow PostgreSQL UPDATE Join with A Practical Example
Request API Data with JavaScript or PHP (Access a Json data with PHP API) PHPUnit – The PHP Testing Framework phpspec array_column How to get closest date compared to an array of dates in PHP Calculating past and future dates < PHP | The Art of Web PHP: How to check which item in an array is closest to a given number? - Stack Overflow implode php - Calculate difference between two dates using Carbon and Blade php - Create a Laravel Request object on the fly testing - How can I measure the speed of code written in PHP? testing - How can I measure the speed of code written in PHP? What to include in gitignore for a Laravel and PHPStorm project Laravel Chunk Eloquent Method Example - Tuts Make html - How to solve PHP error 'Notice: Array to string conversion in...' - Stack Overflow PHP - Merging two arrays into one array (also Remove Duplicates) - Stack Overflow php - Check if all values in array are the same - Stack Overflow PHP code - 6 lines - codepad php - Convert array of single-element arrays to one a dimensional array - Stack Overflow datetime - PHP Sort a multidimensional array by element containing date - Stack Overflow sql - Division ( / ) not giving my answer in postgresql - Stack Overflow Get current date, given a timezone in PHP? - Stack Overflow php - Get characters after last / in url - Stack Overflow Add space after 7 characters - PHP Coding Help - PHP Freaks php - Laravel Advanced Wheres how to pass variable into function? - Stack Overflow php - How can I manually return or throw a validation error/exception in Laravel? - Stack Overflow php - How to add meta data in laravel api resource - Stack Overflow php - How do I create a webhook? - Stack Overflow Webhooks - Examples | SugarOutfitters Accessing cells - PhpSpreadsheet Documentation Reading and writing to file - PhpSpreadsheet Documentation PHP 7.1: Numbers shown with scientific notation even if explicitely formatted as text · Issue #357 · PHPOffice/PhpSpreadsheet · GitHub How do I install Java on Ubuntu? nginx - How to execute java command from php page with shell_exec() function? - Stack Overflow exec - Executing a java .jar file with php - Stack Overflow Measuring script execution time in PHP - GeeksforGeeks How to CONVERT seconds to minutes? PHP: Check if variable exist but also if has a value equal to something - Stack Overflow How to declare a global variable in php? - Stack Overflow How to zip a whole folder using PHP - Stack Overflow php - Saving file into a prespecified directory using FPDF - Stack Overflow PHP 7.0 get_magic_quotes_runtime error - Stack Overflow How to Create an Object Without Class in PHP ? - GeeksforGeeks Recursion in PHP | PHPenthusiast PHP PDO Insert Tutorial Example - DEV Community PHP Error : Unparenthesized `a ? b : c ? d : e` is deprecate | Laravel.io mysql - Which is faster: multiple single INSERTs or one multiple-row INSERT? - Stack Overflow Display All PHP Errors: Basic & Advanced Usage Need to write at beginning of file with PHP - Stack Overflow Append at the beginning of the file in PHP - Stack Overflow PDO – Insert, update, and delete records in PHP – BrainBell php - How to execute a raw sql query with multiple statement with laravel - Stack Overflow
Clear config cache Eloquent DB::Table RAW Query / WhereNull Laravel Eloquent "IN" Query get single column value in laravel eloquent php - How to use CASE WHEN in Eloquent ORM? - Stack Overflow AND-OR-AND + brackets with Eloquent - Laravel Daily Database: Query Builder - Laravel - The PHP Framework For Web Artisans ( RAW ) Combine Foreach Loop and Eloquent to perform a search | Laravel.io Access Controller method from another controller in Laravel 5 How to Call a controller function in another Controller in Laravel 5 php - Create a Laravel Request object on the fly php - Laravel 5.6 Upgrade caused Logging to break Artisan Console - Laravel - The PHP Framework For Web Artisans What to include in gitignore for a Laravel and PHPStorm project php - Create a Laravel Request object on the fly Process big DB table with chunk() method - Laravel Daily How to insert big data on the laravel? - Stack Overflow php - How can I build a condition based query in Laravel? - Stack Overflow Laravel Chunk Eloquent Method Example - Tuts Make Database: Migrations - Laravel - The PHP Framework For Web Artisans php - Laravel Model Error Handling when Creating - Exception Laravel - Inner Join with Multiple Conditions Example using Query Builder - ItSolutionStuff.com laravel cache disable phpunit code example | Newbedev In PHP, how to check if a multidimensional array is empty? · Humblix php - Laravel firstOrNew how to check if it's first or new? - Stack Overflow get base url laravel 8 Code Example Using gmail smtp via Laravel: Connection could not be established with host smtp.gmail.com [Connection timed out #110] - Stack Overflow php - Get the Last Inserted Id Using Laravel Eloquent - Stack Overflow php - Laravel-5 'LIKE' equivalent (Eloquent) - Stack Overflow Accessing cells - PhpSpreadsheet Documentation How to update chunk records in Laravel php - How to execute external shell commands from laravel controller? - Stack Overflow How to convert php array to laravel collection object 3 Best Laravel Redis examples to make your site load faster How to Create an Object Without Class in PHP ? - GeeksforGeeks Case insensitive search with Eloquent | Laravel.io How to Run Specific Seeder in Laravel? - ItSolutionStuff.com PHP Error : Unparenthesized `a ? b : c ? d : e` is deprecate | Laravel.io How to chunk query results in Laravel php - How to execute a raw sql query with multiple statement with laravel - Stack Overflow
PostgreSQL POSITION() function PostgresQL ANY / SOME Operator ( IN vs ANY ) PostgreSQL Substring - Extracting a substring from a String How to add an auto-incrementing primary key to an existing table, in PostgreSQL PostgreSQL STRING_TO_ARRAY()function mysql FIND_IN_SET equivalent to postgresql PL/pgSQL Variables ( Format Dates ) The Ultimate Guide to PostgreSQL Date By Examples Data Type Formatting Functions PostgreSQL - How to calculate difference between two timestamps? | TablePlus Date/Time Functions and Operators PostgreSQL - DATEDIFF - Datetime Difference in Seconds, Days, Months, Weeks etc - SQLines CASE Statements in PostgreSQL - DataCamp SQL Optimizations in PostgreSQL: IN vs EXISTS vs ANY/ALL vs JOIN PL/pgSQL Variables PostgreSQL: Documentation: 11: CREATE PROCEDURE Reading a Postgres EXPLAIN ANALYZE Query Plan Faster PostgreSQL Counting sql - Fast way to discover the row count of a table in PostgreSQL - Stack Overflow PostgreSQL: Documentation: 9.1: tablefunc PostgreSQL DESCRIBE TABLE Quick and best way to Compare Two Tables in SQL - DWgeek.com sql - Best way to select random rows PostgreSQL - Stack Overflow How to Add a Default Value to a Column in PostgreSQL - PopSQL How to Add a Default Value to a Column in PostgreSQL - PopSQL PL/pgSQL IF Statement PostgreSQL: Documentation: 9.1: Declarations SQL Subquery - Dofactory SQL IN - SQL NOT IN - JournalDev PostgreSQL - IF Statement - GeeksforGeeks How to work with control structures in PostgreSQL stored procedures: Using IF, CASE, and LOOP statements | EDB PL/pgSQL IF Statement How to combine multiple selects in one query - Databases - ( loop reference ) DROP FUNCTION (Transact-SQL) - SQL Server | Microsoft Docs SQL : Multiple Row and Column Subqueries - w3resource PostgreSQL: Documentation: 9.5: CREATE FUNCTION PostgreSQL CREATE FUNCTION By Practical Examples datetime - PHP Sort a multidimensional array by element containing date - Stack Overflow database - Oracle order NULL LAST by default - Stack Overflow PostgreSQL: Documentation: 9.5: Modifying Tables PostgreSQL: Documentation: 14: SELECT PostgreSQL Array: The ANY and Contains trick - Postgres OnLine Journal postgresql - sql ORDER BY multiple values in specific order? - Stack Overflow sql - How to aggregate two PostgreSQL columns to an array separated by brackets - Stack Overflow How do I get the current unix timestamp from PostgreSQL? - Database Administrators Stack Exchange SQL MAX() with HAVING, WHERE, IN - w3resource linux - Which version of PostgreSQL am I running? - Stack Overflow Postgres login: How to log into a Postgresql database | alvinalexander.com Copying Data Between Tables in a Postgres Database PostgreSQL CREATE FUNCTION By Practical Examples php - How to remove all numbers from string? - Stack Overflow sql - How to get a list column names and datatypes of a table in PostgreSQL? - Stack Overflow postgresql - How do I remove all spaces from a field in a Postgres database in an update query? - Stack Overflow sql - How to get a list column names and datatypes of a table in PostgreSQL? - Stack Overflow A Step-by-Step Guide To PostgreSQL Temporary Table How to change PRIMARY KEY of an existing PostgreSQL table? · GitHub PostgreSQL UPDATE Join with A Practical Example PostgreSQL: Documentation: 15: CREATE SEQUENCE How can I drop all the tables in a PostgreSQL database? - Stack Overflow PostgreSQL Show Tables Drop tables w Dependency Tracking ( constraints ) Import CSV File Into PosgreSQL Table How To Import a CSV into a PostgreSQL Database How can I drop all the tables in a PostgreSQL database? - Stack Overflow How can I drop all the tables in a PostgreSQL database? - Stack Overflow PostgreSQL CASE Statements & Examples using WHEN-THEN, if-else and switch | DataCamp PostgreSQL LEFT: Get First N Characters in a String How can I drop all the tables in a PostgreSQL database? - Stack Overflow How can I drop all the tables in a PostgreSQL database? - Stack Overflow postgresql - Binary path in the pgAdmin preferences - Database Administrators Stack Exchange postgresql - Binary path in the pgAdmin preferences - Database Administrators Stack Exchange PostgreSQL - Copy Table - GeeksforGeeks postgresql duplicate key violates unique constraint - Stack Overflow PostgreSQL BETWEEN Query with Example VACUUM FULL - PostgreSQL wiki How To Remove Spaces Between Characters In PostgreSQL? - Database Administrators Stack Exchange sql - Postgres Query: finding values that are not numbers - Stack Overflow PostgreSQL LEFT: Get First N Characters in a String unaccent: Getting rid of umlauts, accents and special characters
כמה עוד נשאר למשלוח חינם גם לעגלה ולצקאאוט הוספת צ'קבוקס לאישור דיוור בצ'קאאוט הסתרת אפשרויות משלוח אחרות כאשר משלוח חינם זמין דילוג על מילוי כתובת במקרה שנבחרה אפשרות איסוף עצמי הוספת צ'קבוקס לאישור דיוור בצ'קאאוט שינוי האפשרויות בתפריט ה-סידור לפי בווקומרס שינוי הטקסט "אזל מהמלאי" הערה אישית לסוף עמוד העגלה הגבלת רכישה לכל המוצרים למקסימום 1 מכל מוצר קבלת שם המוצר לפי ה-ID בעזרת שורטקוד הוספת כפתור וואטסאפ לקנייה בלופ ארכיון מוצרים הפיכה של מיקוד בצ'קאאוט ללא חובה מעבר ישיר לצ'קאאוט בלחיתה על הוספה לסל (דילוג עגלה) התראה לקבלת משלוח חינם בדף עגלת הקניות גרסה 1 התראה לקבלת משלוח חינם בדף עגלת הקניות גרסה 2 קביעה של מחיר הזמנה מינימלי (מוצג בעגלה ובצ'קאאוט) העברת קוד הקופון ל-ORDER REVIEW העברת קוד הקופון ל-ORDER REVIEW Kadence WooCommerce Email Designer קביעת פונט אסיסנט לכל המייל בתוסף מוצרים שאזלו מהמלאי - יופיעו מסומנים באתר, אבל בתחתית הארכיון הוספת כפתור "קנה עכשיו" למוצרים הסתרת אפשרויות משלוח אחרות כאשר משלוח חינם זמין שיטה 2 שינוי סימן מטבע ש"ח ל-ILS להפוך סטטוס הזמנה מ"השהייה" ל"הושלם" באופן אוטומטי תצוגת הנחה באחוזים שינוי טקסט "בחר אפשרויות" במוצרים עם וריאציות חיפוש מוצר לפי מק"ט שינוי תמונת מוצר לפי וריאציה אחרי בחירה של וריאציה אחת במקרה של וריאציות מרובות הנחה קבועה לפי תפקיד בתעריף קבוע הנחה קבועה לפי תפקיד באחוזים הסרה של שדות משלוח לקבצים וירטואליים הסתרת טאבים מעמוד מוצר הצגת תגית "אזל מהמלאי" בלופ המוצרים להפוך שדות ל-לא חובה בצ'קאאוט שינוי טקסט "אזל מהמלאי" לוריאציות שינוי צבע ההודעות המובנות של ווקומרס הצגת ה-ID של קטגוריות המוצרים בעמוד הקטגוריות אזל מהמלאי- שינוי ההודעה, תגית בלופ, הודעה בדף המוצר והוספת אזל מהמלאי על וריאציה הוספת שדה מחיר ספק לדף העריכה שינוי טקסט אזל מהמלאי תמונות מוצר במאונך לצד תמונת המוצר הראשית באלמנטור הוספת כפתור קנה עכשיו לעמוד המוצר בקניה הזו חסכת XX ש''ח לאפשר למנהל חנות לנקות קאש ברוקט לאפשר רק מוצר אחד בעגלת קניות הוספת סימון אריזת מתנה ואזור להוראות בצ'קאאוט של ווקומרס הצגת הנחה במספר (גודל ההנחה) הוספת "אישור תקנון" לדף התשלום הצגת רשימת תכונות המוצר בפרונט שינוי כמות מוצרים בצ'קאאוט ביטול השדות בצ'קאאוט שינוי כותרות ופלייסהולדר של השדות בצ'קאאוט
החלפת טקסט באתר (מתאים גם לתרגום נקודתי) הסרת פונטים של גוגל מתבנית KAVA ביטול התראות במייל על עדכון וורדפרס אוטומטי הוספת תמיכה בקבצי VCF באתר (קבצי איש קשר VCARD) - חלק 1 להחריג קטגוריה מסוימת מתוצאות החיפוש שליפת תוכן של ריפיטר יצירת כפתור שיתוף למובייל זיהוי אלו אלמנטים גורמים לגלילה אופקית התקנת SMTP הגדרת טקסט חלופי לתמונות לפי שם הקובץ הוספת התאמת תוספים לגרסת WP הוספת טור ID למשתמשים הסרת כותרת בתבנית HELLO הסרת תגובות באופן גורף הרשאת SVG חילוץ החלק האחרון של כתובת העמוד הנוכחי חילוץ הסלאג של העמוד חילוץ כתובת העמוד הנוכחי מניעת יצירת תמונות מוקטנות התקנת SMTP הצגת ה-ID של קטגוריות בעמוד הקטגוריות להוריד מתפריט הניהול עמודים הוספת Favicon שונה לכל דף ודף הוספת אפשרות שכפול פוסטים ובכלל (של שמעון סביר) הסרת תגובות באופן גורף 2 בקניה הזו חסכת XX ש''ח חיפוש אלמנטים סוררים, גלישה צדית במובייל שיטה 1 לאפשר רק מוצר אחד בעגלת קניות הצגת הנחה במספר (גודל ההנחה) הוספת "אישור תקנון" לדף התשלום שינוי צבע האדמין לפי סטטוס העמוד/פוסט שינוי צבע אדמין לכולם לפי הסכמות של וורדפרס תצוגת כמות צפיות מתוך הדשבורד של וורדפרס הצגת סוג משתמש בפרונט גלילה אין סופית במדיה שפת הממשק של אלמנטור תואמת לשפת המשתמש אורך תקציר מותאם אישית
הודעת שגיאה מותאמת אישית בטפסים להפוך כל סקשן/עמודה לקליקבילית (לחיצה) - שיטה 1 להפוך כל סקשן/עמודה לקליקבילית (לחיצה) - שיטה 2 שינוי הגבלת הזיכרון בשרת הוספת לינק להורדת מסמך מהאתר במייל הנשלח ללקוח להפוך כל סקשן/עמודה לקליקבילית (לחיצה) - שיטה 3 יצירת כפתור שיתוף למובייל פתיחת דף תודה בטאב חדש בזמן שליחת טופס אלמנטור - טופס בודד בדף פתיחת דף תודה בטאב חדש בזמן שליחת טופס אלמנטור - טפסים מרובים בדף ביי ביי לאריק ג'ונס (חסימת ספאם בטפסים) זיהוי אלו אלמנטים גורמים לגלילה אופקית לייבלים מרחפים בטפסי אלמנטור יצירת אנימציה של "חדשות רצות" בג'ט (marquee) שינוי פונט באופן דינאמי בג'ט פונקציה ששולפת שדות מטא מתוך JET ומאפשרת לשים הכל בתוך שדה SELECT בטופס אלמנטור הוספת קו בין רכיבי התפריט בדסקטופ ולדציה למספרי טלפון בטפסי אלמנטור חיבור שני שדות בטופס לשדה אחד שאיבת נתון מתוך כתובת ה-URL לתוך שדה בטופס וקידוד לעברית מדיה קוורי למובייל Media Query תמונות מוצר במאונך לצד תמונת המוצר הראשית באלמנטור הצגת תאריך עברי פורמט תאריך מותאם אישית תיקון שדה תאריך בטופס אלמנטור במובייל שאיבת פרמטר מתוך הכתובת והזנתו לתוך שדה בטופס (PARAMETER, URL, INPUT) עמודות ברוחב מלא באלמנטור עמודה דביקה בתוך אלמנטור יצירת "צל" אומנותי קוד לסוויצ'ר, שני כפתורים ושני אלמנטים סקריפט לסגירת פופאפ של תפריט לאחר לחיצה על אחד העמודים הוספת כפתור קרא עוד שפת הממשק של אלמנטור תואמת לשפת המשתמש להריץ קוד JS אחרי שטופס אלמנטור נשלח בהצלחה מצב ממורכז לקרוסלת תמונות של אלמנטור לייבלים מרחפים בטפסי פלואנטפורמס שדרוג חוויית העלאת הקבצים באלמנטור
What is the fastest or most elegant way to compute a set difference using Javascript arrays? - Stack Overflow javascript - Class Binding ternary operator - Stack Overflow Class and Style Bindings — Vue.js How to remove an item from an Array in JavaScript javascript - How to create a GUID / UUID - Stack Overflow json - Remove properties from objects (JavaScript) - Stack Overflow javascript - Remove property for all objects in array - Stack Overflow convert array to dictionary javascript Code Example JavaScript: Map an array of objects to a dictionary - DEV Community JavaScript: Map an array of objects to a dictionary - DEV Community javascript - How to replace item in array? - Stack Overflow javascript - How to replace item in array? - Stack Overflow How can I replace Space with %20 in javascript? - Stack Overflow JavaScript: Check If Array Has All Elements From Another Array - Designcise javascript - How to use format() on a moment.js duration? - Stack Overflow javascript - Elegant method to generate array of random dates within two dates - Stack Overflow Compare two dates in JavaScript using moment.js - Poopcode javascript - Can ES6 template literals be substituted at runtime (or reused)? - Stack Overflow javascript - How to check if array is empty or does not exist? - Stack Overflow How To Use .map() to Iterate Through Array Items in JavaScript | DigitalOcean Check if a Value Is Object in JavaScript | Delft Stack vuejs onclick open url in new tab Code Example javascript - Trying to use fetch and pass in mode: no-cors - Stack Overflow Here are the most popular ways to make an HTTP request in JavaScript JavaScript Array Distinct(). Ever wanted to get distinct element - List of object to a Set How to get distinct values from an array of objects in JavaScript? - Stack Overflow Sorting an array by multiple criteria with vanilla JavaScript | Go Make Things javascript - Map and filter an array at the same time - Stack Overflow ecmascript 6 - JavaScript Reduce Array of objects to object dictionary - Stack Overflow javascript - Convert js Array to Dictionary/Hashmap - Stack Overflow javascript - Is there any way to use a numeric type as an object key? - Stack Overflow
Hooks Cheatsheet React Tutorial Testing Overview – React performance Animating Between Views in React | CSS-Tricks - CSS-Tricks Building an Animated Counter with React and CSS - DEV Community Animate When Element is In-View with Framer Motion | by Chad Murobayashi | JavaScript in Plain English Handling Scroll Based Animation in React (2-ways) - Ryosuke react-animate-on-scroll - npm Bring Life to Your Website | Parallax Scrolling using React and CSS - YouTube react-cool-inview: React hook to monitor an element enters or leaves the viewport (or another element) - DEV Community Improve React Performance using Lazy Loading💤 and Suspense | by Chidume Nnamdi 🔥💻🎵🎮 | Bits and Pieces Mithi's Epic React Exercises React Hooks - Understanding Component Re-renders | by Gupta Garuda | Medium reactjs - When to use useImperativeHandle, useLayoutEffect, and useDebugValue - Stack Overflow useEffect vs useLayoutEffect When to useMemo and useCallback useLockBody hook hooks React animate fade on mount How to Make a React Website with Page Transitions using Framer Motion - YouTube Build a React Image Slider Carousel from Scratch Tutorial - YouTube React Router: useParams | by Megan Lo | Geek Culture | Medium useEffect Fetch POST in React | React Tutorial Updating Arrays in State Background Images in React React Context API : A complete guide | by Pulkit Sharma | Medium Code-Splitting – React Lazy Loading React Components (with react.lazy and suspense) | by Nwose Lotanna | Bits and Pieces Lazy loading React components - LogRocket Blog Code Splitting a Redux Application | Pluralsight react.js folder structure | by Vinoth kumar | Medium react boilerplate React State Management best practices for 2021 (aka no Redux) | by Emmanuel Meric de Bellefon | Medium Create an advanced scroll lock React Hook - LogRocket Blog UseOnClickOutside : Custom hook to detect the mouse click on outside (typescript) - Hashnode react topics 8 Awesome React Hooks web-vitals: Essential metrics for a healthy site. scripts explained warnings and dependency errors Learn the useContext Hook in React - Programming with Mosh Learn useReducer Hook in React - Programming with Mosh Guide To Learn useEffect Hook in React - Programming with Mosh Getting Started With Jest - Testing is Fun - Programming with Mosh Building an accessible React Modal component - Programming with Mosh Kent C. Dodds's free React course
SAVED SEARCH DATE FORMAT(page wise) AND LOOP THROUGH EACH DATA || With Pagination || Avoids 4000 data Limt Rest in Suitlet CALL ANOTHER SCRIPT | SUITELET FROM ANY OTHER SCRIPT | SUITELET | ALSO PASSING OF PARAMETERS CALLING RESTLET |FROM SUITELET Where Is The “IF” Statement In A Saved Search Formula? – > script everything Where Is The “IF” Statement In A Saved Search Formula? – > script everything ClientScript Add Sublist Line items etc Saving Record In different way. BFO AND FREEMarkup || advance pdf html template Join In Lookup Field Search || Alternative of saved search Use Saved Serch or Lookup field search for Getting value or id of Fields not visible On UI or xml https://www.xmlvalidation.com/ XML Validate Load Record--->selectLine--->CommitLine--->Save [Set Sublist field Data After Submit] Null Check Custom Check SEND MAIL WITH FILE ATTACHED EXECUTION CONTEXT || runtime.context In BeforeLoad Use This When Trying to Get Value In BeforeLoad Convert String Into JSON Freemarker Below 2.3.31 use ?eval || above use ?eval_json Design Of Full Advance PDF Template using Suitescript PART 1: Design Of Full Advance PDF Template using Suitescript PART 2: Iterate Through Complex Nested JSON Object Freemarker || BFO || Advance PDF HTML Template WORKING JSON OBJ ITERATE FreeMarker get String convert to JSON ,Iterate through it ,Print Values In Table Series Addition Freemarker Using Loop(List) Modified Null Check || Keep Updated One Here Navigations In Netsuite || Records || etc DATE FORMAT Netsuite Javascript Transform Invoice To Credit Memo NULLCHECK Freemarker||BFO|| XML||Template Before Accessing Any Value Refresh Page Without Pop Up | | client script || Reload Page Easy Manner To Format Date || Date to simple Format || MM/DD/YYYY Format ||Simple Date CUSTOM ERROR MESSAGE CREATE HOW TO STOP MAP/REDUCE SCRIPT RUNNING FILTER ON JSON OBJECT SAVED SEARCH CRITERIA LOGIC FOR WITHIN DATE | | WITHIN START DATE END DATE TO GET Line no. also of Error NETSUITE SERVER TIMEZONE : (GMT-05:00) Eastern Time (US & Canada) || Problem resolved for Map/reduce Timezone issue for Start Date in map/reduce || RESOLVED THE ISSUE compare/check date that it lies between two dates or not || Use of .getTime() object of Date TO FIND ALL TASKS WITHIN SO START DATE AND END DATE || SAVED SEARCH CODE WORDS Saved Search Get only one Result || getRange netsuite - SuiteScript 2.0 Add filters to saved search in script - Stack Overflow || Addition in saved search filter MASS DELETE ALL RCORD FROM SAVED SEARCH DATA IN PARAMETER|| ADD SS IN THE DEPLOYMENT PARAMETER SAVED SEARCH DATE COMPARE AND GET RESULT IN DAYS HOURS MINUTES Multiple Formula Columns Comment In Saved Search || Saved search used SQL language for writing formula Logic Set Addressbook Values || Addressbook is a subrecord SuiteQL || N/Query Module || Support SQL query VALIDATE 2 DATES LIE BETWEEN 2 DATES OR NOT || OVERLAPPING CASE ALSO Weeks Within two dates:
Delete Duplication SQL Using Subquery to find salary above average Sorting Rank Number In Sql find nth Salary in SQL sql - Counting rows in the table which have 1 or more missing values - Stack Overflow How to create customized quarter based on a given date column sql sql server - Stack Overflow get total sales per quarter, every year delete duplicate for table without primary key SQL Server REPLACE Function By Practical Examples adding row_number row_id to table find total sales per cateogry each year change empty string into null values Case when to update table update table using replace function How to Use CASE WHEN With SUM() in SQL | LearnSQL.com find each year sale in each city and state, then sum them all using regexp_replace to remove special chracter postgresql find quarter sale in each state, and sum it using unbounded preceding, and using percent rank create delimiter for the phone number regexp_replace to remove special characters using row between to cummulative sum update null values using WHERE filter insert into table command sum cummulative value in SQL SQL Important syntax Auto Increment in SQL read json file on postgresql Moving Average n Moving Total pivot on potgresql Rollup and Cube date function in postgresql select specify part of string using substring change column data type exclude null values in sql how to exclude zero in our counting finding outlier in sql how to import data with identifier (primary key) email and name filtering in sql trimming and removing particular string from sql replace string on sql regexp to find string in SQL answers only about email, identifier, lower, substring, date_part, to_char find percentage of null values in total remove duplicate on both tables v2 any and in operator string function moreee bucket function find perfomance index in sql find top max and top min finding world gdp formula (SUM OVER) find month percentage change find highest height in sql with row_number and subquery JOIN AND UNION offset and limit in sql function and variables using views on postgresql find cummulative sums in postgresql find null and not null percentage find specific strings or number in SQL using case when and CAST function Lpad function in Postgresql and string function in general Regexp function in postgresql regular expressions example in postgresql And FUZZYSTRMATCH updated method of deleting duplicates determine column types
Initiate MS Team Group Chat via PowerApps Save the current users email as a variable Creates variable with a theme colour palette Send an email from the current user Filters a data source based on the current logged in user Patch data fields, including a choice column to a data source Changes the colour of a selected item in a Gallery Filter and search a data source via a search box and dropdown Changes visibility based on the selection of another Gallery - used for "Tabs" Display current users first name Fix: Combobox/Search is empty check not working - Power Platform Community Retrive a user photo from SharePoint Get user photo from office365 connector from gallery Set a variable with the current users first name, from the currentUser variable Extract values from a collection Extract value from combo box Extract vale from combo box and convert to string/text Convert collection to JSON Combo box values to collection Show newly created items first / sort by most recent entry, will only show items created today Validate/Validation text box length and/or combo boxes contain data Text input validation - turns border red Lookup value against a text input and disable or enable displaymode Lookup items from a textbox Sets items to choices drop down or combo box Change text value based on lookup results returns tops 10 results and sorts by most recent created date Sets a variable with spilt text from a link - YouTube in this case Pass a null or empty value from Power Apps to a flow
Linuxteaching | linux console browser javascript Debugging in Visual Studio Code C# - Visual Studio Marketplace C# - Visual Studio Marketplace dotnet-install scripts - .NET CLI | Microsoft Docs dotnet-install scripts - .NET CLI | Microsoft Docs undefined .NET Tutorial | Hello World in 5 minutes Configuration files – Nordic Developer Academy CacheStorage.open() - Web APIs | MDN TransIP API Install .NET Core SDK on Linux | Snap Store .NET Tutorial | Hello World in 5 minutes Creating Your First Application in Python - GeeksforGeeks Riverbank Computing | Download Managing Application Dependencies — Python Packaging User Guide Building your first mobile application using Python | Engineering Education (EngEd) Program | Section Building your first mobile application using Python | Engineering Education (EngEd) Program | Section Building your first mobile application using Python | Engineering Education (EngEd) Program | Section Building your first mobile application using Python | Engineering Education (EngEd) Program | Section ActivePython-2.7 - ActiveState - Builds - ActiveState Platform Installation guidance for SQL Server on Linux - SQL Server | Microsoft Docs Ellabusby2006/Anzelmo2022 Ik wil de PHP-versie updaten van Ubuntu / Debian | TransIP Ik wil de PHP-versie updaten van Ubuntu / Debian | TransIP W3Schools Tryit Editor .NET installeren op Debian - .NET | Microsoft Learn .NET installeren op Debian - .NET | Microsoft Learn .NET installeren op Debian - .NET | Microsoft Learn .NET installeren op Debian - .NET | Microsoft Learn How To Build A Simple Star Rating System - Simon Ugorji | Tealfeed Visual Studio Code language identifiers Running Visual Studio Code on Linux HTML Forms Installeren .NET op Debian - .NET | Microsoft Learn StarCoderEx (AI code generator) - Visual Studio Marketplace Installeren .NET op Linux zonder een pakketbeheerder te gebruiken - .NET | Microsoft Learn ASP.NET Tutorial | Hello World in 5 minutes | .NET Deploy and connect to SQL Server Linux containers - SQL Server | Microsoft Learn Settings Sync in Visual Studio Code Settings Sync in Visual Studio Code TransIP API Monitoring as Code
.NET Tutorial | Hello World in 5 minutes docx2html - npm Running Visual Studio Code on Linux Connect to an ODBC Data Source (SQL Server Import and Export Wizard) - SQL Server Integration Services (SSIS) | Microsoft Docs .NET installeren in Linux zonder pakketbeheer - .NET | Microsoft Docs TransIP API TransIP API TransIP API TransIP API .NET installeren in Alpine - .NET | Microsoft Docs .NET installeren op Ubuntu - .NET | Microsoft Docs .NET installeren op Ubuntu - .NET | Microsoft Docs Geïnstalleerde .NET-versies controleren op Windows, Linux en macOS - .NET | Microsoft Docs Install .NET Core SDK on Linux | Snap Store .NET Tutorial | Hello World in 5 minutes Riverbank Computing | Download Managing Application Dependencies — Python Packaging User Guide Building your first mobile application using Python | Engineering Education (EngEd) Program | Section Building your first mobile application using Python | Engineering Education (EngEd) Program | Section Building your first mobile application using Python | Engineering Education (EngEd) Program | Section Building your first mobile application using Python | Engineering Education (EngEd) Program | Section ActivePython-2.7 - ActiveState - Builds - ActiveState Platform html - How to get mp3 files to play in iPhone Safari web browser? - Stack Overflow Work with review data  |  Google Business Profile APIs  |  Google Developers Javascript save text file - Javascript .NET installeren op Debian - .NET | Microsoft Learn Deploy and connect to SQL Server Linux containers - SQL Server | Microsoft Learn Settings Sync in Visual Studio Code Settings Sync in Visual Studio Code
Working with JSON in Freemarker - Liferay Community Freemarker parse a String as Json - Stack Overflow Online FreeMarker Template Tester Compiler Validate XML files Convert String Into JSON Freemarker Below 2.3.31 use ?eval || above use ?eval_json Working with JSON in Freemarker - Liferay Community Working with JSON in Freemarker - Liferay Community java - Freemarker iterating over hashmap keys - Stack Overflow java - Freemarker iterating over hashmap keys - Stack Overflow FreeMarker get String convert to JSON ,Iterate through it ,Print Values In Table Online FreeMarker Template Tester || freemarker compiler Series Addition Freemarker Using Loop(List) How to Convert a string to number in freemarker template - Stack Overflow javascript - Grouping JSON by values - Stack Overflow DATE FORMAT Netsuite Javascript Freemarkup | | Iterate through nested JSON all Values Using Nested For Loop Nested JSON Iterate Using BFO javascript - Error parsing XHTML: The content of elements must consist of well-formed character data or markup - Stack Overflow NULLCHECK Freemarker||BFO|| XML||Template Before Accessing Any Value ADVANCE PDF HTML TEMPLATE 7 Tips for Becoming a Pro at NetSuite’s Advanced PDF/HTML HTML Tag Center Does Not Work in Advanced PDF/HTML Templates|| align center HTML BFO NOTES Advanced PDF/HTML Template - NetSuite (Ascendion Holdings Inc) Check Template Code Is Very Different || Bill Payment check template Check Template Code Is Very Different || Bill Payment check template Intro to NetSuite Advanced PDF Source Code Mode | Tutorial | Anchor Group NETSUITE GUIDE OVER PDF/HTML TEMPLATE EDITOR suitescript - Ability to choose between multiple PDF templates on a Netsuite transaction form - Stack Overflow BFO DIV tr td etc User Guide|| USEFULL IMPORTANT Border radius in advanced html/pdf templates is not supported? : Netsuite Comma seperated Number With 2 DECIMAL PLACE || FREEMARKER || ADVANCE PDF HTML TEMPLATE
001-hello-world: Hello Image Classification using OpenVINO™ toolkit 002-openvino-api: OpenVINO API tutorial 003-hello-segmentation: Introduction to Segmentation in OpenVINO 004-hello-detection: Introduction to Detection in OpenVINO 101-tensorflow-to-openvino: TensorFlow to OpenVINO Model Conversion Tutorial 102-pytorch-onnx-to-openvino: PyTorch to ONNX and OpenVINO IR Tutorial 103-paddle-onnx-to-openvino: Convert a PaddlePaddle Model to ONNX and OpenVINO IR 104-model-tools: Working with Open Model Zoo Models 210-ct-scan-live-inference: Live Inference and Benchmark CT-scan Data with OpenVINO 201-vision-monodepth: Monodepth Estimation with OpenVINO 210-ct-scan-live-inference: Live Inference and Benchmark CT-scan Data with OpenVINO 401-object-detection-webcam: Live Object Detection with OpenVINO 402-pose-estimation-webcam: Live Human Pose Estimation with OpenVINO 403-action-recognition-webcam: Human Action Recognition with OpenVINO 211-speech-to-text: Speech to Text with OpenVINO 213-question-answering: Interactive Question Answering with OpenVINO 208-optical-character-recognition: Optical Character Recognition (OCR) with OpenVINO 209-handwritten-ocr: Handwritten Chinese and Japanese OCR 405-paddle-ocr-webcam: PaddleOCR with OpenVINO 305-tensorflow-quantization-aware-training: Optimizing TensorFlow models with Neural Network Compression Framework of OpenVINO by 8-bit quantization 302-pytorch-quantization-aware-training: Optimizing PyTorch models with Neural Network Compression Framework of OpenVINO by 8-bit quantization 301-tensorflow-training-openvino: Post-Training Quantization with TensorFlow Classification Model 301-tensorflow-training-openvino: From Training to Deployment with TensorFlow and OpenVINO 204-named-entity-recognition: Named Entity Recognition with OpenVINO
If statement with switch delete duplicates from an array loop and find class Nullish with an Object - basic tranverse classes in a list substring capitalize substring text with elipses array.at() js media query Dynamic Filter - buttons advanced flow converted if statement Add an array to a HTML dataset getElement Function Intersection Observer template intersection Observer Basic Example fetch data, display and filter for of loop - get index get random index value from an array fetch with post method get id value from url debounce for scrolling get element or elements check functions return values from functions indexOf explantion sorting basic using for-of loop for getting index value of iteration import json data into a JS module Splide slider with modal JS change active class if url path matches Pagination / array of arrays FIlter array or return full array price formatting ignores wrapping element on click Create a dummy array with numbers Random Generated Number Dummy array - list items dummy id Limits the amount of text Random Number generator function format date function Remove duplicates from JSON array data Filter Posts from state remove duplicates and create object simple ternary remove transition with propertyName sorting in reverse counting items using reduce splice explanation Declaring Variables Get primitive properties on a number / string etc using proto check an array of objects exists / check using regex Destructuring nested function scope IFFE function basic switch Switch with function passing an object check length of object while loops (for when the number we are iterating over is unknown) Ternary with 2 / 3 conditions for of loop with index array nested ternary operator callbacks Method Borrowing this keyword and arrow functions rest operator - args functions p1 rest operator - args functions p2 for of loop with index and entries callback functions explained version 1 callback functions explained version 2 Form and value IF Element shorthand function as a callback inside a higher order function Using param for symbol remove 'px' from number scrolling behaviour test 1 clearing event listeners new URL applying css vars scroll behaviours testing intersection observer intersection observer with loop JS docs - writing js docs check is key exists call() nested ternary with function forEach with function and ...args using template literals filter duplicates get class by indexOf returning ternary operator remove children from parent bootstrap rows with cols fetching multple data endpoints Promise.all remove file extension Js snippet for aria expanded passes this from a function containing a listener, to another function dynamic function to change icons compare arrays and push to an empty instead of pushing an object to a data array return the Object.entries(data).map Creating Dynamic filtering using JSON Advanced toggling with 3rd param of force Dynamic Key Assignment flatmap for arrays passing key value pairs from one object to another FInding Prototype Methods Returns Items that are true returning the item data from an array of objects sorting via switch statement filtering with checkboxes JS Docs cheatsheat for param types matches Js syles object on a div element bind grouping groupby() checkbox example conditions modal for text links reduce - dynamic toggle class with force returning objects setProperty with CSS variables CONVERT setProperty with CSS variables to object and functions CONVERT setProperty with CSS variables to object and functions version 2 uses an object instead of a switch statement cookie object functions mapping 3 Async Await / Promise resolve reject filter filter out items from array1 based on array2 promise with init function using maps = toggling class on select Any amount of args in a function Mapping with selections
Microsoft Powershell: Delete registry key or values on remote computer | vGeek - Tales from real IT system Administration environment How to Upload Files Over FTP With PowerShell Configure attack surface reduction in Microsoft Defender using Group Policy or PowerShell – 4sysops WinPE: Create bootable media | Microsoft Learn powershell - Can I get the correct date mixing Get-Date and [DateTime]::FromFileTime - Stack Overflow Search-ADAccount (ActiveDirectory) | Microsoft Docs Manual Package Download - PowerShell | Microsoft Docs Get a List of Expired User Accounts in AD Using PowerShell Search-ADAccount (ActiveDirectory) | Microsoft Docs How to Stop an Unresponsive Hyper-V Virtual Machine | Petri IT Knowledgebase Adding PowerShell 7 to WinPE - Deployment Research Send-MailMessage (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn How to run a PowerShell script as a Windows service – 4sysops Connect to Exchange Online with PowerShell - The Best Method Find the Full Windows Build Number with PowerShell How to find all the ADFS servers in your environment and run diagnostics against them | Michael de Blok How to find ADFS servers in the environment - Windows Server path - PowerShell script working directory (current location) - Stack Overflow How to get the path of the currently executing script in PowerShell [SOLVED] Unable to Delete Hyper-V VM Checkpoints - Spiceworks Published Applications – Carl Stalhood VMM Reporting | Aidan Finn, IT Pro Use PowerShell to search for string in registry keys and values - Stack Overflow Search for Uninstall Strings - Jose Espitia
INCOME AND SPEND SUMMARY: Monthly regular gift income (DD, CC, PayPal) INCOME AND SPEND SO AGENCT AND PAYROLL INCOME AND SPEND Non Monthly DD income INCOME AND SPEND SUMMARY Donation (50020) Income and Spend Summary Appeal (50050) INCOME AND SPEND SUMMARY:FAV Donation (50060) INCOME AND SPEND SUMMARY: In Memory Of (IMO) (50170) INCOME AND SPEND SUMMARY: Single Fundraised Sales (51040)+Books(51050) INCOME AND SPEND SUMMARY: Single Fundraised Sales (51040)+Books(51050) INCOME AND SPEND SUMMARY: Single Fundraised Sales (51040)+Books(51050) INCOME AND SPEND SUMMARY: Single Fundraised Sales (51040)+Books(51050) INCOME AND SPEND SUMMARY: Raffle ticket sales INCOME AND SPEND SUMMARY:51060 - Community Fundraising INCOME AND SPEND SUMMARY:50130 - Collecting Tins INCOME AND SPEND SUMMARY:50110 - Gift Aid REGULAR GIVING SUMMARY: Monthly regular gift payments CC/PP/DD SINGLE GIFT SUMMARY: Single gift payments (donations only) NEW SUPPORTER INCOME: Single gift payments NEW SUPPORTER INCOME: Monthly regular gift income NEW SUPPORTER INCOME: New monthly regular gifts established (new supporters only) NEW SUPPORTER INCOME: Single gift income (new supporters only) EXISTING BASE: INCOME FROM EXISTING REGULAR INSTRUCTIONS EXISTING BASE Monthly regular gift payments (CC/PP/DD) EXISTING BASE: Existing Non monthly DD income Existing Base other regular giving income EXISTINGBASE Cumulative monthly regular gift payments EXISTING BASE Monthly regular gift income from new regular donor EXISTING BASE single gift donations income - existing supporters EXISTING BASE Single gift donations EXISTING BASE: Single gift income - high value gifts Existing Base: Workplace giving income EXISTING BASE Volunteer fundraising & other cash income (Community Events, FB fundraiser, Lilo) EXISTING BASE: Gift aid income ES ES Monthly cc/pp/dd Income existing ES ES Monthly cc/pp/dd Payments existing Single Single gift under 500 Total Regular giving Existing WORKPLACE GIVING
Windows: 7/Vista/XP/2K tcp tunneling nbtscan: Multiple-OS command line utility: NETBIOS nameserver scanner Linux: Simulating slow internet connection Linux/Ubuntu: Changing gateway address and flush/restart network interface Linux: SSH Tunnel to local machines. Linux: Get my external ip address Linux/Ubuntu: Enable/Disable ping response Linux: Cron: Reset neorouter Linux/Ubuntu: sniff tcp communications (binary output) Liunux/Ubuntu: get a list of apps that are consuming bandwidth Linux/Ubuntu: iptables: block external outgoing ip address Linux/Ubuntu: How to setup pptp vpn server Linux: NGINX: Setup alias Linux: ssh without password Linux: NGINX: Proxy reverse Linux: one way remote sync using unison and ssh Linux: Open ssh port access using a combination (knocking technique) Linux: ssh login for only one user Linux/Ubuntu: Server: Configuring proxies Linux/Ubuntu: Share folder with Windows (via samba) Linux: Get all my local IP addresses (IPv4) Linux/Ubuntu: list ufw firewall rules without enabling it Linux/Ubuntu: Connect windows to shared folder as guest Linux/Ubuntu: Avoid connection from specific ip address without using iptables Linux: Telegram: Send telegram message to channel when user logged via ssh Linux/Ubuntu: nginx: Configuration to send request to another server by servername Modbus/ModPoll Linux/Neorouter: watchdog for neorouter connection Linux: libgdcm: Send dicom images to PACS using gdcmscu. Ubuntu: mount full rw cifs share Linux/Ubuntu: NGINX: Basic authentication access Linux/Ubuntu: Mosquitto: Enable mqtt service Linux: Detect if port is closed from command line Linux: Get internet content from command line using wget Mac OSX: Port redirection Windows 10: Port redirection/Tunneling Python: Telegram Bot API: Ask/Answer question PHP: Post a XML File using PHP without cURL Nginx: Call php without extension PHP: Send compressed data to be used on Javascript (i.e. Json data) PHP: Download file and detect user connection aborted Linux/Proxmox: Enable /dev/net/tun for hamachi PHP: using curl for get and post NGINX: Creating .htpasswd
Linux: Free unused cache memory Linux: mounting VirtualBox VDI disk using qemu nbtscan: Multiple-OS command line utility: NETBIOS nameserver scanner Linux: Saving one or more webpages to pdf file Linux: Creating iso image from disk using one line bash command Linux/PostgreSQL: Getting service uptime Linux: Simulating slow internet connection Linux/Ubuntu: Changing gateway address and flush/restart network interface Linux: SSH Tunnel to local machines. Linux: Fast find text in specific files using wild cards Linux: Merging two or more pdf files into one, by using ghostscript Linux: Cron command for deleting old files (older than n days) Linux: Get my external ip address Linux: Get the size of a folder Linux: Get the size of a folder Linux: Get the size of a folder Lazarus/Linux: Connect to SQLServer using ZeosLib component TZConnection Linux/Ubuntu: Get ordered list of all installed packages Linux/Ubuntu: Enable/Disable ping response Linux/DICOM: Very small DICOM Server Linux: Cron: Reset neorouter Linux/Oracle: Startup script Linux/Ubuntu: detect if CD/DVD disk ispresent and is writeable Linux/PHP: Let www-data run other commands (permission) Linux/DICOM: Create DICOM Video Linux: Apply same command for multiple files Linux/Ubuntu: sniff tcp communications (binary output) Linux: rsync: Backup remote folder into local folder Linux: Installing Conquest Dicom Server Linux: Get number of pages of PDF document via command line Linux: split file into pieces and join pieces again Linux/Ubuntu: iptables: block external incoming ip address Liunux/Ubuntu: get a list of apps that are consuming bandwidth Linux/Ubuntu: iptables: block external outgoing ip address Linux/DICOM: dcmtk: Modify data in dicom folder Linux/Docker: save/load container using tgz file (tar.gz) Linx/Ubuntu: solve problem apt-get when proxy authentication is required Docker: Clean all Linux: ImageMagick: convert first page of pdf document to small jpeg preview Linux: Convert pdf to html PostgreSQL: backup/restore remote database with pg_dump Linux/Ubuntu: How to setup pptp vpn server Linux/Xubuntu: Solve HDMI disconnection caused by non-supported resolution Linux: List all users PostgreSQL: Log all queries Linux: NGINX: Setup alias Linux: ssh without password Linux: NGINX: Proxy reverse Linux: one way remote sync using unison and ssh Linux: Deleting files keeping only lastest n-files in specific folder Linux: Open ssh port access using a combination (knocking technique) Linux: Get Memory percentages. Linux: Can not sudo, unkown user root (solution) Linux: PDF: How to control pdf file size Linux: ssh login for only one user Linux: get pid of process who launch another process Linux: PHP: Fix pm.max server reached max children Linux/Ubuntu: Server: Configuring proxies Linux: Compare two files displaying differences Sox: Managing audio recording and playing Linux: VirtualBox: Explore VDI disk without running virtualbox Linux: Get machine unique ID Linux: rsync only files earlier than N days Linux: Create Virtual Filesystem Linux/Ubuntu: Server: Add disks to lvm Python/Ubuntu: connect to sqlserver and oracle Linux/Ubuntu: Share folder with Windows (via samba) Linux: Get all my local IP addresses (IPv4) Linux/Ubuntu: list ufw firewall rules without enabling it Linux/Ubuntu: Connect windows to shared folder as guest Linux: delete tons of files from folder with one command Linux/Ubuntu: Avoid connection from specific ip address without using iptables Linux: Telegram: Send telegram message to channel when user logged via ssh Linux/Ubuntu: Create barcode from command line. Linux: PHP/Python: Install python dependencies for python scripts and run scripts form php Linux/Ubuntu: nginx: Configuration to send request to another server by servername Linux/Ubuntu: Fix Imagemagick "not authorized" exception Linux/Neorouter: watchdog for neorouter connection Linux: libgdcm: Send dicom images to PACS using gdcmscu. Ubuntu: mount full rw cifs share Linux/Ubuntu: NGINX: Basic authentication access PostgreSQL: Backup/Restore database from/to postgres docker. Linux/Ubuntu: Mosquitto: Enable mqtt service Linux/PHP: Connect php7.0 with sqlserver using pdo. Linux: Detect if port is closed from command line Linux: PHP: Run shell command without waiting for output (untested) Linux/Ubuntu: OS Installation date Linux/Ubuntu: Join pdf files from command line using pdftk Linux: Get internet content from command line using wget Linux/PHP/SQL: Ubuntu/Php/Sybase: Connecting sysbase database with php7 Linux/Ubuntu: Solve LC_ALL file not found error Linux/Ubuntu: Run window program with wine headless on server Linux/Docker: List ip addresses of all containers. Linux: sysmon script (memory usage) Linux: Firebird: Create admin user from command line Linux/Firebird: Backup/Restore database Git: Update folder linux/dfm-to-json/docker Linux/Oracle/Docker: 19c-ee Linux/Docker: SQL Server in docker Linux/PHP/Docker: Run docker command from php/web Linux/Docker: Oracle 12-ee docker Linux: Oracle: Backup using expdp Linux/PHP/NGINX: Increase timeout Lazarus/Fastreport: Install on Linux Linux/Ubuntu: fswatch: watch file changes in folder Linux/Docker: SQLServer: mssql-scripter: backup/restore Linux/Ubuntu: Enable/disable screensaver Linux: SQLServer: Detect MDF version Linux/Docker: Oracle install 19c (II) on docker FirebirdSQL: Restore/Backup Linux/NGINX: Redirect to another server/port by domain name Linux/Proxmox: Enable /dev/net/tun for hamachi Linux/Ubuntu: Create sudoer user Linux: PDF-url to text without downloading pdf file Docker: Reset logs
Linux/PostgreSQL: Getting service uptime Lazarus/Linux: Connect to SQLServer using ZeosLib component TZConnection Linux/Oracle: Startup script PostgreSQL: backup/restore remote database with pg_dump PostgreSQL: Log all queries PostgreSQL: Create DBLINK PostgreSQL: Database replication Python/Ubuntu: connect to sqlserver and oracle Oracle/SQL: Generate range of dates PostgreSQL: Convert records to json string and revert to records PostgreSQL: Extract function DDL PostgreSQL: Backup/Restore database from/to postgres docker. Linux/PHP: Connect php7.0 with sqlserver using pdo. PostgreSQL: Trigger template PostgreSQL: Count all records in spite of using offset/limit PHP/SQL: Reverse SQL Order in sentence PostgreSQL: Filter using ilike and string with spaces PostgreSQL: Create log table and trigger Postgres: Get string all matches between {} Linux/PHP/SQL: Ubuntu/Php/Sybase: Connecting sysbase database with php7 PostgreSQL: Must know PostgreSQL: Debito, Credito, Saldo PostgreSQL: Count total rows when range is empty PostgreSQL: Extremely fast text search using tsvector PostgreSQL: Create a copy of DB in same host PHP/PostgreSQL: Event Listener Linux: Firebird: Create admin user from command line SQL: CTE Parent-child recursive Windows/Docker/Firebird: Backup remote database Linux/Firebird: Backup/Restore database PostgreSQL: Set search path (schemas) for user Firebird on Docker Firebird: Find holes in sequence (missing number) Linux/Oracle/Docker: 19c-ee Firebird: Create an Array of integers from String Oracle: Change Sys/System user pasword Oracle: Create/drop tablespace Oracle: Create User/Schema Linux: Oracle: Backup using expdp Oracle: Get slow queries Linux: SQLServer: Detect MDF version Linux/Docker: Oracle install 19c (II) on docker FirebirdSQL: Restore/Backup Firebird: Age Calculation using Ymd format Postgresql: Age calculation to Ymd Firebird: Create Range of dates, fraction in days, hours, minutes, months or years Firebird: DATE_TO_CHAR Function (like Oracle's TO_CHAR) MS SQLServer Backup Database MS SQLServer: Detect long duration SQL sentences Firebird: Fast Search Firebird: Code Generator FirebirdSQL 2.x: DATE_TO_CHAR Procedure (like Oracle's TO_CHAR) MSSQLServer: Sequences using Date based prefix format Firebird: Query to get "Range of time" based on unit: days, months, years, etc Firebird: Generate a range of numbers. Firebird 5.x: Config for D7 compatibility.
CSS: Setup a perfect wallpaper using background image CSS: Ellipsis at end of long string in element Javascript: Is my browser on line? CSS: Crossbrowser blur effect Javascript: calculating similarity % between two string Javascript: vanilla and crossbrowser event handler accepting arguments Javascript: convert native browser event to jQuery event. Linux: Convert pdf to html Javascript: Convert proper name to Capital/Title Case Javascript: Disable Back Button - (untested) HTML/CSS: Login Page HTML/CSS: Circular progress bar using css HTML/CSS: Data column organized as top-down-right structure HTML/CSS: Printing page in letter size Javascript: Get file name from fullpath. HTML/CSS: Header/Body/Footer layout using flex Windows: Chrome: Avoid prompt on custom url calling by changing registry Javascript: Get filename and path from full path filename Javascript: Clone array/object. CSS + FontAwesome: Battery charging animation CSS: spin element HTML/CSS: Switch with input CSS: Transparent event clicks having translucid front div element CSS: Blurry Glass Effect CSS: Grow element size when mouse hover Javascript/jQuery: Input with fixed prefix. Javascript: ProtocolCheck Javascript: Beep Telegram: Chat/html (personal) PHP: php-imagick: Thumbnail from thispersondoesnotexists Javascript: Get host info Javascript: Vanilla async get HTML/CSS: Rotating circle loader PHP: Post JSON object to API without curl Javascript: Post data to new window. CSS/Android Ripple Effect in Pure CSS OSRM/API: OpenStreet Maps Calculate distance between points OSM/OpenLayers: Place marker on coordinates using custom image. PHP: Send compressed data to be used on Javascript (i.e. Json data) PHP/JSignature: Base30 to PNG Javascript: Query Params to JSON Javascript/CSS: Ripple Effect - Vanilla Delphi/UniGUI: Disable load animation PHP: Send basic authentication credentials Delphi: Post JSON to API PHP: Receiving Bearer Authorization token from header Linux/NGINX: Redirect to another server/port by domain name Javascript: Async/Await Web Programming: Fastest way for appending DOM elements CSS: Animated progress bar CSS: Shake element CSS: Align elements like windows explorer icons layout style Javascript: Submit JSON object from form values Javascript: Fetch POST JSON Linux: PDF-url to text without downloading pdf file Javascript/in Browser: Jump to anchor Javascript/NodeJS: Uglify js files CSS: Two of the best readable fonts in web CSS: Dark/Theater background Javascript: Detect inactivity / idle time Svelte: Dynamic component rendering CSS: Responsive Grid NGINX: Creating .htpasswd Javascript: Wait until all rendered Javascript: Print PDF directly having URL Sveltekit: Create component dynamically Sveltekit: Create component dynamically Sveltekit: Import component dynamically CSS: Animation/Gelatine CSS: Set width/height to max available HTML: Waze map embed into webpage Cordova/Mobile: App ejemplo para autenticar con huella digital. Cordova: Fingerprint auth Javascript/HTML: Detect if element if off screen
Javascript: Is my browser on line? Javascript: calculating similarity % between two string Javascript: vanilla and crossbrowser event handler accepting arguments Javascript: convert native browser event to jQuery event. Javascript: Convert proper name to Capital/Title Case Javascript: Disable Back Button - (untested) Javascript: Get file name from fullpath. Javascript: Get filename and path from full path filename Javascript: Clone array/object. Javascript/jQuery: Input with fixed prefix. Javascript: ProtocolCheck Cordova: Fix FCM plugin error Cordova: Call function at main App from inappbrowser. Javascript: Beep Telegram: Chat/html (personal) Javascript: Get host info Javascript: Vanilla async get Javascript: Post data to new window. OSM/OpenLayers: Place marker on coordinates using custom image. Javascript: Query Params to JSON Javascript/CSS: Ripple Effect - Vanilla Vanilla Javascript: Upload file Javascript: Async/Await Web Programming: Fastest way for appending DOM elements Javascript: Submit JSON object from form values Javascript: Fetch POST JSON Javascript/in Browser: Jump to anchor Javascript/NodeJS: Uglify js files Javascript: Detect inactivity / idle time Svelte: Dynamic component rendering Javascript: Change object property position Javascript: Wait until all rendered Javascript: Print PDF directly having URL Replace URL's with Links Javascript: Wait until fonts and images loaded Cordova/Mobile: App ejemplo para autenticar con huella digital. Javascript/HTML: Detect if element if off screen
substr(): It takes two arguments, the starting index and number of characters to slice. substring(): It takes two arguments, the starting index and the stopping index but it doesn't include the character at the stopping index. split(): The split method splits a string at a specified place. includes(): It takes a substring argument and it checks if substring argument exists in the string. includes() returns a boolean. If a substring exist in a string, it returns true, otherwise it returns false. replace(): takes as a parameter the old substring and a new substring. replace(): takes as a parameter the old substring and a new substring. charAt(): Takes index and it returns the value at that index indexOf(): Takes a substring and if the substring exists in a string it returns the first position of the substring if does not exist it returns -1 lastIndexOf(): Takes a substring and if the substring exists in a string it returns the last position of the substring if it does not exist it returns -1 concat(): it takes many substrings and joins them. startsWith: it takes a substring as an argument and it checks if the string starts with that specified substring. It returns a boolean(true or false). endsWith: it takes a substring as an argument and it checks if the string ends with that specified substring. It returns a boolean(true or false). search: it takes a substring as an argument and it returns the index of the first match. The search value can be a string or a regular expression pattern. match: it takes a substring or regular expression pattern as an argument and it returns an array if there is match if not it returns null. Let us see how a regular expression pattern looks like. It starts with / sign and ends with / sign. repeat(): it takes a number as argument and it returns the repeated version of the string. Concatenating array using concat indexOf:To check if an item exist in an array. If it exists it returns the index else it returns -1. lastIndexOf: It gives the position of the last item in the array. If it exist, it returns the index else it returns -1. includes:To check if an item exist in an array. If it exist it returns the true else it returns false. Array.isArray:To check if the data type is an array toString:Converts array to string join: It is used to join the elements of the array, the argument we passed in the join method will be joined in the array and return as a string. By default, it joins with a comma, but we can pass different string parameter which can be joined between the items. Slice: To cut out a multiple items in range. It takes two parameters:starting and ending position. It doesn't include the ending position. Splice: It takes three parameters:Starting position, number of times to be removed and number of items to be added. Push: adding item in the end. To add item to the end of an existing array we use the push method. pop: Removing item in the end shift: Removing one array element in the beginning of the array. unshift: Adding array element in the beginning of the array. for of loop Unlimited number of parameters in regular function Unlimited number of parameters in arrow function Expression functions are anonymous functions. After we create a function without a name and we assign it to a variable. To return a value from the function we should call the variable. Self invoking functions are anonymous functions which do not need to be called to return a value. Arrow Function Object.assign: To copy an object without modifying the original object Object.keys: To get the keys or properties of an object as an array Object.values:To get values of an object as an array Object.entries:To get the keys and values in an array hasOwnProperty: To check if a specific key or property exist in an object forEach: Iterate an array elements. We use forEach only with arrays. It takes a callback function with elements, index parameter and array itself. The index and the array optional. map: Iterate an array elements and modify the array elements. It takes a callback function with elements, index , array parameter and return a new array. Filter: Filter out items which full fill filtering conditions and return a new array reduce: Reduce takes a callback function. The call back function takes accumulator, current, and optional initial value as a parameter and returns a single value. It is a good practice to define an initial value for the accumulator value. If we do not specify this parameter, by default accumulator will get array first value. If our array is an empty array, then Javascript will throw an error every: Check if all the elements are similar in one aspect. It returns boolean find: Return the first element which satisfies the condition findIndex: Return the position of the first element which satisfies the condition some: Check if some of the elements are similar in one aspect. It returns boolean sort: The sort methods arranges the array elements either ascending or descending order. By default, the sort() method sorts values as strings.This works well for string array items but not for numbers. If number values are sorted as strings and it give us wrong result. Sort method modify the original array. use a compare call back function inside the sort method, which return a negative, zero or positive. Whenever we sort objects in an array, we use the object key to compare. Destructing Arrays : If we like to skip on of the values in the array we use additional comma. The comma helps to omit the value at that specific index
GitHub - ChrisTitusTech/winutil How to install CAB file for updates and drivers on Windows 10 - Pureinfotech launch command, longer and shorter Launching a startup program to run as administrator Install Windows Update Powershell Windows and MS office activation windows group policy update Remove all the policies applied to Edge browser. Remove ALL the Group Policy settings that are applied to your Windows system. Uninstall Edge System scan Disable Logon Background Image Automatic login in Windows 10 Windows local account password: Set to infinty This script will extract your Retail product key. ProductKey.vbs Completely Remove Windows 11 Widgets MS Edge: Use secure DNS - Undo 'browser managed by...' Move edge cache to ramdisk The Proxy Auto-Configuration: disable by changing this registry key Nilesoft Shell Disable or enable Windows 10 password expiration Install Windows 11 Without a Microsoft Account Block the W10 to 11 migration attempts or reminders Windows: Know the user Disable Hyper-V in Windows Windows: Disable 8.3 file naming convention Reduce Svchost.exe (Service Host) Process Running in Task Manager Clean Up the WinSxS Folder Prevent 3rd-party Suggested Apps from being pinned to the W11 Start Menu (NTLite) Stop UAC for a specific app Launch Edge browser with command line flags Autounattended Clean Up Component Store (WinSxS folder) Disable account expiry in windows 10 Always show all icons in sys tray Clean the WinSxS folder in Windows Remove windows start menu recommended section and setting ads Enable seconds in systray clock Win 11 Boot And Upgrade FiX KiT v5.0 Remove .cache folder from root directory Export all your drivers To safely remove one of the devices Check and disable Recall in Windows 11 Tablet-optimized taskbar Windows Defender: Disable Permanently and Re-enable Enable Windows 11 Dark Mode via registry Edge browser, backup the flags Windows PowerShell script execution: Turn on or off Microsoft store app installation on LTSC Winscript. Make Windows yours
openssh GitLab.com / GitLab Infrastructure Team / next.gitlab.com · GitLab Use Apple touch icon | webhint documentation How to get GPU Rasterization How to get GPU Rasterization Migrating to Manifest V3 - Chrome Developers Migrating to Manifest V3 - Chrome Developers Manifest - Web Accessible Resources - Chrome Developers chrome.webRequest - Chrome Developers chrome.webRequest - Chrome Developers Cross-site scripting – Wikipedia Cross-site scripting – Wikipedia Cross-site scripting – Wikipedia Cross-site scripting – Wikipedia Cross-site scripting – Wikipedia Cross-site scripting – Wikipedia Export-ModuleMember (Microsoft.PowerShell.Core) - PowerShell | Microsoft Learn Sourcegraph GraphQL API - Sourcegraph docs Winge19/vscode-abl: An extension for VS Code which provides support for the Progress OpenEdge ABL language. https://marketplace.visualstudio.com/items?itemName=chriscamicas.openedge-abl Winge19/vscode-abl: An extension for VS Code which provides support for the Progress OpenEdge ABL language. https://marketplace.visualstudio.com/items?itemName=chriscamicas.openedge-abl Winge19/vscode-abl: An extension for VS Code which provides support for the Progress OpenEdge ABL language. https://marketplace.visualstudio.com/items?itemName=chriscamicas.openedge-abl New File Cache · Actions · GitHub Marketplace Cache · Actions · GitHub Marketplace Winge19/cache: Cache dependencies and build outputs in GitHub Actions Winge19/cache: Cache dependencies and build outputs in GitHub Actions Winge19/cache: Cache dependencies and build outputs in GitHub Actions Winge19/cache: Cache dependencies and build outputs in GitHub Actions Winge19/cache: Cache dependencies and build outputs in GitHub Actions history.state during a bfcache traversal · web-platform-tests/wpt@7d60342 Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn Configure CI/CD pipeline with YAML file - MSIX | Microsoft Learn ASP.NET Core 6.0 Blazor Server APP and Working with MySQL DB - CodeProject json Process Herpaderping – Windows Defender Evasion | Pentest Laboratories 0x7c13/Notepads: A modern, lightweight text editor with a minimalist design. Share data - UWP applications | Microsoft Learn What is ie_to_edge_bho_64.dll? What is ie_to_edge_bho_64.dll? What is ie_to_edge_bho_64.dll? What is ie_to_edge_bho_64.dll? Message passing - Chrome Developers
parsing - Parse (split) a string in C++ using string delimiter (standard C++) - Stack Overflow parsing - Parse (split) a string in C++ using string delimiter (standard C++) - Stack Overflow parsing - Parse (split) a string in C++ using string delimiter (standard C++) - Stack Overflow parsing - Parse (split) a string in C++ using string delimiter (standard C++) - Stack Overflow arrays - Convert a hexadecimal to a float and viceversa in C - Stack Overflow arrays - Convert a hexadecimal to a float and viceversa in C - Stack Overflow Why does C++ require breaks in switch statements? - Stack Overflow Why does C++ require breaks in switch statements? - Stack Overflow Why does C++ require breaks in switch statements? - Stack Overflow coding style - Switch statement fall-through...should it be allowed? - Stack Overflow performance - Convert a hexadecimal string to an integer efficiently in C? - Stack Overflow C,C++ ---结构体指针初始化_zlQ_的博客-CSDN博客_c++初始化结构体指针 c++ - C++ 返回局部变量的常引用 - SegmentFault 思否 (23条消息) C++ 去掉const_最后冰吻free的博客-CSDN博客_c++ 去掉const (23条消息) 尾置返回值类型decltype_最后冰吻free的博客-CSDN博客 (23条消息) 变参模板函数_最后冰吻free的博客-CSDN博客_变参模板 (23条消息) 变参表达式_最后冰吻free的博客-CSDN博客 (23条消息) 变参下标_最后冰吻free的博客-CSDN博客 (23条消息) 变参基类_最后冰吻free的博客-CSDN博客 (23条消息) typname 使用_最后冰吻free的博客-CSDN博客 (23条消息) 零初始化_最后冰吻free的博客-CSDN博客 (23条消息) this->使用_最后冰吻free的博客-CSDN博客 (23条消息) 变量模板_最后冰吻free的博客-CSDN博客_变量模板 (23条消息) enable_if使用_最后冰吻free的博客-CSDN博客 (23条消息) 完美转发函数_最后冰吻free的博客-CSDN博客 (23条消息) C++ 函数返回局部变量地址和引用_最后冰吻free的博客-CSDN博客_c++函数返回地址 (23条消息) C++ 函数返回局部变量地址和引用_最后冰吻free的博客-CSDN博客_c++函数返回地址 (23条消息) C++ 函数返回局部变量地址和引用_最后冰吻free的博客-CSDN博客_c++函数返回地址 结构体数组定义时初始化 cJSON的数据结构 C++共用体与结构体区别-C++ union与struct的区别-嗨客网 C++共用体与结构体区别-C++ union与struct的区别-嗨客网 队列的c语言实现_51CTO博客_c语言实现队列 栈的实现 c语言版_51CTO博客_c语言栈的实现以及操作 【专业技术】如何写出优美的C 代码? - 腾讯云开发者社区-腾讯云 【专业技术】如何写出优美的C 代码? - 腾讯云开发者社区-腾讯云 C++ short-C++短整型-C++ short取值范围-嗨客网 C++ short-C++短整型-C++ short取值范围-嗨客网 C++ long long-C++长长整型-C++ long long取值范围-嗨客网 C++ long long-C++长长整型-C++ long long取值范围-嗨客网 C++字符-C++ char-C++字符取值范围-嗨客网 C++枚举enum-C++怎么定义枚举变量-C++枚举的作用-嗨客网 C++三目运算符-C++的三目运算符-C++三目运算符怎么用-什么是三目运算符-嗨客网 C++打印乘法表-嗨客网 C++ while循环打印乘法表-嗨客网 C++ do while循环打印乘法表-嗨客网 (转)sizeof()和_countof()区别 - 榕树下的愿望 - 博客园 详述CRC校验码(附代码)-面包板社区 详述CRC校验码(附代码)-面包板社区 详述CRC校验码(附代码)-面包板社区 C program to convert Hexadecimal to Decimal - Aticleworld Conversion of Hex decimal to integer value using C language (27条消息) vector<char>太慢,自己造一个CharVector_char vector_飞鸟真人的博客-CSDN博客 C++ windows显示器相关信息获取 - 艺文笔记
Q64 Snapshot Array - LeetCode Q63 Reorganize String - LeetCode Q62 Tricky Sorting Cost | Practice | GeeksforGeeks Q62 Minimum Cost To Connect Sticks Q60 PepCoding | Longest Substring With At Most Two Distinct Characters Q59 PepCoding | Line Reflection Q58 Pairs of Non Coinciding Points | Practice | GeeksforGeeks Q57 Avoid Flood in The City - LeetCode Q56 Random Pick with Blacklist - LeetCode Q55 Insert Delete GetRandom O(1) - Duplicates allowed - LeetCode Q55 Insert Delete GetRandom O(1) - Duplicates allowed - LeetCode Q54 Insert Delete GetRandom O(1) - LeetCode Q53 The Skyline Problem - LeetCode Q52 Encode and Decode TinyURL - LeetCode Q51 Maximum Frequency Stack - LeetCode Q50 Brick Wall - LeetCode Q50 Brick Wall - LeetCode Q49 X of a Kind in a Deck of Cards - LeetCode Q48 First Unique Character in a String - LeetCode Q47 Subdomain Visit Count - LeetCode Q46 Powerful Integers - LeetCode Q45 4Sum II - LeetCode Q44 PepCoding | Quadruplet Sum QFind K Pairs with Smallest Sums - LeetCode Q43 PepCoding | Pairs With Given Sum In Two Sorted Matrices Q42 Completing tasks | Practice | GeeksforGeeks Q41 Degree of an Array - LeetCode Q-40 Can Make Arithmetic Progression From Sequence - LeetCode Q39 PepCoding | Double Pair Array Q38 Rabbits in Forest - LeetCode Q-37* Fraction to Recurring Decimal - LeetCode Q36 PepCoding | Pairs With Equal Sum Q35 PepCoding | Count Of Subarrays With Equal Number Of 0s 1s And 2s Q34 PepCoding | Longest Subarray With Equal Number Of 0s 1s And 2s Q-34PepCoding | Pairs With Equal Sum Q33 PepCoding | Count Of Subarrays With Equal Number Of Zeroes And Ones Q32 Contiguous Array - LeetCode Q31 Subarray Sums Divisible by K - LeetCode Q30 PepCoding | Longest Subarray With Sum Divisible By K Q29 Subarray Sum Equals K - LeetCode Q27 Word Pattern - LeetCode Q-26 Isomorphic Strings - LeetCode Q-25 PepCoding | Group Shifted String Q24 Group Anagrams - LeetCode Q23 Valid Anagram - LeetCode Q22 PepCoding | Find Anagram Mappings Q21 PepCoding | K Anagrams Q20 Find All Anagrams in a String - LeetCode Q-19 Binary String With Substrings Representing 1 To N - LeetCode Q-18 PepCoding | Count Of Substrings Having At Most K Unique Characters Q-17 PepCoding | Longest Substring With At Most K Unique Characters Q-16 PepCoding | Maximum Consecutive Ones - 2 Q15 PepCoding | Maximum Consecutive Ones - 1 Q-14 PepCoding | Equivalent Subarrays Q13 PepCoding | Count Of Substrings With Exactly K Unique Characters Q-12 PepCoding | Longest Substring With Exactly K Unique Characters Q-11 PepCoding | Count Of Substrings Having All Unique Characters Q-10 PepCoding | Longest Substring With Non Repeating Characters Q-9 PepCoding | Smallest Substring Of A String Containing All Unique Characters Of Itself Q8 PepCoding | Smallest Substring Of A String Containing All Characters Of Another String | leetcode76 Q-7 PepCoding | Largest Subarray With Contiguous Elements Q-6 PepCoding | Count Of All Subarrays With Zero Sum Q5 PepCoding | Largest Subarray With Zero Sum Q4 PepCoding | Count Distinct Elements In Every Window Of Size K Q-3 PepCoding | Check If An Array Can Be Divided Into Pairs Whose Sum Is Divisible By K Q2 PepCoding | Find Itinerary From Tickets Q1 PepCoding | Number Of Employees Under Every Manager 2653. Sliding Subarray Beauty
DSA 1.8 : Pointers DSA-1.8 : Pointers DSA-1.8 : Pointers DSA 1.8 : Pointers DSA 1.10 : Reference DSA 1.12 - Pointer to structure DSA 1.12 - pointer to structure DSA 1.15 : Paramter passing method : by value DSA 1.15 : Parameter passing method- by address DSA 1.15 : parameter passing method -by reference DSA 1.18 : returning array from a function DSA 1.20 : pointer to structure DSA 1.23 : monolithic program DSA 1.24 : procedural or modular programming DSA 1.25 : procedural programming using structure and functions DSA 1.26 : Object Oriented programming approach DSA 1.30 : template classes DSA 5.52 Recursion using static variable DSA 5.56 : tree recursion DSA 5.58 : Indirect recursion DSA 5.56 : Nested recursion DSA 5.68 : Taylor series using recursion DSA 5.70 : Taylors series using Horner's rule DSA 5.73 : Fibonacci using iteration DSA 5.73 : Fibonacci using recursion DSA 5.73 : Fibonacci using memoization and recursion DSA 5.75 : nCr using recursion DSA 5.76 : Tower of Hanoi DSA 7 : array ADT DSA 7.99 - Delete function in an array DSA 7.102 : Linear Search DSA 146 : C++ class for Diagonal matrix DSA 150 : Lower Triangular matrix Diagonal matrix full code Creation of sparse matrix 175. Display for linked list 176. Recursive display for linked list 178 : counting nodes in a linked list 179: sum of all elements in a linked list 181: find the largest element in the linked list 183: searching for a value in linked list 184: Improve searching in a linked list 186: Inserting a new node in a linked list (logic) 186: Insertion in a linked list (function) 189: Creating a linked list by inserting at end 191: Inserting in a sorted linked list 192: deleting a node from a linked list 195 : check if the linked list is sorted or not 197: Remove duplicates from sorted linked list
Q66 Distinct Echo Substrings - LeetCode 1316 (rabin karp rolling hash -> O(n^2)) Q66 Distinct Echo Substrings - LeetCode 1316(O(n^3) solution) Q65 Interleaving String - LeetCode 97 Q64 Frog Jump - LeetCode 403 Q63 Champagne Tower - LeetCode 799 Q62 Super Ugly Number - LeetCode 313 Q61 Ugly Number 2 - LeetCode 264 Q60 Minimum Insertion Steps to Make a String Palindrome - LeetCode 1316 Q59 Temple Offerings | Practice | GeeksforGeeks Q58 Word Break - LeetCode 139 Q57 Arithmetic Slices II - Subsequence - LeetCode 446 Q56 Arithmetic Slices - LeetCode 413 Q55 Max sum of M non-overlapping subarrays of size K - GeeksforGeeks (tabulization) Q55 Max sum of M non-overlapping subarrays of size K - GeeksforGeeks (memoization) Q54 Maximum Sum of 3 Non-Overlapping Subarrays - LeetCode 689 Q53 Maximum Sum of Two Non-Overlapping Subarrays - LeetCode 1031 Q52 Maximum difference of zeros and ones in binary string | Practice | GeeksforGeeks Q51 Mobile numeric keypad | Practice | GeeksforGeeks Q50 Distinct Transformation LeetCode Playground ( tabulization approach) Q50 - Distinct Transformation- LeetCode Playground ( recursion + memoization approach) Q49 Highway BillBoards - Coding Ninjas Codestudio approach 2 Q49 Highway BillBoards - Coding Ninjas Codestudio (approach 1 LIS) Q48 Knight Probability in Chessboard - LeetCode 688 Q47 Cherry Pickup - LeetCode 741 (recursion approach) Q46 Super Egg Drop - LeetCode 887 Q45 Predict the Winner - LeetCode 486 Q45 Optimal Strategy For A Game | Practice | GeeksforGeeks | leetcode 46 Q44 Largest Sum Subarray of Size at least K | Practice | GeeksforGeeks Q42 Maximum Subarray - LeetCode 53 Q41 Minimum Cost To Make Two Strings Identical | Practice | GeeksforGeeks Q40 Minimum ASCII Delete Sum for Two Strings - LeetCode 712 Q39 Scramble String - LeetCode 87 Q38 Edit Distance - LeetCode 72 Q37 Regular Expression Matching - LeetCode 10 Q36 Wildcard Matching - LeetCode Q35 Longest Repeating Subsequence | Practice | GeeksforGeeks Q34 Longest Common Substring | Practice | GeeksforGeeks Q33 Count Different Palindromic Subsequences - LeetCode 730 Q32 Number of distinct subsequences | Practice | GeeksforGeeks Q31 Longest Palindromic Substring - LeetCode Q30 Count Palindromic Subsequences | Practice | GeeksforGeeks Q29 Longest Palindromic Subsequence - LeetCode 516 Q28 Longest Common Subsequence - LeetCode 1143 Q27 Minimum Score Triangulation of Polygon - LeetCode 1039 Q26 Optimal binary search tree | Practice | GeeksforGeeks Q24 Matrix Chain Multiplication | Practice | GeeksforGeeks Q23 Palindrome Partitioning II - LeetCode 132 Q23 Palindrome Partitioning II - LeetCode - 132 ( n^3 approach) Q22 Palindromic Substrings - LeetCode 647 Q21 Rod Cutting | Practice | GeeksforGeeks Q20 Minimum Score Triangulation of Polygon - LeetCode 1039 Q19 Intersecting Chords in a Circle | Interviewbit Q18 Generate Parentheses - LeetCode 22 Q17 PepCoding | Count Of Valleys And Mountains Q16 Unique Binary Search Trees - LeetCode 96 Q15 Catalan Number Minimum Score of a Path Between Two Cities - 2492 Q14 Perfect Squares - LeetCode Q13 Russian Doll Envelopes - LeetCode (LIS in NlogN - accepted solution) Q13 Russian Doll Envelopes - LeetCode 354 solution1(LIS in O(n^2)) Q12 PepCoding | Maximum Non-overlapping Bridges Q11 Longest Bitonic subsequence | Practice | GeeksforGeeks Q10 Maximum sum increasing subsequence | Practice | GeeksforGeeks Q9 PepCoding | Print All Longest Increasing Subsequences Q8 Longest Increasing Subsequence - LeetCode 300 Q7 2 Keys Keyboard - LeetCode 650 Q-6 PepCoding | Print All Results In 0-1 Knapsack Q5 PepCoding | Print All Paths With Target Sum Subset Q4 PepCoding | Print All Paths With Maximum Gold Q3 PepCoding | Print All Paths With Minimum Cost Q2 Jump Game II - LeetCode 45 Q1 Maximal Square - LeetCode 221 Q67 Longest Increasing Subsequence - LeetCode 300 ( LIS O(nlogn) solution) Q43 K-Concatenation Maximum Sum - LeetCode 1191 Q13 Russian Doll Envelopes - LeetCode 354 ( LIS -> O(nlogn) solution) Q25 Burst Balloons - LeetCode 312
Minimum Score of a Path Between Two Cities - 2492 Number of Operations to Make Network Connected - 1319 Q42 Mother Vertex | Interviewbit (kosraju) Q41 Count Strongly Connected Components (Kosaraju’s Algorithm) Q40 Leetcode 734. Sentence Similarity Q39 Satisfiability of Equality Equations - LeetCode 990 Q38 Redundant Connection II - LeetCode 685 Q37 Redundant Connection - LeetCode 684 Q36 Minimize Malware Spread II - LeetCode 928 Q35 Minimize Malware Spread - LeetCode 924 Q34 Accounts Merge - LeetCode 721 Q33 Minimize Hamming Distance After Swap Operations - LeetCode 1722 Q32 Rank Transform of a Matrix - LeetCode 1632 Q32 Reconstruct Itinerary - leetcode 332 (eularian path && Eularian cycle) Q31 Regions Cut By Slashes - LeetCode 959 Q30 Minimum Spanning Tree | Practice | GeeksforGeeks (kruskal algo) Q29 Number of Islands II - Coding Ninjas (DSU) Q28 Remove Max Number of Edges to Keep Graph Fully Traversable - LeetCode 1579 Q27 Checking Existence of Edge Length Limited Paths - LeetCode 1675 Q26 Network Delay Time - LeetCode 743 Q25 Cheapest Flights Within K Stops - LeetCode 787 Q24 Distance from the Source (Bellman-Ford Algorithm) | Practice | GeeksforGeeks Q23 Connecting Cities With Minimum Cost - Coding Ninjas Q22 Swim in Rising Water - LeetCode 778 Q21 Water Supply In A Village - Coding Ninjas Q20 Minimum Spanning Tree | Practice | GeeksforGeeks(prims algo) Q19 Alien Dictionary | Practice | GeeksforGeeks Q18 Course Schedule - LeetCode 207 (kahn's algorithm) Q17 Minimum edges(0-1 BFS) | Practice | GeeksforGeeks Q17 Minimum edges(0-1 BFS) | Practice | GeeksforGeeks ( using djikstra) Q16 Sliding Puzzle - LeetCode 773 Q15 Bus Routes - LeetCode 815 Q14 Shortest Bridge - LeetCode 934 (without pair class) Q14 Shortest Bridge - LeetCode 934 ( with pair class) Q 13 As Far from Land as Possible - LeetCode 1120 Q12 Rotting Oranges - LeetCode 994 Q11 01 Matrix - LeetCode 542 Q10 Number of Distinct Islands | Practice | GeeksforGeeks Q9 Number of Enclaves - LeetCode 1085 Q8 Coloring A Border - LeetCode 1034 Q7 Unique Paths II - 63 Q6 Unique Paths III - LeetCode 980 Q5 Number of Provinces - LeetCode 547 Q4 Number of Islands - LeetCode 200 Q3 Number of Operations to Make Network Connected - LeetCode 1319 Q2 All Paths From Source to Target - LeetCode 797 Q1 Find if Path Exists in Graph - LeetCode 1971 Q43 is Cycle present in DAG ? GFG ( Topological Sort) Q43 is cycle present in DAG ? GFG (using kahns algo) Q44 Bellman ford | GFG ( Smaller code) Q45 Minimum Cost to Make at Least One Valid Path in a Grid - LeetCode 1368
descargar archivos de la plantilla avanzada desde la consola formulario dinamico yii2 codigo para descargarlo actualizar composer 2.5.5 subir imagenes en frontend/backend ejemplo yii2 validacion mascara de campo ejemplo models/modelo.php validacion mascara de campo ejemplo models/modelo.php aplicación yii2 completa ejemplo de referencia puede que contenga algún error modificar grid(centrar contenido de campos, textos) formato fecha yii2 ejemplo de widget DepDrop en yii2 Configurar la extension redactor en common/config/main.php ejemplo de campo de texto con mascara ejemplo de reglas de validacion en un modelo Adapta el contenido de un campo de widget a su tamaño en Yii2 Para hacer que el contenido de un campo de un widget en Yii2 se adapte automáticamente al tamaño del campo, puedes utilizar algunas de las siguientes técnicas: para hacer el modulo de usuario en yii2 campo ente del sistema de de indicadores sig ejemplo de campo ente con permisologia de usuario: admin y despacho_ ministro ejemplo de escript para estos campos en yii2 ejemplo estado, municipio, parroquia ejemplo de campo estado, municipio, parroquia en el model search usar esto para mostrar los registros en orden invertido cuando un formulario de problemas en un marco en yii2 ejemplo de campo da data para mostrar la lista en el update codigo para arreglar graficos hightchart del sistema indicadores sig para ordenar los registros del gridview en yii2 otro editor de texto como redactor para implementar de manera manual
chapter2-code-1 chapter2-code-2 chapter2-code-3 chapter3-code-1 chapter4-code-1 chapter4-code-2 chapter4-code-3 chapter4-code-4 chapter4-code-5 chapter4-code-6 chapter4-code-7 chapter4-code-8 chapter4-code-9 chapter4-code-10 chapter5-code-1 chapter5-code-2 chapter5-code-3 chapter6-code-1 chapter6-code-2 chapter6-code-3 chapter7-code-1 chapter7-code-2 chapter7-code-3 chapter7-code-4 chapter7-code-5 chapter7-code-6 chapter7-code-7 chapter7-code-8 chapter7-code-9 chapter7-code-10 chapter7-code-11 chapter7-code-12 chapter7-code-13 chapter8-code-1 chapter8-code-2 chapter8-code-3 chapter8-code-4 chapter9-code-1 chapter9-code-2 chapter9-code-3 chapter9-code-4 chapter10-code-1 chapter10-code-2 chapter10-code-3 chapter10-code-4 chapter10-code-5 chapter11-code-1 chapter11-code2 chapter11-code-3 chapter11-code-4 chapter11-code-5 chapter11-code-6 chapter12-code-1 chapter12-code-2 chapter13-code-1 chapter13-code-2 chapter13-code-3 chapter13-code-4 chapter13-code-5 chapter14-code-1 chapter14-code-2 chapter14-code-3 chapter14-code-4 chapter15-code-1 chapter15-code-2 chapter16-code-1 chapter16-code-2 chapter16-code-3 chapter16-code-4 chapter16-code-5 chapter16-code-6 chapter16-code-7 chapter16-code-8 chapter16-code-9 chapter16-code-10 chapter17-code-1 chapter17-code-2 chapter18-code-1 chapter18-code-2 chapter18-code-3 chapter18-code-4 chapter18-code-5 chapter19-code-1 chapter19-code-2 chapter19-code-3 chapter20-code-1 chapter21-code-1 chapter21-code-2 chapter21-code-3 chapter21-code-4 chapter21-code-5 chapter22-code-1 chapter22-code-2 chapter22-code-3 chapter23-code-1 chapter23-code-2 chapter23-code-3 chapter23-code-4 chapter23-code-5 chapter24-code-1 chapter24-code-2 chapter24-code-3 chapter25-code-1 chapter25-code-2 chapter25-code-3 chapter25-code-4 chapter25-code-5 chapter25-code-6 chapter25-code-7 chapter25-code-8 chapter25-code-9 chapter26-code-1 chapter26-code-2 chapter27-code-1 chapter27-code-2 chapter28-code-1 chapter28-code-2 chapter29-code-1 chapter11-code-2 chapter1-code-1
Display Custom Post By Custom Texonomy Hide Section If Data Empty Custom post Url Change Social Share Link Genrator / meta tag OG Set Custom post type template Custom post by current category page List all Category Loop Reverse Reverse Array in custom repeat fields Display custom texonomy name into post WP Rocket Delay JavaScript execution Files Post FIlter By Texonomy URL Check and echo active exclude current post from single page Post Sort by Custom Taxonomy in Admin Ajex select change texonomy and post Wordpress Ajex select Get Category Name (wp get object()) List Display Custom Taxonomy Order Date Woocommerce Disable notification for plugin update Custom Ajax Form for WP Order Expiry Woocommerce Post By Post Taxonomy Hide Section If Data Empty Product SKU Search with default search Hide WP Version Disable REST API Get Post Data with Post or page id (WCK CTP Select field) Custom API For Page with custom fields Disable WordPress Update Notifications Create Users Automatically In WordPress / create admin login Create and Diplsay ACF Texonomy Data Custom Post by Custom Texo filter JQuery Multiple Select Filter WordPress Premium Plugins Repo WP Premium Plugins Repo Part 2 Custom Taxonomy Template Post Order by ASC and DESC on published date Post Order by ASC and DESC on published date Widget Register and Dipslay Display category and Subcategory with Post CF7 Successful Submit Redirect to another page Load Fancybox on page load Once in month with cookies SVG Support in WP in function.php List Custom Taxonomy Wordpress Admin Login Page Layout Change Change Posts To Blogs (Post Type) JQuery Load More Display Custom Post under custom taxonomy Search Form with result page Stater Theme style.css file Acf option page Call Another Custom Header Zoho Integration for cf7 Forms www redirection 404 WP Template Coming Soon HTML Template Display Custom Posts by Category With Ajax filter Disable wordpress update notification / wp update notification custom breadcrumbs Disable admin toolbar except admin Disable Comment module on whole website Custom Data / Product / Card Filter by page load (by get and isset function) Mastek Resource Page for filter data List All pages on admin dashboard Custom Taxonomy Name on Single Page custom texonomy list with child WordPress Security and admin page Code Js Load on Page Based
Prints I love python Opens a comic in webbrowser YouTube video downloader GUI in Python A Simple Text Editor In Python CTk Login Form GUI in Python A Word Guessing Game In Python A GUI Password Manager With Database Connectivity in Python Word Counter In Python An Adventure Game GUI In Python A Basic Browser In Python Using PyQt5 (This doesn't store your browsing history!) Speech command Bot (Doraemon) In Python To-Do List Interface(With Lottie) In Python To-Do List Interface(With Lottie) In Python: HTML Code Rock Paper Scissors GUI In Python Rock Paper Scissors GUI In Python: The GUI code Your Motivator With Python And Unsplash Dice Stimulator Python CTk GUI A PNG to WEBP Converter With Python Mini Calculator GUI with Python A Number-Guessing Game In Python A Random Wikipedia Article Generator GUI In Python Your Own Gallery In Python A Tic Tac Toe Game In Python AI Weather Predictor That Doesn't Predict The Weather A Real-Time Spelling Checker In Python How to make a simple button in customtkinter Button like one on my website in python CTk How to make a simple checkbox in customtkinter python Hobby Selector Using Python CustomTkinter A sample comment in Python Python hub challenge 1 Single line comment in Python Multi line comments in Python Inline comments in Python Demonstrating Integers in Python Demonstrating Boolean numbers in Python Demonstrating Float numbers in Python Demonstrating Complex numbers in Python challenge 2 solution (numbers in python) Implicit type conversion in python Explicit type conversion python part 1 Explicit type conversion in python part 2 String formatting in Python String Concatenation in Python String formatting using print function Python Format function in Python % operator string formatting in Python F-String in Python How to utilize variables in string's solution string indexing python String Slicing question String Slicing question2 String Slicing question3 String Slicing question4 String Slicing question5 String Slicing Answer 1 String Slicing Answer 2 String Slicing Answer 3 String Slicing Answer 4 String Slicing Answer 5 String part 2 challenge solution Madlib in Python (solution) Madlib in Python (solution) output Madlib in Python (solution) 2 Madlib in Python (solution) output 2 Dictionary challenge solution Dictionary challenge solution output Single value tuple Python Single value tuple Python output Concatenate tuples in Python Copy a tuple in Python count() method tuple python index() method tuple python Tuple challenge Tuple challenge output Creating a set in Python Fun world Dictionary challenge Fun world Dictionary Output If else statement Elif ladder Multiple if statements Python Nested if else statements Python if else comprehension Simple calculator in python (if else challenge) Simple calculator in python (if else challenge) Output Iterating through list in Python Iterating through list in Python using For loop Break statement in Python Continue statement in Python Pass statement in Python Else with for loop in Python
9. Write a C program that prints the English alphabet (a-z). 10. Write a C program that prints both the Max and Min value in an array 1. Write a C program that takes a character from the user and prints its corresponding ASCII value 2. Write a C program, which reads an integer and checks whether the number is divisible by both 5 and 6, or neither of them, of just one of them. 4. Write a C program that checks if a number is prime or not. 5. Write a C program that stores an integer code in a variable called ‘code’. It then prompts the user to enter an integer from the standard input, which we will compare with our original ‘code’. If it matches the code, print ‘Password cracked’, otherwise, prompt the user to try again. For example, int code = 23421; //23421 is the code here. 6. Based on question 5, modify the program to keep track of the number of attempted password guesses. It then prints: “The password was cracked after ‘n’ amount of tries”, n being the tracking variable. Bonus Questions: 1. What is the difference between a while loop and a do-while loop? 2. Is the size of an Array mutable after declaration? 3. What is the purpose of passing the address of a variable in scanf? 4. What are the various possible return values for scanf? 5. Why do we declare the main method as an int function with return 0 at the end? 7. Write a C program that prompts the User to initialize an array by providing its length, and its values. It then asks him to enter the ‘focal number’. Your task is to print all the values in the array that are greater than the ‘focal number’. 8. Write a C program that prompts the user to enter 10 positive numbers and calculates the sum of the numbers.
Q12 Maximum Path Sum in the matrix - Coding Ninjas (Striver DP) Q- Recursion | Memoization | Tabulization in 2d dp READ ME Q18 Partitions with Given Difference | Practice | GeeksforGeeks Q17 Perfect Sum Problem | Practice | GeeksforGeeks Q16 Minimum sum partition | Practice | GeeksforGeeks Q52 Boolean Evaluation - Coding Ninjas Q-49 Matrix Chain Multiplication - Coding Ninjas Q24 Rod Cutting | Practice | GeeksforGeeks Q23 Knapsack with Duplicate Items | Practice | GeeksforGeeks Q-19 0 - 1 Knapsack Problem | Practice | GeeksforGeeks Q14 Subset Sum Equal To K - Coding Ninjas Q14 Cherry Pickup - Coding Ninjas Q-8 Ninja’s Training - Coding Ninjas Q-6 Maximum sum of non-adjacent elements - Coding Ninjas Q-3 Frog Jump - Coding Ninjas Q55 Count Square Submatrices with All Ones - LeetCode 1277 Q55 Maximal Rectangle - LeetCode 85 Q54 Partition Array for Maximum Sum - LeetCode1043 Q53 Palindrome Partitioning II - LeetCode 132 Q51 Burst Balloons - LeetCode 312 Q50 Minimum Cost to Cut a Stick - LeetCode 1547 Q47 Number of Longest Increasing Subsequence - LeetCode 673 Q45 Longest String Chain - LeetCode 1048 Q44 Largest Divisible Subset - LeetCode 368 Q43 Longest Increasing Subsequence - LeetCode 300 Q34 Wildcard Matching - LeetCode 44 Q33 Edit Distance - LeetCode 72 Q-32 Distinct Subsequences - LeetCode 115 Q25 Longest Common Subsequence - LeetCode 1143 Q22 Coin Change II - LeetCode 518 Q-20 Coin Change - LeetCode 322 Q-15 Target Sum - LeetCode 494 Q-12 Triangle - LeetCode 120 Q11 Minimum Path Sum - LeetCode 64 Q-10 Unique Paths II - LeetCode Q-9 Unique Paths - LeetCode 62 Q-6 House Robber II - LeetCode 213 Q-5 House Robber - LeetCode 198 Q-1 Climbing Stairs - LeetCode 70
8. Write a C program function that uses pointers to swap to numbers. 6. Write a C program that prints the English alphabet using pointers. 10. Write a C program void function that uses pointers to perform decompose operation. (Print only in the main function). Decompose means breaking up a decimal number into an integer part and a double part and storing them in different variables. 1. Write a C program function called ‘changeEven’ that changes all the even numbers within an array to 0, using pointer arithmetic 2. Write a C program function called ‘changePrime’, that changes all the prime numbers within an array to 0. Use another function, within ‘changePrime, called ‘checkPrime’, to check and return whether the number is prime or not, then update the value in the ‘changePrime’ accordingly. Don’t use pointer arithmetic 3. Write a C program that sorts an Array in descending order. 4. Write a C program function called ‘factorial’ that calculates and returns the factorial of a number. 5. Write a C program that gets an Array with 10 3-digits integer IDs. The program then prompts the user to enter his ID, which will be compared to the existing IDs within our Array. If his ID is matched, print “Accepted”, else print “Unaccepted”. 7. Write a C program that accepts three integers: a, b, and c, and prints them in ascending order 9. After the holidays lots of people were rushing to move back to their apartments. In this scenario, even numbers will represent women while odd numbers will represent men. Store the sequence of entry into the building by typing in even and odd numbers into an array at random. Calculate the largest sequence of women entering the building before a man enters. (The largest continuous number of women that entered before a man came in) Example: 17, 4, 6, 8, 9, 2, 8, 49 (The largest continuous number of women is 3).
Write a loop that reads positive integers from console input, printing out those values that are greater than 100, and that terminates when it reads an integer that is not positive. The printed values should be separated by single blank spaces. Declare any variables that are needed. Write a loop that reads positive integers from console input, printing out those values that are even, separating them with spaces, and that terminates when it reads an integer that is not positive. Write a loop that reads positive integers from console input and that terminates when it reads an integer that is not positive. After the loop terminates, it prints out the sum of all the even integers read. Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a while loop to compute the sum of the cubes of the first n counting numbers, and store this value in total. Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total. Use no variables other than n, k, and total. Do not modify n. Don't forget to initialize k and total with appropriate values. loop design strategies Given a char variable c that has already been declared, write some code that repeatedly reads a value from console input into c until at last a 'Y' or 'y' or 'N' or 'n' has been entered. Given a string variable s that has already been declared, write some code that repeatedly reads a value from console input into s until at last a "Y" or "y" or "N" or "n" has been entered. Write a loop that reads strings from console input where the string is either "duck" or "goose". The loop terminates when "goose" is read in. After the loop, your code should print out the number of "duck" strings that were read. Objects of the BankAccount class require a name (string) and a social security number (string) be specified (in that order) upon creation. Declare an object named account, of type BankAccount, using the values "John Smith" and "123-45-6789" as the name and social security number respectively.
powershell script to combine the content of multiple txt file with filepath as separator How to merge all .txt files into one using ps? - IT Programming ISE Scripting Geek Module Chocolatey Software Docs | Setup / Install Chocolatey Software Recursively identify files with TrID using PowerShell sending output to text file powershell - empty directories Chocolatey Setup Install Scoop To set a new permission using Powershell Select-Object with Out-GridView Move folders (from txt file) to another drive with dir structure convert xlsx to csv using powershell Register-PSRepository (PowerShellGet) - @parameters Get-PSReadLineKeyHandler (PSReadLine) - PowerShell | Microsoft Learn windows - How to extract the version from the name of a NuGet package file using PowerShell? - Stack Overflow Get List of Installed Windows 10 Programs | Canuck’s Tech Tips Out-File (Microsoft.PowerShell.Utility) - PowerShell | Microsoft Learn Here's code that finds the indices of all supported property names(metadata) in windows How can I replace every occurrence of a String in a file with PowerShell? - Stack Overflow How can I replace every occurrence of a String in a file with PowerShell? - Stack Overflow How can I replace every occurrence of a String in a file with PowerShell? - Stack Overflow How can I replace every occurrence of a String in a file with PowerShell? - Stack Overflow How can I replace every occurrence of a String in a file with PowerShell? - Stack Overflow How to find metadata is available from file-properties - PowerShell Help - PowerShell Forums How to find metadata is available from file-properties - PowerShell Help - PowerShell Forums Getting installed applications with PowerShell merge CSV rows with partially duplicate lines Parts of the filename in PowerShell Automating HTML Parsing and JSON Extraction from Multiple URLs Using PowerShell | by Rihab Beji | Jan, 2025 | Medium
components-of-robot Difference in Robot System and AI Programs How does the computer vision contribute in robotics? Goals of Artificial Intelligence four Categories of AI What is searching?What are the different parameters used to evaluate the search technique? Uninformed Search Algorithms First-Order Logic Inference rule in First-Order Logic What are different branches of artificial intelligence? Discuss some of the branches and progress made in their fields. What is adversarial search? Write the steps for game problem formulation. State and explain minimax algorithm with tic-tac-toe game. Explain the role of Intelligent Agent in AI. Also explain all types of intelligent agents in details. Explain PEAS. Write the PEAS description of the task environment for an automated car driving system. Define the role of the machine intelligence in the human life Describe arguments in multiagent systems and its types. negotiation and bargining Explain information retrieval with its characteristics. What is information extraction ? What do you mean by natural language processing ? Why it is needed? What are the applications of natural language processing? What are the various steps in natural language processing Machine translation What are the three major approaches of machine translation ? Forward Chaining AND Backward Chaining with properties Difference between Forwarding Chaining and Backward Chaining: knowledge representation Explain unification algorithm used for reasoning under predicate logic with an example. State Space Search in Artificial Intelligence Explain about the hill climbing algorithm with its drawback and how it can be overcome ? What is the heuristic function? min max algorithm Describe alpha-beta pruning and give the other modifications to the Min-Max procedure to improve its performance.
3. (Interest Calculator) The simple interest on a loan is calculated by the formula interest = principal * rate * days / 365; The preceding formula assumes that the rate is the annual interest rate, and therefore includes the division by 365 (days). Develop a program that will input principal, rate, and days for several loans, and will calculate and display the simple interest for each loan, using the preceding formula. 2. (Car-Pool Savings Calculator) Research several car-pooling websites. Create an application that calculates your daily driving cost, so that you can estimate how much money could be saved by carpooling, which also has other advantages such as reducing carbon emissions and reducing traffic congestion. The application should input the following information and display the user’s cost per day of driving to work: a) Total miles driven per day. b) Cost per gallon of gasoline. c) Average miles per gallon. d) Parking fees per day. e) Tolls per day. 1. (Diameter, Circumference, and Area of a Circle) Write a program that reads in the radius of a circle and prints the circle’s diameter, circumference, and area. Use the constant value 3.14159 for π. Perform each of these calculations inside the printf statement(s) and use the conversion specifier %f. Turbo C 1. (Credit Limit Calculator) Develop a C program that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) Account number b) Balance at the beginning of the month c) Total of all items charged by this customer this month d) Total of all credits applied to this customer's account this month e) Allowed credit limit The program should input each fact, calculate the new balance (= beginning balance + charges – credits), and determine whether the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance and the message “Credit limit exceeded.” Here is a sample input/output dialog: 2. (Sales Commission Calculator) One large chemical company pays its salespeople on a commission basis. The salespeople receive P200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells P5000 worth of chemicals in a week receives P200 plus 9% of P5000, or a total of P650. Develop a program that will input each salesperson’s gross sales for last week and will calculate and display that salesperson’s earnings. Process one salesperson's figures at a time. Here is a sample input/output dialog: Valentines Coding
UserController Latest working login - frontend GetUserById - Possibly working(needs better photo handling) GetUserById - Works similar to Assignment 3 AllProducts(needs to get sipecified user id) Photo handling in profile page(before base64 changes) - Frontend test api key - sendgrid Forgot and Reset password methods (before Sendgrid implementation) - UserController Payment Prompt PaymentController(suggested by chatgpt) Payment model (b4 chatgpt changes) Reward controller, model, viewmodel & AppDbContext (b4 my changes) Reward model, viewmodel, controller & AppDbContext (latest working v1.0 after changes) Reward frontend component, service and model (latest working v1.0 after changes) Help on Register (usertype dilemma) Suggested Reward structure (chatgpt v1.0) Host Records namecheap (b4 changes) Predined Reward Types Reward controller (after changes v1.1) Profile Page ts (before member and reward changes) ProfilePageComponent(with working frontend image) Member Manager Component (B4 Reward Changes) SearchUser Backend Method(Dropped) AppDbContext (B4 Anda's backend implementation) UserController (B4 Anda's Backend Implementation) program.cs (B4 Anda's backend implementation) OnSubmit - Before profile update changes NG0900 error Program cs that allows authentication in cart&wishlist Before Wishlist and Cart Count Changes Program cs - (Order working version without configuring swagger for bearer) Forgot and Reset Password methods (before email logic) Product controller - B4 base64 and model change Product seed data - AppDbContext (b4 crud) UserDeletionService.cs - (B4 Configurable Timer Implementation) program.cs (b4 changing to have functionality for configurable timer) deletion settings update - html and ts (b4 viewing ability) Working UserDeletionService.cs - (Constraint: Limitation of 24.8 days) Checkout - with Discount Payfast.component.ts - before create payment Register User - deleted Register Employee - deleted Create Order (before product quantity depletion change) MovetoCart (before available stock changes) product-list component (before side navbar changes) Help PDF Method (convert to image and cannot search but has styling) Help PDF Method (can search but has no styling) User Deletion Logic (Before stored procedure implementation ) Stored Procedure Template in SQL (before replacing with mine) Stored Procedure for UpdateUserDeletionSettings and UserDeletionService (WORKING VERSION) Exporting Payments to Excel (Purely Frontend) Reward (before service) Payfast ts (before vat and discount implementation) Profile Page (before rewards) AppDbContext (Before merging) Product controller, model, viewmodels (Before Inventory relation) Inventory controller, model, viewmodel (before relation to product) Inventory controller, model, viewmodel (before relation to product) Supplier + Supplier_Order Controller, Models, Viewmodels (Before inventory implementation) Payfast ts (before type error) IMPORTS!!! IMPORTS!!! Seed data QualifyingMembers Stored Procedure Audit Trail Logic OrderStatusUpdate service (working with Period error) Adding Stored Procedure to DBContext ProductType seed data Payment before modifying excel Table count
1)OPERATORS TASK 1A 2)Student grade task 1B 3)command line arguments 1C 4)Constructor and method overloading task 2a 5)type casting task 2B 6)Use array sum of integers and find the sum and average of the elements of that array in java 7)Practice further programs on the usage of arrays in java 8)Write a program to utilize both standard and custom packages. The program should reflect the usage of packages in a correct manner, along with the purpose of access modifiers 9))Write a program to use gc() method of both System and Runtime classes. Experiment with other methods of those classes. 10)write a program using the hierarchy of employees in a university 11))Write a program to understand polymorphic invocation of methods,while overriding the methods. Use an employee base class and manager sub class; override the computeSalary() method to illustrate the concept. 12)Develop an application that uses inheritance. Use the class Account and then subclass it into different account types. Then making use of Customer and Employee classes to develop the application to reflect the nature of banking operations. Use minimum operational sequence. 13)Demonstrate the use of abstract classes. Write a Person abstract class and then subclass that into Student and Faculty classes. Use appropriate fields and methods. 14)Write a program to demonstrate the usage of interfaces. 15)Write a program to understand the full capability of String class.Implement as many methods as required. Consult API documentation to read through the methods. 16)Write programs using StringBuffer and StringBuilder library classes. 17)Write a program to demonstrate the usage of try and associated keywords. Introduce bugs into the program to raise exceptions and then catch and process them. 18)Learn how to create and use custom exceptions. 19)Using byte streams, write a program to both read from and write to files. 20)Using FileReader and FileWriter, write a program to perform file copying and any other suitable operations. 21)Write a Java Program that displays the number of characters, lines and words in a text file. 22)Use the classes StringTokenizer, StringReader and StringWriter to write a program to find the capabilities of these classes. 23)Write a program to demonstrate enumerations and usage of Assertions. 24) Demonstrate assertions through simple programs. 25)Write programs to illustrate the use of Thread class and Runnable interface. 26)Write a program to show the assignment of thread priorities. 27)Write a program to synchronize threads. Use Producer and Consumer problem to illustrate the concept. 28) LABEL DEMO 29) BUTTON DEMO 30) CHECK BOX DEMO 31) RADIO BUTTON DEMO 32) COMBO BOX DEMO 1 33) COMBO BOX DEMO 2 34) LIST DEMO 35) TEXT DEMO 36) File input stream demo(IO) 37) file output stream demo(IO) 38) file input stream demo (BYTE) 39) file OUTput stream demo (BYTE) 40) BUFFERED INPUT STREAM DEMO (BYTE) 41) BUFFERED OUTPUT STREAM DEMO (BYTE) 42)Byte Array Output sTream Demo (BYTE) 43) Byte Array Input Stream Demo (BYTE) 44) FILE READER & WRITER DEMO (CHAR) 45) Char Array Reader & WRITER Demo (CHAR) 46) CHAR BUFFER READER & WRITER DEMO (CHAR) 47) FILE FUNCTIONS (IO) 48) DIR LIST & CONSOLE DEMO 49) SERIALIZATION 50) INTER THREAD COMMUNICATION
choppystick/PyDoku: An implementation of the classic Sudoku puzzle game using Python and Pygame. It offers a graphical user interface for playing Sudoku, with features such as a menu system, difficulty levels, and the ability to play puzzles from the New York Times website. choppystick/py-sudoku-solver: Python implementation of a Sudoku solver using Linear Programming (LP). The solver can handle Sudoku puzzles of varying difficulties and can find multiple solutions if they exist. choppystick/py-sudoku-solver: Python implementation of a Sudoku solver using Linear Programming (LP). The solver can handle Sudoku puzzles of varying difficulties and can find multiple solutions if they exist. choppystick/PyDoku: An implementation of the classic Sudoku puzzle game using Python and Pygame. It offers a graphical user interface for playing Sudoku, with features such as a menu system, difficulty levels, and the ability to play puzzles from the New York Times website. choppystick/py-sudoku-solver: Python implementation of a Sudoku solver using Linear Programming (LP). The solver can handle Sudoku puzzles of varying difficulties and can find multiple solutions if they exist. choppystick/PyDoku: An implementation of the classic Sudoku puzzle game using Python and Pygame. It offers a graphical user interface for playing Sudoku, with features such as a menu system, difficulty levels, and the ability to play puzzles from the New York Times website. choppystick/PyDoku: An implementation of the classic Sudoku puzzle game using Python and Pygame. It offers a graphical user interface for playing Sudoku, with features such as a menu system, difficulty levels, and the ability to play puzzles from the New York Times website. choppystick/py-sudoku-solver: Python implementation of a Sudoku solver using Linear Programming (LP). The solver can handle Sudoku puzzles of varying difficulties and can find multiple solutions if they exist.
1. Create a web page using the advanced features of CSS Grid. Apply transitions and animations to the contents of the web page. 2. Create a web page using the advanced features of CSS Flexbox. Apply transitions and animations to the contents of the web page. 3. Demonstrate pop-up box alerts, confirm, and prompt using JavaScript. 4. Demonstrate Responsive Web Design using Media Queries to create a webpage. 5. Write a JavaScript program to demonstrate the working of callbacks, promises, and async/await. 6. Write an XML file that displays book information with the following fields: Title of the book, Author Name, ISBN number, Publisher name, Edition, and Price. Define a Document Type Definition (DTD) to validate the XML document created above. 7. Write an XML file that displays book information with the following fields: Title of the book, Author Name, ISBN number, Publisher name, Edition, and Price. Define an XML schema to validate the XML document created above. 8. Write a Java application to validate the XML document using the DOM parser. 14. Write a java program to establish connection to a database and execute simple SQL queries. 10. Write a Java program to access the metadata of an SQL database. 15. Write a java program to demonstrate the usage of JDBC in performing various DML statements. Use Prepared statements Demonstrate Servlet Lifecyle by implementing Servlet Interface. Demonstrate Creation of Servlet program using Http Servlet class. 11.Scientific Calculator 9. Write a Java application to validate the XML document using the SAX parser. 16. Write a java based application to demonstrate the Scrollable Result sets. 12. Demonstrate Servlet Lifecyle by implementing Servlet Interface. 13. Demonstrate Creation of Servlet program using Http Servlet class. 17. Write a program to accept request parameters from a form and generate the response.
1.Implement Dimensionality reduction by Principal Component Analysis and analyze the results of both methods. Consider petrol _consumption.cs dataset. Also write the program to visualize insights of the dataset. 2.Implement the Dimensionality Reduction using Recursive Feature Elimination method and analyze the results with any one classifier. Consider Fish.cs dataset. 3.Design and Demonstrate Regression model to predict the rent of a house. Evaluate the performance of the model. Consider Pune_rent.csv dataset. 4.Implement Regression model and compare the performance of the model with Dimensionality reduction and without Dimensionality reduction. Consider student_scores.csv dataset. 5.Implement the Decision tree Classification model on Iris.est dataset. Estimate the accuracy of the model. Also write the program to visualize insights of the dataset. 6.Write a program for k-NN classifier to predict the class of the person on available attributes. Consider diabetes.cs dataset. Also calculate the performance measures of the model 7.Design and implement a Random Forest Classification model to predict if a loan will get approved or not for a bank customer dataset. Estimate the accuracy of the model. Also write the program to visualize insights of the dataset. 8.Design and implement k-Means clustering to cluster species of flower. Estimate the accuracy of the model. Also write the program to visualize insights of the Iris dataset. 9.Design and implement Hierarchical clustering to cluster species of flower. Estimate the accuracy of the model. Also write the program to visualize insights of the Iris dataset.
Working with Object and Array Destructuring. Working with Modules. Working with Function Generators and Symbols. Working with Closure. . Working with higher order function in JavaScript. Using Callback and creating a Callback Hell situation to understand the drawbacks. Working with XHR: response. . Dealing with the Callback Hell situation using Promise. Exploring the different ways of ealing with the Callback Hell situation using Promise. Exploring the different ways of creating and using promise in executing the asynchronous task. Dealing with Promise chaining and async / await. Use fetch function to access remote data using the given api and display the data in the form of a table. Use fetch function to read the weather details from openweathermap.org and display the details like city, min-temp, max-temp, humidity on the webpage for a given city Create custom / local modules and export them using various module patterns. Explore the functionality of os, path, util and events modules. Use the fs module for creating directories and files of different formats Write script to read and write the streaming data using readable and writable streams. Create a http server listening request at port 3000. Process the request to provide different type of resources as response. (HTML, TEXT, JSON, etc.). Create a http server listening request at port 3000. Process the request to provide different type of resources as response. (HTML, TEXT, JSON, etc.). Create a custom API for Users data and add different endpoints in express server to perform CRUD operations on the API. Test the endpoints using POSTMAN. Create express server that has endpoints connecting to Users collection present in Mongo DB database using mongoose library and perform CRUD operation on that. Create express server that has authorized endpoint using JWT (JSON Web Token) library