Skip to content

Commit e4f91c7

Browse files
authored
Added tasks 593-648
1 parent 4a1d2b8 commit e4f91c7

File tree

37 files changed

+2940
-0
lines changed

37 files changed

+2940
-0
lines changed

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
145145
|-|-|-|-|-|-
146146
| 0380 |[Insert Delete GetRandom O(1)](src/main/kotlin/g0301_0400/s0380_insert_delete_getrandom_o1)| Medium | Top_Interview_Questions, Array, Hash_Table, Math, Design, Randomized | 1326 | 68.23
147+
| 0622 |[Design Circular Queue](src/main/kotlin/g0601_0700/s0622_design_circular_queue)| Medium | Array, Design, Linked_List, Queue | 234 | 92.68
147148

148149
### Graph Theory I
149150

@@ -230,13 +231,15 @@
230231

231232
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
232233
|-|-|-|-|-|-
234+
| 0595 |[Big Countries](src/main/kotlin/g0501_0600/s0595_big_countries)| Easy | Database | 417 | 56.09
233235
| 0584 |[Find Customer Referee](src/main/kotlin/g0501_0600/s0584_find_customer_referee)| Easy | Database | 779 | 43.48
234236
| 0183 |[Customers Who Never Order](src/main/kotlin/g0101_0200/s0183_customers_who_never_order)| Easy | Database | 712 | 33.67
235237

236238
#### Day 2 Select and Order
237239

238240
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
239241
|-|-|-|-|-|-
242+
| 0627 |[Swap Salary](src/main/kotlin/g0601_0700/s0627_swap_salary)| Easy | Database | 400 | 51.04
240243
| 0196 |[Delete Duplicate Emails](src/main/kotlin/g0101_0200/s0196_delete_duplicate_emails)| Easy | Database | 593 | 94.17
241244

242245
#### Day 3 String Processing Functions
@@ -248,6 +251,7 @@
248251

249252
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
250253
|-|-|-|-|-|-
254+
| 0608 |[Tree Node](src/main/kotlin/g0601_0700/s0608_tree_node)| Medium | LeetCode_Curated_SQL_70, Database | 794 | 48.38
251255
| 0176 |[Second Highest Salary](src/main/kotlin/g0101_0200/s0176_second_highest_salary)| Medium | Database | 219 | 92.54
252256

253257
#### Day 5 Union
@@ -261,6 +265,7 @@
261265
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
262266
|-|-|-|-|-|-
263267
| 0197 |[Rising Temperature](src/main/kotlin/g0101_0200/s0197_rising_temperature)| Easy | Database | 394 | 94.15
268+
| 0607 |[Sales Person](src/main/kotlin/g0601_0700/s0607_sales_person)| Easy | LeetCode_Curated_SQL_70, Database | 2142 | 44.56
264269

265270
#### Day 7 Function
266271

@@ -417,6 +422,7 @@
417422

418423
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
419424
|-|-|-|-|-|-
425+
| 0621 |[Task Scheduler](src/main/kotlin/g0601_0700/s0621_task_scheduler)| Medium | Array, Hash_Table, Sorting, Greedy, Heap_Priority_Queue, Counting | 266 | 98.36
420426

421427
#### Day 6 Tree
422428

@@ -569,6 +575,7 @@
569575
| 0001 |[Two Sum](src/main/kotlin/g0001_0100/s0001_two_sum)| Easy | Top_100_Liked_Questions, Top_Interview_Questions, Array, Hash_Table | 234 | 92.75
570576
| 0217 |[Contains Duplicate](src/main/kotlin/g0201_0300/s0217_contains_duplicate)| Easy | Top_Interview_Questions, Array, Hash_Table, Sorting | 719 | 73.49
571577
| 0058 |[Length of Last Word](src/main/kotlin/g0001_0100/s0058_length_of_last_word)| Easy | String | 243 | 63.33
578+
| 0605 |[Can Place Flowers](src/main/kotlin/g0601_0700/s0605_can_place_flowers)| Easy | Array, Greedy | 209 | 85.71
572579
| 0122 |[Best Time to Buy and Sell Stock II](src/main/kotlin/g0101_0200/s0122_best_time_to_buy_and_sell_stock_ii)| Medium | Top_Interview_Questions, Array, Dynamic_Programming, Greedy | 197 | 95.10
573580
| 0080 |[Remove Duplicates from Sorted Array II](src/main/kotlin/g0001_0100/s0080_remove_duplicates_from_sorted_array_ii)| Medium | Array, Two_Pointers | 357 | 44.78
574581
| 0189 |[Rotate Array](src/main/kotlin/g0101_0200/s0189_rotate_array)| Medium | Top_100_Liked_Questions, Top_Interview_Questions, Array, Math, Two_Pointers | 483 | 86.95
@@ -1022,6 +1029,7 @@
10221029

