Browse Source

add week 4 questions

Froilan Miranda 6 years ago
parent
commit
66db7a696c
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      Week 4.md

+ 19
- 0
Week 4.md View File

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
+```