一亩三分地论坛

 找回密码
 获取更多干货,去instant注册!

扫码关注一亩三分地公众号
查看: 1171|回复: 2
收起左侧

苏宁北美研发总部R&D Center 热乎乎的面经,真是难

[复制链接] |试试Instant~ |关注本帖
francisyang 发表于 2014-11-6 07:13:32 | 显示全部楼层 |阅读模式

2015(10-12月) 分析|数据科学类 本科 全职@Suning - 网上海投 - 技术电面 |Other

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

您需要 登录 才可以下载或查看,没有帐号?获取更多干货,去instant注册!

x
一分钟前,做完Phone Interview。热乎乎的。啥都不说,直接上干货。
1. 面试官很nice,直接开始说题目。
2. 面试官很牛逼,一眼就把bug看出来,打的我直冒汗。
3. 最后一道题是leetcode上的原题稍微改了一下。
解法是,扫一遍长字符串,纪录每一个包含短字符的String 长度,返回最短那个即可。
. 鐣欏鐢宠璁哄潧-涓浜╀笁鍒嗗湴
求人品,求Offer。

1. Write a function/method that takes two string s and t and return true if t is a proper substring of s. You cannont use any library.
for example s= "abcde", t = "bcd", returns true
if t = "bce" returns false. You are not supposed to use any library.
s = "ababac"
t = "abac"

2. THis is a test of basic data structure, you can use java collection and is encouraged to.
Again, given a string s and t, return true if all characters of t is in s. . Waral 鍗氬鏈夋洿澶氭枃绔,
So for s = "abcde" and t = "cbe" return true instead of false as in Q1.

However if t = "bxy" returns false.
You can assume that all characters are unique (i.e. no duplciate).
Also, do not make assumption about the character being ascii, it could be utf-8 that represents
chinese characters. However, for the purpose of this exercise, just use a string or char type.
. 鐗涗汉浜戦泦,涓浜╀笁鍒嗗湴
3. This question is similar to 2. Here, we want to find the length of the SHORTEST substring in s that
contains all the characters in t. So for example, if s = "aabbcccddeeeeebafd" if t = "bad" .1point3acres缃
then the solution is "bafd" not "abbcccd" which longer. The character set could be in utf-8,
that is, you cannot assume that the character set has size 256. Assume also that you have run
it through the code in 2 and know that all characters in t are in s. no duplcates in string t.

. 1point 3acres 璁哄潧


评分

3

查看全部评分

求求求求内推 发表于 2015-12-8 06:12:37 | 显示全部楼层
很想面试他们的Supply Chain 部门 不知道是否 有机会,楼主有内推的?
回复 支持 反对

使用道具 举报

本版积分规则

请点这里访问我们的新网站:一亩三分地Instant.

Instant搜索更强大,不扣积分,内容组织的更好更整洁!目前仍在beta版本,努力完善中!反馈请点这里

关闭

一亩三分地推荐上一条 /5 下一条

手机版|小黑屋|一亩三分地论坛声明 ( 沪ICP备11015994号 )

custom counter

GMT+8, 2016-12-6 01:00

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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