2020-08-21
在牛客打卡3天,今天也很努力鸭!
全部评论
大家有收到面试通知吗
第二题 91%
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if(n == 0){
System.out.println(0);
}else{
int sum = n*n;
long [] array = new long[sum];
array[0] = 1;
array[1] = 1;
for(int i = 2;i<array.length;i++){
array[i] = array[i-1]+array[i-2];
}
int temp = array.length-1;
long [][] arrays = new long[n][n];
int top = 0;
int left = 0;
int right = n-1;
int low = n-1;
while (top<=low || left<=right){
if (top<=low){
for(int i = left;i<=right;i++){
arrays[top][i] = array[temp];
temp--;
}
top++;
}
if(right>=left){
for(int i = top;i<=low;i++){
arrays[i][right] = array[temp];
temp--;
}
right--;
}
if (low>=top){
for(int i = right;i>=left;i--){
arrays[low][i] = array[temp];
temp--;
}
low--;
}
if (left<=right){
for(int i = low;i>=top;i--){
arrays[i][left] = array[temp];
temp--;
}
left++;
}
}
int num = 0;
for(int i = 0;i<arrays.length;i++){
for(int j = 0;j<arrays[0].length;j++){
System.out.print(arrays[i][j]+" ");
num++;
if(num%n == 0){
System.out.println();
}
}
}
}
}
我第二题过了91%,谁要?
有换答案的吗
1换2有吗
如果不笔试就这一次机会吗?
8月17号投的,现在都没收到笔试通知,还在简历筛选中,是简历没通过嘛
相关推荐
10-30 16:38
华东理工大学 嵌入式软件开发 从八月底开始投了135家,全都是嵌入式软件岗。只有经纬恒润给了面试,且二面挂。准备沉淀沉淀备战春招了😭lu过的大佬帮忙看看简历,是缺个对口实习,还是做个更有深度的项目,还是别转码了直接老老实实下车间😭
不知道怎么取名字_:两个方向
1.简历针对性准备下
2.面试前也需要准备的
主要还是要看各个公司需求,看公司行业和岗位描述,那里面已经写了对技术的需求,一份简历,不可能和所有嵌入式岗位都匹配的 点赞 评论 收藏
分享
点赞 评论 收藏
分享