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 Solution { | |
private val vals = arrayOf("", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz") | |
private var result: MutableList<String> = mutableListOf() | |
fun letterCombinations(digits: String): List<String> { | |
if (digits.isEmpty()) return result | |
dfs(digits, 0, "") | |
return result | |
} |
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
using UnityEngine; | |
using System.Collections; | |
public class CarControllerTouch : MonoBehaviour | |
{ | |
float speed = 10f; | |
Vector3 destination; | |
float rotSpeed = 10; |
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 SpacesItemDecoration (): RecyclerView.ItemDecoration() { | |
override fun getItemOffsets( | |
outRect: Rect, view: View, parent: RecyclerView, | |
state: RecyclerView.State |