May 2009 - May 2017 论坛八周年-你的足迹,我的骄傲



查看: 2215|回复: 2

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

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

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


您需要 登录 才可以下载或查看,没有帐号?获取更多干活,快来注册

一分钟前,做完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. -google 1point3acres
s = "ababac"
t = "abac"

2. THis is a test of basic data structure, you can use java collection and is encouraged to.. from:
Again, given a string s and t, return true if all characters of t is in s.
So for s = "abcde" and t = "cbe" return true instead of false as in Q1. . more info on

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"
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 .1point3acres缃
it through the code in 2 and know that all characters in t are in s. no duplcates in string t.




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

使用道具 举报



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

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

custom counter

GMT+8, 2017-5-26 04:58

Powered by Discuz! X3

© 2001-2013 Comsenz Inc. Design By HUXTeam

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