2466. Count Ways To Build Good Strings

Given the integers zero, one, low, and high, we can construct a string by starting with an empty string, and then at each step perform either of the following: Append the character '0' zero times. Append the character '1' one times. This can be performed any number of times. A good string is a string constructed by the above process having a length between low and high (inclusive). Return the number of different good strings that can be constructed satisfying these properties. Since the answer can be large, return it modulo 109 + 7.
/**
 * @param {number} low
 * @param {number} high
 * @param {number} zero
 * @param {number} one
 * @return {number}
 */
var countGoodStrings = function(low, high, zero, one) {
    // Define the modulus value to handle large numbers
    const MOD = Math.pow(10, 9) + 7;

    // Initialize the DP array to store the number of ways to form strings of each length
    const dp = new Array(high + 1).fill(0);
    dp[0] = 1; // Base case: There is one way to have a string of length 0 (the empty string)

LLM - Mixture of experts

# Definition
LLM Mixture of Experts (MoE) is a technique used to improve the efficiency and capabilities of large language models (LLMs). 

Imagine having a team of specialized experts, each with their own area of expertise. 

When you have a question, you would consult the expert most qualified to answer it. 
This is the basic idea behind MoE in LLMs.

1639. Number of Ways to Form a Target String Given a Dictionary

You are given a list of strings of the same length words and a string target. Your task is to form target using the given words under the following rules: target should be formed from left to right. To form the ith character (0-indexed) of target, you can choose the kth character of the jth string in words if target[i] = words[j][k]. Once you use the kth character of the jth string of words, you can no longer use the xth character of any string in words where x <= k. In other words, all characters to the left of or at index k become unusuable for every string. Repeat the process until you form the string target. Notice that you can use multiple characters from the same string in words provided the conditions above are met. Return the number of ways to form target from words. Since the answer may be too large, return it modulo 109 + 7.
/**
 * @param {string[]} words
 * @param {string} target
 * @return {number}
 */
var numWays = function(words, target) {
    const MOD = 1e9 + 7;  // Modulo value to handle large numbers
    const m = target.length;  // Length of the target string
    const n = words[0].length;  // Length of each string in words

    // Step 1: Build the frequency map for characters at each position in words
    const charFreq = Array.from({ length: n }, () => ({}));
    for (const word of words) {
        for (

python包、模块导入顺序图

![](https://static.dingtalk.com/media/lADPJv8gbbn4jf3NBnjNBAI_1026_1656.jpg)

Code pour Authentifier

let mycode:string = "hello world"

Excel Special Formula

="{division:"""&A2&"""}"
OUTPUTS AS -> {division:"72"}

Components

We have the gswm root folder for the structure the basics types are as follows

->The gswm is the root folder of the project. Typically, the name of the root folder matches the name of the generated artifact.
->The src folder contains project-related artifacts such as source code or property files, which you typically would like to manage in a source control management (SCM) system, such as SVN or Git.
->The src/main/java folder contains the Java source code.
->The src/test/java folder contains 

Directory Structure

Directory Name || Description

src/main/resources
Holds resources, such as Spring configuration files and velocity templates, that need to end up in the generated artifact.

src/main/config
Holds configuration files, such as Tomcat context files, James Mail Server configuration files, and so on. These files will not end up in the generated artifact.

src/main/scripts
Holds any scripts that system administrators and developers need for the application.

src/test/resources
Holds configuration file

Maven History

#Maven----->
1. Apache Maven is an open source, standards-based project management framework that simplifies the building, testing, reporting, and packaging of projects.
2. Maven's initial roots were in the Apache Jakarta Alexandria project that took place in early 2000. 

Maven has become one of the most widely used open source software programs in enterprises around the world.
for the below reasons

1. Standardized Directory Structure 
--------> Maven provides recommendations on where differen

Step back in the commit history

# Go the the desired branch
git checkout <branchname>

# Commit log
git log

# Suggested approach is to step back one by one
git reset --hard <Commit SHA Code>

git status

git --oneline

# Updated the revert changes this will delete the lates commit and take a step back into commit history at the remote
git push origin <branchname> --force

Merge 2 Branches

# we have two branches
# 1-> where we are merging -> main
# 2-> where we want to merge -> feature

# go to the main branch
git checkout main

# pull the code from feature branch
git pull origin feature

git status

# Resolve the conflicts file

# add the files
git add .
# unstage the files which are not required
git restore --staged <filename>

# Commit
git commit -m "<Merge commit Message>"

# push the changes into the main branch remote repo
git push origin dev

Git clone

git clone -b <branchname> "<HTTP URL for the remote code repo>"

GIT Branch

# To switch the branch
# Use any of the below 2
git switch <branch name>
git checkout <branch name>

# create and switch the branch simultaneously
git switch -c <new branch name>
git checkout -b <new branch name>

# Add the remote origin for the code
git remote add <shortname> "<URL>"

# List remote repo connections with the shortname
git remote

# List the repo connection with the shortname and URLs
git remote -v

# push the code on the branches
git push <shortname> <branchname>

# Branch Delet

git commits related

# pull the code from git
git clone -b <branch name> "<HTTP Repo URL>"

# for commit we first check the status
git status

# if we somehow changes any particular file we should not then before adding we can use the restore
# use any of the 2
git restore <filename> <filename>
# for all the files
git restore .

# git status shows us the changes in our work repository
# if we want to add all the files which are showing in the status
# we can use either of the below 2 commands
git add .
git add -A
# 

GIT Initalize

# git init with the desired name of the master branch
git init -b <branch name>
git init --initial-branch <branch name>

# Special Case
# is we want all our project branches with the specific branch name 
# then we can configure this setting in or git config file
git config --global init.defaultbranch "<branchname>"
git init

Git Basic And Global Features

# TO check the git verisons use any one of the below commands
git -v
git --version
git version

# Config the basic global settings
git config --global username "<name>"
git config --global email "<email>"

# List all the git global settings
git config --global --list