菜鸡还没有找到工作(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];
    }
}
相关推荐
盒马coding6 小时前
第19节-非规范化数据类型-Composite-types
数据库·postgresql
-雷阵雨-6 小时前
MySQL——桥梁JDBC
数据库·mysql·oracle
亿坊电商6 小时前
在PHP框架里如何进行数据库连接?
数据库·oracle·php
满昕欢喜7 小时前
SQL Server从入门到项目实践(超值版)读书笔记 28
数据库·sql·sqlserver
楚韵天工7 小时前
宠物服务平台(程序+文档)
java·网络·数据库·spring cloud·编辑器·intellij-idea·宠物
JanelSirry8 小时前
MySQL分区表(PARTITION):水平分表示例 (基于用户ID哈希分表)不依赖第三方中间件
mysql·中间件·哈希算法
李白你好9 小时前
一款专业的多数据库安全评估工具,支持 **PostgreSQL、MySQL、Redis、MSSQL** 等多种数据库的后渗透操作
数据库·mysql·postgresql
恋红尘9 小时前
Mysql
数据库·mysql
paishishaba9 小时前
数据库设计原则
数据库
曹牧10 小时前
oracle:NOT IN
数据库·oracle