摘要:
给你一个正整数 n ,生成一个包含 1 到 n2 所有元素,且元素按顺时针顺序螺旋排列的 n x n 正方形矩阵 matrix 。 示例 1: 输入:n = 3 输出:[[1,2,3],[8,9,4],[7,6,5]] 示例 2: 输入:n = 1 输出:[[1]] 方法一:边界控制 class S 阅读全文
摘要:
给你一个整数数组 nums ,请你找出一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 子数组 是数组中的一个连续部分。 方法一:动态规划 class Solution { public int maxSubArray(int[] nums) { int n = nums.len 阅读全文
摘要:
spring java企业开发框架 spring 全家桶 web: spring mvc、 spring flux 持久层:redis、magnodb、 spring data 安全性:spring security 脚手架:spring boot 微服务:spring cloud IOC是spri 阅读全文
摘要:
描述 题目: 现在运营想要了解复旦大学的每个用户在8月份练习的总题目数和回答正确的题目数情况,请取出相应明细数据,对于在8月份没有练习过的用户,答题数结果返回0. 示例:用户信息表user_profile id device_id gender age university gpa active_d 阅读全文
摘要:
描述 题目:现在运营想要了解浙江大学的用户在不同难度题目下答题的正确率情况,请取出相应数据,并按照准确率升序输出。 示例: user_profile id device_id gender age university gpa active_days_within_30 question_cnt a 阅读全文
摘要:
描述 题目:现在运营想要找到每个学校gpa最低的同学来做调研,请你取出每个学校的最低gpa。 示例:user_profile id device_id gender age university gpa active_days_within_30 question_cnt answer_cnt 1 阅读全文