I applied online. The process took 1 week. I interviewed at Tomofun (Taipei) in Apr 2024
Interview
Pretest 1.5 hours. Will forward to next interview if pass.
pretest has three topics:
1 leetcode medium
3 SQL problems
2 linux problems
I solve all problem but still silent.
Interview questions [3]
Question 1
Define a class which fit following conditions
1. initialize this class to contain the input string, which includes various numbers with delimiter "#". Following is an example: "100#3#18#11#123#500#96"
2. this class provides following 3 functions and output type should be integer:
max: return the maximum number from the input string
min: return the minimum number from the input string
median: return the median number from the input string
The input will be a string as following example:"100#3#18#11#123#500#96"
The output should be an the integer sequence by the ordering: max, median and min separated by a dash, following is the example: 500-96-3
- Examples
Input: "1#2#3"
Output: 3-2-1
Input: "4#2#3#1"
Output: 4-2-1
2. We are intend to record address data in database like following samples
No.123, Ln.3, Bade Rd, Taipei City
No.10, Bade Rd, Taipei City
No.33, Ln.10, Hoping Rd, Taipei City
No.35, Ln.10, Hoping Rd, Taipei City
1. Design a table for record address in MySQL or PostgreSQL, as following samples. Please describe column name, data type and primary key and so on (Only considers Number, Lane, Road, City)