OA VO support

Welcome to IBM US – Standard – Back-End – IBM OA 真题 – 一亩三分地 – VO support – OA 代写 – 面试代面

Welcome to IBM US - Standard - Back-End

  • Test duration: 45 mins
  • No. of questions: 2 questions

Question 1

Given a string, return the character that appears the maximum number of times in the string. The string will contain only ASCII characters, from the ranges ('a'-'z', 'A'-'Z', '0'-'9'), and case matters. If there is a tie in the maximum number of times a character appears in the string, return the character that appears first in the string.

Example
Input: text = abbbaccc
Output: a
Explanation: Both 'a' and 'b' occur 3 times in the text. Since 'a' occurs earlier, 'a' is the answer.

Function Description
Complete the function maximumOccurringCharacter in the editor below.

  • Parameter:
    string text: the string to be operated upon
  • Returns:
    char: The most occurring character that appears first in the string.

Constraints:

  • 10 ≤ |text| ≤ 10^4
  • All characters are alphanumeric, in the ranges ('a'-'z', 'A'-'Z', '0'-'9')

Sample Input for Custom Testing
text = "helloworld"

Sample Output
l

Explanation: The character 'l' occurs the most, 3 times in the string 'helloworld'.


Question 2

In the dynamic world of web hosting, providing customers with a clear overview of their assets is key to enhancing user experience. A development team must create a feature for an online hosting customer's panel that generates a dashboard report of all customers and the number of active websites they own.

The results should include the following columns:

  • email: the email address of the customer
  • total_active_sites: the total number of active websites for each customer

The results should be sorted in ascending order by email.

Note: Only active websites should be included.

Schema:

  • customers:
    • id (INT, Primary Key): The identifier of the customer
    • email (VARCHAR(255)): The email address of the customer
  • sites:
    • customer_id (INT, Foreign Key): The reference to the customer's ID
    • url (VARCHAR(255)): The URL of the site
    • is_active (BOOLEAN): The status of the website (1 for active, 0 for inactive)

Schema

  • customers
    • id (INT, Primary Key): The identifier of the customer
    • email (VARCHAR(255)): The email address of the customer
  • sites
    • customer_id (INT, Foreign Key): The reference to the customer's ID
    • url (VARCHAR(255)): The URL of the site
    • is_active (BOOLEAN): The status of the website (1 for active, 0 for inactive)

Sample Data Tables

customers

idemail
1dcristofol0@slashdot.org
2mbillanie1@japanpost.jp
3hmainz2@utexas.edu

sites

customer_idurlis_active
1https://trellian.com1
1https://www.google.de1
1https://merriam-webster.com1
1https://wordpress.com1
1https://nsw.gov.au1
1https://www.barnesandnoble.com1
1https://www.yahoo.com1
2https://cloudflare.com0
2https://www.is.gd1
2https://www.unesco.org1
3https://www.sina.com.cn0
3https://xinhuanet.com1
3https://cyberchimps.com1
3https://ask.com1
3https://businessinsider.com1
3https://www.dailymail.co.uk1
3https://www.guardian.co.uk1
3https://www.microsoft.com1
3https://www.gizmodo.com1
3https://www.163.com1

Sample Output

emailtotal_active_sites
dcristofol0@slashdot.org7
hmainz2@utexas.edu9
mbillanie1@japanpost.jp2

我们长期稳定承接各大科技公司如TikTok、Google、Amazon等的OA笔试代写服务,确保满分通过。如有需求,请随时联系我们。

We consistently provide professional online assessment services for major tech companies like TikTok, Google, and Amazon, guaranteeing perfect scores. Feel free to contact us if you're interested.

Leave a Reply

Your email address will not be published. Required fields are marked *