瀏覽代碼

add week 4 questions

Froilan Miranda 6 年之前
父節點
當前提交
66db7a696c
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19
    0
      Week 4.md

+ 19
- 0
Week 4.md 查看文件

1
+## Week 4
2
+### Problem 1
3
+
4
+Write a Java program to find the common elements between two arrays (string values)
5
+
6
+```
7
+Array1 : [Python, JAVA, PHP, C#, C++, SQL]                                                                    
8
+Array2 : [MySQL, SQL, SQLite, Oracle, PostgreSQL, DB2, JAVA]                                                  
9
+Common element is : [JAVA, SQL]
10
+```
11
+
12
+### Problem 2
13
+
14
+Write a Java program to find the second largest element in an array.
15
+
16
+```
17
+Original numeric array : [10789, 2035, 1899, 1456, 2013, 1458, 2458, 1254, 1472, 2365, 1456, 2165, 1457, 2456]
18
+Second largest value: 2458
19
+```