回复: 7
跳转到指定楼层
上一主题 下一主题
收起左侧

SAP Ariba Software Engineer Programming Assignment

全局:

2017(10-12月) 码农类General 硕士 全职@sap - 内推 - 其他  | | Pass | 在职跳槽

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x
SAP Ariba in Palo Alto
主要是 JAVA 语言
三年工作经验

Final Round 之后说我 multi-threads 部分不够好,加一道题。
邮件发给我题目,两天之内做完发回去。
Final Round 的面经:


以下是题目:

Ariba system will process almost 3000 xml per hour per customer. In the xml file, it has multiple addresses. Once system parse xml file for address, it will search DB to check if it is existed. If not, system will create a new address in DB and return this address object. If system find this address in DB, it will return the existed address.
The address search in DB (database) will cause a big problem. The DB CPU will be very high if we search DB for every address object. Meanwhile, we want to avoid cre
您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
使用VIP即刻解锁阅读权限或查看其他获取积分的方式
游客,您好!
本帖隐藏的内容需要积分高于 188 才可浏览
您当前积分为 0。
VIP即刻解锁阅读权限查看其他获取积分的方式
Unlock interview details and practice with AI
Curated Interview Questions from Top Companies
ss a (details XXX)
Output a, it is already existed


Q4:
If parsing XML process is multiple-thread, and many of them will call CommonAddressCache to get address simultaneously. How could you optimize your cache.
Hint: If you lock  CommonAddressCache, the process will be will slow as there are almost 3000 file per hour.



上一篇:BB 电面
下一篇:灵魂发问 FB实习选组跪求建议!!
🔗
dajiangyou 2018-2-6 02:39:56 | 只看该作者
全局:
楼主最后录了吗
回复

使用道具 举报

🔗
csismylife 2018-2-14 06:48:45 | 只看该作者
全局:
楼主有消息吗?
回复

使用道具 举报

🔗
beehamer 2018-3-24 03:56:24 | 只看该作者
全局:
楼主可以私信一下联系方式吗?
回复

使用道具 举报

🔗
 楼主| zhqtemp1 2018-3-24 07:54:20 | 只看该作者
全局:
beehamer 发表于 2018-3-24 03:56
楼主可以私信一下联系方式吗?

有什么问题吗?可以贴在这里,要是别人有相同问题可以参考的。
或者发站内信给我。
回复

使用道具 举报

🔗
beehamer 2018-3-25 10:41:12 | 只看该作者
全局:
zhqtemp1 发表于 2018-3-24 07:54
有什么问题吗?可以贴在这里,要是别人有相同问题可以参考的。
或者发站内信给我。

我私信你联系方式啦 想求教个问题
回复

使用道具 举报

🔗
beehamer 2018-3-25 13:43:08 | 只看该作者
全局:
想问下关于parse xml 的地方 如果得到了一个node 用
NodeList nList = doc.getElementsByTagName("PostalAddress");
可以满足题目要求吗? 也就是说可不可以查找到所有树里面的PostalAddress呢?
回复

使用道具 举报

🔗
 楼主| zhqtemp1 2018-3-26 06:04:13 | 只看该作者
全局:
beehamer 发表于 2018-3-25 13:43
想问下关于parse xml 的地方 如果得到了一个node 用
NodeList nList = doc.getElementsByTagName("Postal ...

你自己拿着样例 XML 试一下。如果行的话,为什么不能满足题目要求?如果不行的话,哪里有问题?
回复

使用道具 举报

返回列表 发新帖
您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表