首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
每天进步一点点____
获赞
3
粉丝
0
关注
2
看过 TA
22
女
北京科技大学
2025
IP属地:北京
暂未填写个人简介
私信
关注
拉黑
举报
举报
确定要拉黑每天进步一点点____吗?
发布(20)
刷题
每天进步一点点____
03-29 17:19
北京科技大学 电子信息类
题解 | #寻找峰值#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型 # class Solution: def findPeakElement(self , nums: List[int]) -> int: # write code here l=0 r=len(nums)-1 while l<r: m=(l+r)//2 if nums[m]<nums[...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 16:23
北京科技大学 电子信息类
题解 | #二分查找-I#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @param target int整型 # @return int整型 # class Solution: def search(self , nums: List[int], target: int) -> int: # write code here l=0 r=len(nums)-1 while l<=r: # 这里的条件有等于,因为当l=r时,下一步算m就...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 15:44
北京科技大学 电子信息类
题解 | #缺失的第一个正整数#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型 # class Solution: def minNumberDisappeared(self , nums: List[int]) -> int: n = len(nums) mp = dict() #哈希表记录数组中出现的每个数字 for i in range(n): if nums[i] in mp: ...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 15:19
北京科技大学 电子信息类
题解 | #数组中只出现一次的两个数字#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param nums int整型一维数组 # @return int整型一维数组 # class Solution: def FindNumsAppearOnce(self , nums: List[int]) -> List[int]: # write code here mp={} result=[] for i in nums: if i in mp: mp...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 15:09
北京科技大学 电子信息类
题解 | #数组中出现次数超过一半的数字#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param numbers int整型一维数组 # @return int整型 # class Solution: def MoreThanHalfNum_Solution(self , numbers: List[int]) -> int: # write code here l=len(numbers) res=l/2 mp={} for i in numbers: if i...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 14:55
北京科技大学 电子信息类
题解 | #删除有序链表中重复的元素-II#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head ListNode类 # @return ListNode类 # # 该题的难点在于如果有好几个相同的连载一起,怎样舍去这些相同的? 用哈希表,键表示链表节点的值,值表示出现的次数 class Solution: def deleteDuplicates(self , hea...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 11:39
北京科技大学 电子信息类
题解 | #链表的奇偶重排#
from re import template # class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head ListNode类 # @return ListNode类 # class Solution: def oddEvenList(self , head: ListNode) -> ListNode: # w...
0
点赞
评论
收藏
转发
每天进步一点点____
03-29 11:32
北京科技大学 电子信息类
题解 | #链表的奇偶重排#
from re import template # class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head ListNode类 # @return ListNode类 # class Solution: def oddEvenList(self , head: ListNode) -> ListNode: # w...
0
点赞
评论
收藏
转发
每天进步一点点____
03-28 21:53
北京科技大学 电子信息类
题解 | #单链表的排序#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head ListNode类 the head node # @return ListNode类 # class Solution: def sortInList(self , head: ListNode) -> ListNode: # write code he...
0
点赞
评论
收藏
转发
每天进步一点点____
03-27 12:58
北京科技大学 电子信息类
重庆长安
佬们,长安汽车的大数据岗需要会什么呀,目前在做算法只会python,该补点其他的什么知识呀?#长安##大数据##算法#
0
点赞
评论
收藏
转发
每天进步一点点____
03-21 13:49
北京科技大学 电子信息类
题解 | #判断链表中是否有环#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # # @param head ListNode类 # @return bool布尔型 # class Solution: def hasCycle(self , head: ListNode) -> bool: fast=slow=head while fast and fast.next: fast=fast.next....
0
点赞
评论
收藏
转发
每天进步一点点____
03-20 13:08
北京科技大学 电子信息类
题解 | #链表内指定区间反转#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def reverseBetween(self , head: ListNode, m: int, n: int) -> ListNode: dummy_head = ListNode(0) dummy_head.next = head # Move prev to the node befo...
0
点赞
评论
收藏
转发
每天进步一点点____
01-12 15:46
北京科技大学 电子信息类
题解 | #反转链表#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param head ListNode类 # @return ListNode类 # class Solution: def ReverseList(self , head: ListNode): pre=None # 空节点,让头节点指向。 cur=head ...
0
点赞
评论
收藏
转发
每天进步一点点____
01-01 21:19
北京科技大学 电子信息类
题解 | #查找后排序#
select device_id,age from user_profile order by age
0
点赞
评论
收藏
转发
每天进步一点点____
2023-12-30 17:01
北京科技大学 电子信息类
题解 | #查找GPA最高值#
select gpa from user_profile where university='复旦大学' order by gpa desc limit 1 使用order by和limit可以找到一个列中最高或者最低的值。order by a desc
0
点赞
评论
收藏
转发
1
2
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务