Bläddra i källkod

add week 4 questions

Froilan Miranda 6 år sedan
förälder
incheckning
66db7a696c
1 ändrade filer med 19 tillägg och 0 borttagningar
  1. 19
    0
      Week 4.md

+ 19
- 0
Week 4.md Visa fil

@@ -0,0 +1,19 @@
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
+```