This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
FROM barang | |
WHERE HARGA > 10000 | |
ORDER BY HARGA ASC; | |
SELECT * | |
FROM pelanggan | |
WHERE NAMA LIKE '%g%' AND ALAMAT = 'BANDUNG'; | |
SELECT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
public class Anagram { | |
public static List<List<String>> solution(String[] arr){ | |
Map<String, List<String>> groups = new HashMap(); | |
for (String word : arr){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_leap(year): | |
leap = False | |
if year % 400 == 0: | |
return True | |
elif year % 100 == 0: | |
return leap | |
elif year % 4 == 0: | |
return True | |
return leap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_leap(year): | |
leap = False | |
if year % 100 == 0: | |
return leap | |
elif year % 4 == 0: | |
return True | |
elif year % 400 == 0: | |
return True | |
return leap |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_leap(year): | |
leap = False | |
if year % 4 == 0: | |
return True | |
elif year % 100 == 0: | |
return leap | |
elif year % 400 == 0: | |
return True | |
return leap |