【牛客-算法】NC55 最长公共前缀???? 写在前面1.题目描述2.算法设计思路3.算法实现(思路一,C语言)4.运行结果结束语: 给你一个大小为 n 的字符串数组 strs ,其中包含n个字符串 , 编写一个函数来查找字符串数组中的最长公共前缀,返回这个公共前缀。纵向遍历;按字典顺序排序;时间复杂度;牛客;数据结构;字符串; 牛客(较水) 2023-08-29 113 点赞 1 评论 171 浏览
剑指offer-数组中只出现一次的数字-hashmap-异或-python hashmap做法def FindNumsAppearOnce(array): # write code here candicate = set() for element in array: if element in candicate: candicate.remove(element) else: ... leetcode 2023-08-27 117 点赞 1 评论 177 浏览