上一页 1 ··· 25 26 27 28 29
摘要: Say you have an array for which the *i*th element is the price of a given stock on day *i*. If you were only permitted to complete at most one transaction 阅读全文
posted @ 2019-04-11 11:22 yjxyy 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Given a string containing just the characters `'('`, `')'`, `'{'`, `'}'`, `'['` and `']'`, determine if the input string is valid. 阅读全文
posted @ 2019-04-11 11:20 yjxyy 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 输入某二叉树的前序遍历和中序遍历的结果,请重建出该二叉树。 阅读全文
posted @ 2019-04-11 11:17 yjxyy 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 输入一个链表,按链表值从尾到头的顺序返回一个ArrayList。 阅读全文
posted @ 2019-04-11 11:15 yjxyy 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 线程有六种存在状态 阅读全文
posted @ 2019-04-10 21:59 yjxyy 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 在语言层面,创建一个对象通常仅仅是一个new关键字而已。在虚拟机层面,虚拟机遇到一个new指令时,首先回去检查这个指令的参数是能在常量池中定位到一个类的符号引用,并检查这个符号引用代表的类是否已被加载,解析和初始化过。如果没有那么必须先执行类加载操作。 阅读全文
posted @ 2019-04-10 21:26 yjxyy 阅读(287) 评论(0) 推荐(0) 编辑
摘要: Java运行时数据区域包括线程私有区域和线程共享区域 阅读全文
posted @ 2019-04-10 13:08 yjxyy 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers, return **indices** of the two numbers such that they add up to a specific target. You may assume that each input would have **exactly** one solution, and you may not use the *same* element twice. 阅读全文
posted @ 2019-04-09 23:08 yjxyy 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 阅读全文
posted @ 2019-04-09 14:43 yjxyy 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 阅读全文
posted @ 2019-04-09 12:01 yjxyy 阅读(120) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29