菜鸡还没有找到工作(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];
    }
}
相关推荐
研究司马懿1 分钟前
【ETCD】ETCD常用命令
网络·数据库·云原生·oracle·自动化·运维开发·etcd
-指短琴长-35 分钟前
MySQL快速入门——基本查询(下)
android·mysql·adb
刘一说1 小时前
深入理解 Spring Boot 中的数据库迁移:Flyway 与 Liquibase 实战指南
数据库·spring boot·oracle
August_._2 小时前
【MySQL】SQL语法详细总结
java·数据库·后端·sql·mysql·oracle
升鲜宝供应链及收银系统源代码服务2 小时前
升鲜宝生鲜配送供应链管理系统---PMS--商品品牌多语言存储与 Redis 缓存同步实现
java·开发语言·数据库·redis·缓存·开源·供应链系统
苦学编程的谢3 小时前
Redis_8_List
数据库·redis·缓存
曹天骄4 小时前
阿里云 DCDN → CDN 无缝切换教程(以 example.com 为例)
数据库·阿里云·云计算
林北北的霸霸4 小时前
django初识与安装
android·mysql·adb
workflower5 小时前
软件工程-练习
数据库·需求分析·个人开发·极限编程·结对编程
想睡hhh5 小时前
mysql内置函数——了解常用的函数
mysql