10231030
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
10241031
|-|-|-|-|-|-
1032+
| 0617 |[Merge Two Binary Trees](src/main/kotlin/g0601_0700/s0617_merge_two_binary_trees)| Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 243 | 72.83
10251033
| 0116 |[Populating Next Right Pointers in Each Node](src/main/kotlin/g0101_0200/s0116_populating_next_right_pointers_in_each_node)| Medium | Top_Interview_Questions, Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Linked_List | 355 | 69.02
10261034

10271035
#### Day 9 Breadth First Search Depth First Search
@@ -1276,6 +1284,7 @@
12761284
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
12771285
|-|-|-|-|-|-
12781286
| 0350 |[Intersection of Two Arrays II](src/main/kotlin/g0301_0400/s0350_intersection_of_two_arrays_ii)| Easy | Top_Interview_Questions, Array, Hash_Table, Sorting, Binary_Search, Two_Pointers | 321 | 73.37
1287+
| 0633 |[Sum of Square Numbers](src/main/kotlin/g0601_0700/s0633_sum_of_square_numbers)| Medium | Math, Binary_Search, Two_Pointers | 126 | 100.00
12791288

12801289
#### Day 11
12811290

@@ -1296,6 +1305,7 @@
12961305
| <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- --> | <!-- -->
12971306
|-|-|-|-|-|-
12981307
| 0209 |[Minimum Size Subarray Sum](src/main/kotlin/g0201_0300/s0209_minimum_size_subarray_sum)| Medium | Array, Binary_Search, Prefix_Sum, Sliding_Window | 315 | 96.73
1308+
| 0611 |[Valid Triangle Number](src/main/kotlin/g0601_0700/s0611_valid_triangle_number)| Medium | Array, Sorting, Greedy, Binary_Search, Two_Pointers | 203 | 100.00
12991309

13001310
#### Day 2
13011311

