首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
霸气战苍穹
哈尔滨理工大学
2017届
PHP工程师
php
关注
私信
加入黑名单
举报TA
首页
刷题
圈子
项目
笔记
基本资料
真题试卷
在线编程
心理测试
回答的问题(12)
函数执行时,如果由于panic导致了异常,则延迟函数不会执行。这一说法是否正确。
1
可以用recover来捕获defer panic
发表于 2018-01-28 20:13:09
包含min函数的栈
0
import java.util.Stack; public class Solution { Stack<Integer> stackData = null; Stack<Integer> stackMin = null; public Sol...
发表于 2016-03-27 06:34:26
基本字符串压缩
1
import java.util.*; public class Zipper { public String concat(String s1,String s2,String s3){ return s1+s2+s3; } public String zipString(Str...
发表于 2016-02-20 08:43:45
翻转单词序列
1
public class Solution { public String ReverseSentence(String str) { if(str == null ||str.equals("")){ return ""; ...
发表于 2016-02-20 08:14:11
翻转子串
1
RT import java.util.*; public class ReverseEqual { public boolean checkReverseEqual(String s1, String s2) { // write code here if(s1 =...
发表于 2016-02-19 09:56:05
确定两串乱序同构
1
import java.util.*; public class Same { public boolean checkSam(String stringA,String stringB){ char str1[] = stringA.toCharArray(); char str...
发表于 2016-02-19 09:42:32
BGP是在什么之间传播路由的协议?
8
BGP是自治 系统 间的路由协议,BGP交换的网络可达性信息提供了足够的信息来检测路由回路并根据性能优先和策略约束对路由进行决策。
发表于 2016-02-07 07:51:00
第一个只出现一次的字符
0
# -*- coding:utf-8 -*- class Solution: def FirstNotRepeatingChar(self, s): L= [] if len(s)==0: return -1 for x...
发表于 2016-02-01 07:29:30
旋转数组的最小数字
1
# -*- coding:utf-8 -*- class Solution: def minNumberInRotateArray(self, rotateArray): if len(rotateArray)==0:return 0 data = sorted(rotateArray) retu...
发表于 2016-01-31 18:45:08
空格替换
1
# -*- coding:utf-8 -*- class Replacement: def replaceSpace(self, iniString, length): return iniString.replace(' ','%20')
发表于 2016-01-31 12:02:13
首页
上一页
1
2
下一页
末页
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题