TestNovice
TestNovice
全部文章
分类
题解(6)
归档
标签
去牛客网
登录
/
注册
TestNovice的博客
全部文章
(共6篇)
题解 | #合并两个有序的数组#
很容易就能想到插入排序,b 数组的每个元素插入到 a 数组中
2022-06-02
0
323
题解 | #【模板】栈#
PYTHON class BinarySearch: def erfen(self,ls,left,right,val): if left <= right: mid = (left + right) // 2 if val == ls[mid]: return mid elif val &l...
Python3
2022-06-01
0
484
题解 | #扭蛋机#
def egg(n): str_word = '' if n == 1: return '2' elif n == 2:  ...
2022-05-24
0
347
题解 | #循环汉诺塔#
def b_hanoi(n): if n == 1: return 1 return 2*c_hanoi(n-1) + 1 def c_hanoi(n): i...
2022-05-24
0
333
题解 | #【模板】栈#
stack_list = [] 判断是否为空 def IsEmpty(num_list): if num_list == []: return True else: return False result_list =[] num_count = int(input()) while num_cou...
Python3
2022-04-21
2
418
题解 | #分组过滤练习题#
select university, avg(question_cnt) as avg_question_cnt, avg(answer_cnt) as avg_answer_cnt from user_profile group by university having avg_question_...
Mysql
2022-03-31
0
225