Skip to content

Commit e07de34

Browse files
authored
Updated tasks 23, 25, 47
1 parent 895eb56 commit e07de34

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

src.save/main/kotlin/g0001_0100/s0023_merge_k_sorted_lists/Solution.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ package g0001_0100.s0023_merge_k_sorted_lists
55

66
import com_github_leetcode.ListNode
77

8+
/*
9+
* Example:
10+
* var li = ListNode(5)
11+
* var v = li.`val`
12+
* Definition for singly-linked list.
13+
* class ListNode(var `val`: Int) {
14+
* var next: ListNode? = null
15+
* }
16+
*/
817
class Solution {
918
fun mergeKLists(lists: Array<ListNode>): ListNode? {
1019
return if (lists.isEmpty()) {

src.save/main/kotlin/g0001_0100/s0025_reverse_nodes_in_k_group/Solution.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ package g0001_0100.s0025_reverse_nodes_in_k_group
55

66
import com_github_leetcode.ListNode
77

8+
/*
9+
* Example:
10+
* var li = ListNode(5)
11+
* var v = li.`val`
12+
* Definition for singly-linked list.
13+
* class ListNode(var `val`: Int) {
14+
* var next: ListNode? = null
15+
* }
16+
*/
817
class Solution {
918
fun reverseKGroup(head: ListNode?, k: Int): ListNode? {
1019
if (head?.next == null || k == 1) {

src.save/main/kotlin/g0001_0100/s0047_permutations_ii/Solution.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package g0001_0100.s0047_permutations_ii
55

66
class Solution {
77
private var ans: MutableList<List<Int>>? = null
8+
89
fun permuteUnique(nums: IntArray): List<List<Int>> {
910
ans = ArrayList()
1011
permute(nums, 0)

0 commit comments

Comments
 (0)