由买买提看人间百态

topics

全部话题 - 话题: soluction
(共0页)
w**********4
发帖数: 157
1
来自主题: JobHunting版 - Bloomberg phone interview 面经
也写一下最近面的bloomberg 的面经。
总共两次phone interview 每次两个题目。
第一次phone interview
第一题 max stack : 这个是 leetcode 上 min stack 的原题,只是 getMin
改成getMax
第二题 输入 一个String s 在 s 后添加最少的 String s' 得到 新的
String T 是一个 palindromic。
第二次phone interview
第一题 input array of number {1,2,3,4,5,6} return number of array {2
*3*4*5*6, 1*3*4*5*6,1*2*4*5*6,1*2*3*5*6,1*2*3*4*6,1*2*3*4*5 }, 要求 不允许用
除法。
my soluction :
publicList getResult(int[] num) {
List res = new ArrayLis... 阅读全帖
g****y
发帖数: 212
2
来自主题: DotNet版 - InstallShield & .NET

You don't need installshield.
Just add a setup project in your current soluction and add the project output.
Very easy.just try it.
t****s
发帖数: 141
3
来自主题: Java版 - possible soluction
Use www.google.com search Jbutton, toggle button and I got this
http://java.sun.com/products/jlf/dg/higq.htm
toggle button
A button that alternates between two states. For example, a user
might click one toggle button in a toolbar to turn italics on and
off. A single toggle button has checkbox behavior; a programmatically
grouped set of toggle buttons can be given the mutually exclusive
behavior of radio buttons. Toggle buttons are created using the
JToggleButton component. See also toolbar butt
b***e
发帖数: 1419
4
来自主题: Science版 - Re: A question
The trick for this question is use a variable-based radix sort.
In normal radix sort, the bases are fixed. This time use the
variable "n" as the sorting base. Concete soluction is as follows:
Rewrite each number in the representation of (x / n, x % n), where
the "/" represents integeral division, and "%" represents integeral
modulo, as in C. You can first use counting sort to sort the second
elements of all the pairs , and then sort the first element. This
takes O(n) time.
(共0页)