菜鸡还没有找到工作(DAY48)

sql 复制代码
select t2.staff_id,t1.staff_name
from cultivate_tb t2
left join staff_tb t1
on t2.staff_id=t1.staff_id
where t2.course like '%course3%'
order by t2.staff_id
sql 复制代码
with t as
(
    select t1.rec_user
    from recommend_tb t1
    left join user_action_tb t2
    on t1.rec_user=t2.user_id
    where t1.rec_info_l=t2.hobby_l
)
select avg(score) as svg_score
from user_action_tb
where user_id
in (select rec_user from t)
java 复制代码
import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     *
     * 
     * @param m int整型 
     * @param n int整型 
     * @return int整型
     */
    public int uniquePaths (int m, int n) {
        // write code here
        if(m==1||n==1)
        {
            return 1;
        }
        return uniquePaths(m,n-1)+uniquePaths(m-1,n);
    }
}
java 复制代码
import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     *
     * 
     * @param matrix int整型二维数组 the matrix
     * @return int整型
     */
    public int minPathSum (int[][] matrix) {
        // write code here
        int m=matrix.length;
        int n=matrix[0].length;
        int[][] re=new int[m][n];
        re[0][0]=matrix[0][0];
        for(int i=1;i<m;i++)
        {
            re[i][0]=re[i-1][0]+matrix[i][0];
        }
        for(int i=1;i<n;i++)
        {
            re[0][i]=re[0][i-1]+matrix[0][i];
        }
        for(int i=1;i<m;i++)
        {
            for(int j=1;j<n;j++)
            {
                re[i][j]=Math.min(re[i-1][j],re[i][j-1])+matrix[i][j];
            }
        }
        return re[m-1][n-1];
    }
}
相关推荐
小白勇闯网安圈3 小时前
Django 响应对象、文件上传与类视图
数据库·django·sqlite
努力的小雨4 小时前
同一份 SQL 跑多套环境:Ksql 变量怎么用才安全
数据库
科技绘图5 小时前
快鲸GEO vs 传统AI搜索优化:全链路自动化与高效内容生产在转化闭环上的对比
数据库·人工智能·自动化
ltl5 小时前
数据库作为 LLM 记忆体:语义缓存、RAG 与一致性
数据库
ltl5 小时前
WAL 与崩溃恢复:ARIES 协议怎么跑通
数据库
ltl5 小时前
TEE 数据库:EnclaveDB、Oblivious 原语与机密 SQL
数据库
麻瓜code6 小时前
【Mysql】重新学一遍 SQL 执行顺序
数据库·sql
这个DBA有点耶7 小时前
数据库一体机架构演进:从硬件堆叠到软硬深度耦合
服务器·网络·数据库·硬件架构·运维开发·database·数据库架构
一只fish7 小时前
优化器架构对比:Oracle vs PostgreSQL vs MySQL
mysql·postgresql·oracle
安_8 小时前
RAG的向量数据库:为LLM提供语义搜索能力
数据库