【Facebook面试经验】London 3 years Valid Palindrome II and Fraction to Recurring Decimal 7 Anonymous User Facebook OA 电面 开发岗

飞天猪 2020-5-15 547


Question 1 Given a string, determine whether its palindome if you are allowed to delete atmost one character (https://leetcode.com/problems/valid-palindrome-ii/) Example "aba" - True "abca" - True "abccadsfa" - False

Question 2 Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. (https://leetcode.com/problems/fraction-to-recurring-decimal/)

If the fractional part is repeating, enclose the repeating part in parentheses.

Example 1/5 - "0.2" 1/3 - "0.(3)" 9/11 - "0.(81)"

最后于 2020-6-1 被maomoke编辑 ,原因:
最新回复 (0)
返回