Explorar el Código

add week 4 questions

Froilan Miranda hace 6 años
padre
commit
66db7a696c
Se han modificado 1 ficheros con 19 adiciones y 0 borrados
  1. 19
    0
      Week 4.md

+ 19
- 0
Week 4.md Ver fichero

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