由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - VMWare Interview question
相关主题
帮我看下这是份什么工作,不是骗钱的吧?攒人品,回答问题
我也来贡献一下亚马的题问一道面试题
MathWorks 面经问一道题
any open source project for this problem?zenpayroll店面题分享
fb国内申请的曲折经历+电面Public Health PhD 业界求职经验3-面试
请教F最近超爱的面试题任务安排的follow up怎么做On-site的一点点经历
L家coding question一问MS On Campus 题目
贡献个面试题,目前狗狗都没找到.....[合集] OS interview questions
相关话题的讨论汇总
话题: capacity话题: tasks话题: servers话题: each话题: vmware
进入JobHunting版参与讨论
1 (共1页)
w****k
发帖数: 755
1
There are at most eight servers in a data center. Each server has got a
capacity/memory limit. There can be at most 8 tasks that need to be
scheduled on those servers. Each task requires certain capacity/memory to
run, and each server can handle multiple tasks as long as the capacity limit
is not hit. Write a program to see if all of the given tasks can be
scheduled or not on the servers?
Ex:
Servers capacity limits: 8, 16, 8, 32
Tasks capacity needs: 18, 4, 8, 4, 6, 6, 8, 8
For this example, the program should say 'true'.
Ex2:
Server capacity limits: 1, 3
Task capacity needs: 4
For this example, program should return false.
p*********g
发帖数: 116
2
DFS?
w****k
发帖数: 755
3
Time complexity?

【在 p*********g 的大作中提到】
: DFS?
m******2
发帖数: 8
4
severs limits: max heap (H), size of n // build time O(n)
tasks: sorted list (L) in descending order, size of m // build time O(m
log m)
for each item in L: // O(m)
if H_max >= item_needs:
H_max = H_max - item_needs;
Heapify H_max value in H; // O(log n)
else:
return false;
end if
end for loop
return true;
这样可以不?
w****k
发帖数: 755
5
貌似总是把最大task拿到最大server上去试?这样恐怕不行。

【在 m******2 的大作中提到】
: severs limits: max heap (H), size of n // build time O(n)
: tasks: sorted list (L) in descending order, size of m // build time O(m
: log m)
: for each item in L: // O(m)
: if H_max >= item_needs:
: H_max = H_max - item_needs;
: Heapify H_max value in H; // O(log n)
: else:
: return false;
: end if

n******n
发帖数: 12088
6
装箱问题,NPC

limit

【在 w****k 的大作中提到】
: There are at most eight servers in a data center. Each server has got a
: capacity/memory limit. There can be at most 8 tasks that need to be
: scheduled on those servers. Each task requires certain capacity/memory to
: run, and each server can handle multiple tasks as long as the capacity limit
: is not hit. Write a program to see if all of the given tasks can be
: scheduled or not on the servers?
: Ex:
: Servers capacity limits: 8, 16, 8, 32
: Tasks capacity needs: 18, 4, 8, 4, 6, 6, 8, 8
: For this example, the program should say 'true'.

j**********3
发帖数: 3211
7
请问vmware有语言要求么?
l******s
发帖数: 3045
8
不是 O(m*n)?

【在 w****k 的大作中提到】
: Time complexity?
S**********5
发帖数: 896
9
能问下这类公司招不招软件背景的?
1 (共1页)
进入JobHunting版参与讨论
相关主题
[合集] OS interview questionsfb国内申请的曲折经历+电面
贡献top 20 behavioral questions和自己的心得(补充)请教F最近超爱的面试题任务安排的follow up怎么做
找工作经验-3L家coding question一问
大家帮我看看这个工作的JD贡献个面试题,目前狗狗都没找到.....
帮我看下这是份什么工作,不是骗钱的吧?攒人品,回答问题
我也来贡献一下亚马的题问一道面试题
MathWorks 面经问一道题
any open source project for this problem?zenpayroll店面题分享
相关话题的讨论汇总
话题: capacity话题: tasks话题: servers话题: each话题: vmware