@@ -1631,7 +1641,43 @@
16311641
| 0864 |[Shortest Path to Get All Keys](src/main/kotlin/g0801_0900/s0864_shortest_path_to_get_all_keys)| Hard | Breadth_First_Search, Bit_Manipulation | 176 | 100.00
16321642
| 0763 |[Partition Labels](src/main/kotlin/g0701_0800/s0763_partition_labels)| Medium | Top_100_Liked_Questions, String, Hash_Table, Greedy, Two_Pointers, Data_Structure_II_Day_7_String | 235 | 84.75
16331643
| 0739 |[Daily Temperatures](src/main/kotlin/g0701_0800/s0739_daily_temperatures)| Medium | Top_100_Liked_Questions, Array, Stack, Monotonic_Stack, Programming_Skills_II_Day_6 | 936 | 80.54
1644+
| 0648 |[Replace Words](src/main/kotlin/g0601_0700/s0648_replace_words)| Medium | Array, String, Hash_Table, Trie | 392 | 100.00
16341645
| 0647 |[Palindromic Substrings](src/main/kotlin/g0601_0700/s0647_palindromic_substrings)| Medium | Top_100_Liked_Questions, String, Dynamic_Programming | 266 | 67.83
1646+
| 0646 |[Maximum Length of Pair Chain](src/main/kotlin/g0601_0700/s0646_maximum_length_of_pair_chain)| Medium | Array, Dynamic_Programming, Sorting, Greedy | 249 | 100.00
1647+
| 0645 |[Set Mismatch](src/main/kotlin/g0601_0700/s0645_set_mismatch)| Easy | Array, Hash_Table, Sorting, Bit_Manipulation | 246 | 88.46
1648+
| 0643 |[Maximum Average Subarray I](src/main/kotlin/g0601_0700/s0643_maximum_average_subarray_i)| Easy | Array, Sliding_Window | 494 | 98.65
1649+
| 0641 |[Design Circular Deque](src/main/kotlin/g0601_0700/s0641_design_circular_deque)| Medium | Array, Design, Linked_List, Queue | 232 | 100.00
1650+
| 0640 |[Solve the Equation](src/main/kotlin/g0601_0700/s0640_solve_the_equation)| Medium | String, Math, Simulation | 170 | 66.67
1651+
| 0639 |[Decode Ways II](src/main/kotlin/g0601_0700/s0639_decode_ways_ii)| Hard | String, Dynamic_Programming | 259 | 100.00
1652+
| 0638 |[Shopping Offers](src/main/kotlin/g0601_0700/s0638_shopping_offers)| Medium | Array, Dynamic_Programming, Bit_Manipulation, Backtracking, Bitmask, Memoization | 195 | 100.00
1653+
| 0637 |[Average of Levels in Binary Tree](src/main/kotlin/g0601_0700/s0637_average_of_levels_in_binary_tree)| Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 249 | 100.00
1654+
| 0636 |[Exclusive Time of Functions](src/main/kotlin/g0601_0700/s0636_exclusive_time_of_functions)| Medium | Array, Stack | 270 | 80.00
1655+
| 0633 |[Sum of Square Numbers](src/main/kotlin/g0601_0700/s0633_sum_of_square_numbers)| Medium | Math, Binary_Search, Two_Pointers, Binary_Search_I_Day_10 | 126 | 100.00
1656+
| 0632 |[Smallest Range Covering Elements from K Lists](src/main/kotlin/g0601_0700/s0632_smallest_range_covering_elements_from_k_lists)| Hard | Array, Hash_Table, Sorting, Greedy, Heap_Priority_Queue, Sliding_Window | 399 | 83.33
1657+
| 0630 |[Course Schedule III](src/main/kotlin/g0601_0700/s0630_course_schedule_iii)| Hard | Array, Greedy, Heap_Priority_Queue | 536 | 100.00
1658+
| 0629 |[K Inverse Pairs Array](src/main/kotlin/g0601_0700/s0629_k_inverse_pairs_array)| Hard | Dynamic_Programming | 155 | 100.00
1659+
| 0628 |[Maximum Product of Three Numbers](src/main/kotlin/g0601_0700/s0628_maximum_product_of_three_numbers)| Easy | Array, Math, Sorting | 276 | 97.30
1660+
| 0627 |[Swap Salary](src/main/kotlin/g0601_0700/s0627_swap_salary)| Easy | Database, SQL_I_Day_2_Select_and_Order | 400 | 51.04
1661+
| 0626 |[Exchange Seats](src/main/kotlin/g0601_0700/s0626_exchange_seats)| Medium | Database | 502 | 50.56
1662+
| 0623 |[Add One Row to Tree](src/main/kotlin/g0601_0700/s0623_add_one_row_to_tree)| Medium | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree | 202 | 100.00
1663+
| 0622 |[Design Circular Queue](src/main/kotlin/g0601_0700/s0622_design_circular_queue)| Medium | Array, Design, Linked_List, Queue, Programming_Skills_II_Day_20 | 234 | 92.68
1664+
| 0621 |[Task Scheduler](src/main/kotlin/g0601_0700/s0621_task_scheduler)| Medium | Array, Hash_Table, Sorting, Greedy, Heap_Priority_Queue, Counting, Level_2_Day_5_Greedy | 266 | 98.36
1665+
| 0620 |[Not Boring Movies](src/main/kotlin/g0601_0700/s0620_not_boring_movies)| Easy | Database | 305 | 59.80
1666+
| 0617 |[Merge Two Binary Trees](src/main/kotlin/g0601_0700/s0617_merge_two_binary_trees)| Easy | Depth_First_Search, Breadth_First_Search, Tree, Binary_Tree, Algorithm_I_Day_8_Breadth_First_Search_Depth_First_Search | 243 | 72.83
1667+
| 0611 |[Valid Triangle Number](src/main/kotlin/g0601_0700/s0611_valid_triangle_number)| Medium | Array, Sorting, Greedy, Binary_Search, Two_Pointers, Binary_Search_II_Day_1 | 203 | 100.00
1668+
| 0609 |[Find Duplicate File in System](src/main/kotlin/g0601_0700/s0609_find_duplicate_file_in_system)| Medium | Array, String, Hash_Table | 426 | 100.00
1669+
| 0608 |[Tree Node](src/main/kotlin/g0601_0700/s0608_tree_node)| Medium | LeetCode_Curated_SQL_70, Database, SQL_I_Day_4_Union_and_Select | 794 | 48.38
1670+
| 0607 |[Sales Person](src/main/kotlin/g0601_0700/s0607_sales_person)| Easy | LeetCode_Curated_SQL_70, Database, SQL_I_Day_6_Union | 2142 | 44.56
1671+
| 0606 |[Construct String from Binary Tree](src/main/kotlin/g0601_0700/s0606_construct_string_from_binary_tree)| Easy | String, Depth_First_Search, Tree, Binary_Tree | 187 | 100.00
1672+
| 0605 |[Can Place Flowers](src/main/kotlin/g0601_0700/s0605_can_place_flowers)| Easy | Array, Greedy, Udemy_Arrays | 209 | 85.71
1673+
| 0601 |[Human Traffic of Stadium](src/main/kotlin/g0601_0700/s0601_human_traffic_of_stadium)| Hard | Database | 529 | 51.80
1674+
| 0600 |[Non-negative Integers without Consecutive Ones](src/main/kotlin/g0501_0600/s0600_non_negative_integers_without_consecutive_ones)| Hard | Dynamic_Programming | 142 | 100.00
1675+
| 0599 |[Minimum Index Sum of Two Lists](src/main/kotlin/g0501_0600/s0599_minimum_index_sum_of_two_lists)| Easy | Array, String, Hash_Table | 293 | 100.00
1676+
| 0598 |[Range Addition II](src/main/kotlin/g0501_0600/s0598_range_addition_ii)| Easy | Array, Math | 176 | 66.67
1677+
| 0596 |[Classes More Than 5 Students](src/main/kotlin/g0501_0600/s0596_classes_more_than_5_students)| Easy | Database | 484 | 50.92
1678+
| 0595 |[Big Countries](src/main/kotlin/g0501_0600/s0595_big_countries)| Easy | Database, SQL_I_Day_1_Select | 417 | 56.09
1679+
| 0594 |[Longest Harmonious Subsequence](src/main/kotlin/g0501_0600/s0594_longest_harmonious_subsequence)| Easy | Array, Hash_Table, Sorting | 331 | 100.00
1680+
| 0593 |[Valid Square](src/main/kotlin/g0501_0600/s0593_valid_square)| Medium | Math, Geometry | 161 | 83.33
16351681
| 0592 |[Fraction Addition and Subtraction](src/main/kotlin/g0501_0600/s0592_fraction_addition_and_subtraction)| Medium | String, Math, Simulation | 164 | 100.00
16361682
| 0591 |[Tag Validator](src/main/kotlin/g0501_0600/s0591_tag_validator)| Hard | String, Stack | 177 | 100.00
16371683
| 0590 |[N-ary Tree Postorder Traversal](src/main/kotlin/g0501_0600/s0590_n_ary_tree_postorder_traversal)| Easy | Depth_First_Search, Tree, Stack | 237 | 88.10
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
[![](https://img.shields.io/github/stars/javadev/LeetCode-in-Kotlin?label=Stars&style=flat-square)](https://github.com/javadev/LeetCode-in-Kotlin)
2+
[![](https://img.shields.io/github/forks/javadev/LeetCode-in-Kotlin?label=Fork%20me%20on%20GitHub%20&style=flat-square)](https://github.com/javadev/LeetCode-in-Kotlin/fork)
3+
4+
## 593\. Valid Square
5+
6+
Medium
7+
8+
Given the coordinates of four points in 2D space `p1`, `p2`, `p3` and `p4`, return `true` _if the four points construct a square_.
9+
10+
The coordinate of a point <code>p<sub>i</sub></code> is represented as <code>[x<sub>i</sub>, y<sub>i</sub>]</code>. The input is **not** given in any order.
11+
12+
A **valid square** has four equal sides with positive length and four equal angles (90-degree angles).
13+
14+
**Example 1:**
15+
16+
**Input:** p1 = [0,0], p2 = [1,1], p3 = [1,0], p4 = [0,1]
17+
18+
**Output:** true
19+
20+
**Example 2:**
21+
22+
**Input:** p1 = [0,0], p2 = [1,1], p3 = [1,0], p4 = [0,12]
23+
24+
**Output:** false
25+
26+
**Example 3:**
27+
28+
**Input:** p1 = [1,0], p2 = [-1,0], p3 = [0,1], p4 = [0,-1]
29+
30+
**Output:** true
31+
32+
**Constraints:**
33+
34+
* `p1.length == p2.length == p3.length == p4.length == 2`
35+
* <code>-10<sup>4</sup> <= x<sub>i</sub>, y<sub>i</sub> <= 10<sup>4</sup></code>
36+
37+
## Solution
38+
39+
```kotlin
40+
import java.util.Arrays
41+
42+
class Solution {
43+
fun validSquare(p1: IntArray, p2: IntArray, p3: IntArray, p4: IntArray): Boolean {
44+
val distancesSquared = IntArray(6)
45+
distancesSquared[0] = getDistanceSquared(p1, p2)
46+
distancesSquared[1] = getDistanceSquared(p1, p3)
47+
distancesSquared[2] = getDistanceSquared(p1, p4)
48+
distancesSquared[3] = getDistanceSquared(p2, p3)
49+
distancesSquared[4] = getDistanceSquared(p2, p4)
50+
distancesSquared[5] = getDistanceSquared(p3, p4)
51+
Arrays.sort(distancesSquared)
52+
if (distancesSquared[0] == 0) {
53+
return false
54+
}
55+
if (distancesSquared[0] != distancesSquared[3]) {
56+
return false
57+
}
58+
return if (distancesSquared[4] != distancesSquared[5]) {
59+
false
60+
} else distancesSquared[5] == 2 * distancesSquared[0]
61+
}
62+
63+
private fun getDistanceSquared(p1: IntArray, p2: IntArray): Int {
64+
val deltaX = p2[0] - p1[0]
65+
val deltaY = p2[1] - p1[1]
66+
return deltaX * deltaX + deltaY * deltaY
67+
}
68+
}
69+
```
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
[![](https://img.shields.io/github/stars/javadev/LeetCode-in-Kotlin?label=Stars&style=flat-square)](https://github.com/javadev/LeetCode-in-Kotlin)
2+
[![](https://img.shields.io/github/forks/javadev/LeetCode-in-Kotlin?label=Fork%20me%20on%20GitHub%20&style=flat-square)](https://github.com/javadev/LeetCode-in-Kotlin/fork)
3+
4+
## 594\. Longest Harmonious Subsequence
5+
6+
Easy
7+
8+
We define a harmonious array as an array where the difference between its maximum value and its minimum value is **exactly** `1`.
9+
10+
Given an integer array `nums`, return _the length of its longest harmonious subsequence among all its possible subsequences_.
11+
12+
A **subsequence** of array is a sequence that can be derived from the array by deleting some or no elements without changing the order of the remaining elements.
13+
14+
**Example 1:**
15+
16+
**Input:** nums = [1,3,2,2,5,2,3,7]
17+
18+
**Output:** 5
19+
20+
**Explanation:** The longest harmonious subsequence is [3,2,2,2,3].
21+
22+
**Example 2:**
23+
24+
**Input:** nums = [1,2,3,4]
25+
26+
**Output:** 2
27+
28+
**Example 3:**
29+
30+
**Input:** nums = [1,1,1,1]
31+
32+
**Output:** 0
33+
34+
**Constraints:**
35+
36+
* <code>1 <= nums.length <= 2 * 10<sup>4</sup></code>
37+
* <code>-10<sup>9</sup> <= nums[i] <= 10<sup>9</sup></code>
38+
39+
## Solution
40+
41+
```kotlin
42+
import java.util.Arrays
43+
44+
class Solution {
45+
fun findLHS(nums: IntArray): Int {
46+
Arrays.sort(nums)
47+
var max = 0
48+
var lastN = 0
49+
var curN = 1
50+
var cur = nums[0]
51+
for (i in 1 until nums.size) {
52+
if (nums[i] > cur) {
53+
if (lastN > 0 && curN > 0 && lastN + curN > max) {
54+
max = lastN + curN
55+
}
56+
// if diff more than 1, don't count
57+
lastN = if (nums[i] - cur == 1) curN else 0
58+
curN = 1
59+
cur = nums[i]
60+
} else {
61+
curN++
62+
}
63+
}
64+
if (lastN > 0 && curN > 0 && lastN + curN > max) {
65+
max = lastN + curN
66+
}
67+
return max
68+
}
69+
}
70+
```
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
[![](https://img.shields.io/github/stars/javadev/LeetCode-in-Kotlin?label=Stars&style=flat-square)](https://github.com/javadev/LeetCode-in-Kotlin)
2+
[![](https://img.shields.io/github/forks/javadev/LeetCode-in-Kotlin?label=Fork%20me%20on%20GitHub%20&style=flat-square)](https://github.com/javadev/LeetCode-in-Kotlin/fork)
3+
4+
## 595\. Big Countries
5+
6+
Easy
7+
8+
SQL Schema
9+
10+
Table: `World`
11+
12+
+-------------+---------+
13+
| Column Name | Type |
14+
+-------------+---------+
15+
| name | varchar |
16+
| continent | varchar |
17+
| area | int |
18+
| population | int |
19+
| gdp | int |
20+
+-------------+---------+
21+
name is the primary key column for this table.
22+
Each row of this table gives information about the name of a country, the continent to which it belongs,
23+
its area, the population, and its GDP value.
24+
25+
A country is **big** if:
26+
27+
* it has an area of at least three million (i.e., <code>3000000 km<sup>2</sup></code>), or
28+
* it has a population of at least twenty-five million (i.e., `25000000`).
29+
30+
Write an SQL query to report the name, population, and area of the **big countries**.
31+
32+
Return the result table in **any order**.
33+
34+
The query result format is in the following example.
35+
36+
**Example 1:**
37+
38+
**Input:**
39+
40+
World table:
41+
+-------------+-----------+---------+------------+--------------+
42+
| name | continent | area | population | gdp |
43+
+-------------+-----------+---------+------------+--------------+
44+
| Afghanistan | Asia | 652230 | 25500100 | 20343000000 |
45+
| Albania | Europe | 28748 | 2831741 | 12960000000 |
46+
| Algeria | Africa | 2381741 | 37100000 | 188681000000 |
47+
| Andorra | Europe | 468 | 78115 | 3712000000 |
48+
| Angola | Africa | 1246700 | 20609294 | 100990000000 |
49+
+-------------+-----------+---------+------------+--------------+
50+
51+
**Output:**
52+
53+
+-------------+------------+---------+
54+
| name | population | area |
55+
+-------------+------------+---------+
56+
| Afghanistan | 25500100 | 652230 |
57+
| Algeria | 37100000 | 2381741 |
58+
+-------------+------------+---------+
59+
60+
## Solution
61+
62+
```sql
63+
# Write your MySQL query statement below
64+
SELECT name,population,area FROM World
65+
WHERE area >= 3000000 or population >= 25000000;
66+
```

0 commit comments

Comments
 (0)