Amazon Interview Question
Software Engineer / DevelopersTeam: Hyderabad
Country: India
Interview Type: Phone Interview
I started my answer with available java api, but the interviewer told not to use api as api always has its own overhead.
1. Regular Expression? Here's a Java Snippet
public class RegularExpression
{
public static void regularExpression(String s)
{
Pattern p = Pattern.compile("%20");
Matcher m = p.matcher(s);
System.out.println(m.replaceAll(" "));
}
}
sed?
- Anonymous March 14, 2012