This file contains 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
class MainActivity : AppCompatActivity() { | |
// #1 | |
private fun callback1() {} | |
inner class DialogFragment1 : DialogFragment() { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
callback1() | |
} |
This file contains 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
// https://leetcode.com/problems/letter-combinations-of-a-phone-number/ | |
class Solution { | |
fun letterCombinations(digits: String): List<String> { | |
val chars = mutableListOf<List<Char>>() | |
for (c in digits) { | |
chars.add(readChars(c.toString().toInt())) | |
} | |
return multiply(chars) |
This file contains 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
indent_class = true | |
mod_full_brace_do = add # string (add/force/ignore/remove) | |
mod_full_brace_if = add # string (add/force/ignore/remove) | |
mod_full_brace_for = add # string (add/force/ignore/remove) | |
mod_full_brace_while = add # string (add/force/ignore/remove) | |
indent_columns = 4 # number | |
indent_switch_case = 4 # number |