菜鸡还没有找到工作(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];
    }
}
相关推荐
计算机毕设指导613 小时前
基于微信小程序的钓鱼论坛系统【源码文末联系】
java·spring boot·mysql·微信小程序·小程序·tomcat·maven
列御寇13 小时前
MongoDB分片集群——集群组件概述
数据库·mongodb
七夜zippoe13 小时前
领域驱动设计在Python中的实现:从理论到生产级实践
数据库·python·sqlite·ddd·pydantic
小CC吃豆子13 小时前
Qt的信号与槽机制
开发语言·数据库·qt
·云扬·13 小时前
系统与MySQL核心监控指标及操作指南
android·数据库·mysql
七夜zippoe13 小时前
数据库事务隔离级别与Spring传播行为深度解析
java·数据库·spring·mvcc·acid·myslq
VX:Fegn089513 小时前
计算机毕业设计|基于springboot + vue智慧养老院管理系统(源码+数据库+文档)
数据库·vue.js·spring boot·后端·课程设计
霖霖总总13 小时前
[小技巧15]深入解读 MySQL sql_mode:从原理到实践,规避常见坑
sql·mysql
浩瀚之水_csdn13 小时前
python字符串解析
前端·数据库·python
luffy545913 小时前
Windows下安装postgresql扩展pg_vector实现向量存储
数据库·postgresql