<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

Bank of America计算机科学面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(3)
OOD(1)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
全部(3)
OOD(1)
Algorithm(0)
System Design(0)
高频题(0)
Math(0)
1.Split the Number Programming Challenge
2.Add Number Series II Programming Challenge
3.Introduction to Tech Stack
1. Split the Number Programming Challenge
You are given a number N and a pattern. The pattern consists of lowercase Latin letters and one operation '+' or '-'. The challenge is to split the number and evaluate it according to this pattern e.g., 1252 ab+cd → a:1, b:2, c:3, d:2 → 12+32 → 44. Your program should read lines from standard input. Each line contains the number and the pattern separated by a single whitespace. The number will be in range [100, 1000000000]. All test cases contain valid expressions (no leading zeros).
2. Add Number Series II Programming Challenge
Write a program that, given an integer N, sums all the whole numbers from 1 through N (both inclusive). Do not include in your sum any of the intermediate values (1 and N inclusive) that are divisible by 5 or 7. Your program should read lines from standard input. Each line contains a positive integer. For each line of input, print to standard output the sum of the integers from 1 through n, disregarding those divisible by 5 and 7. Print out each result on a new line.
3. Introduction to Tech Stack
What languages have you used before? What projects have you worked on? Can you describe a situation where you had to ensure that the code you wrote would not be broken by the next person who works on it?