aboutsummaryrefslogtreecommitdiff
path: root/Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~
diff options
context:
space:
mode:
authorSteve Lee <me@xiangyangli.com>2018-01-13 05:13:14 +0800
committerSteve Lee <me@xiangyangli.com>2018-01-13 05:13:14 +0800
commita46ec300092c1ee8ccac629b7f335643f87662f5 (patch)
treeb03e20d905e6f583df626386164daf4aa5f81519 /Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~
parent79a9c52fa923fc78074d88463449a8b7f95ca3ef (diff)
download42-a46ec300092c1ee8ccac629b7f335643f87662f5.tar.xz
42-a46ec300092c1ee8ccac629b7f335643f87662f5.zip
update
Diffstat (limited to 'Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~')
-rw-r--r--Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~11
1 files changed, 11 insertions, 0 deletions
diff --git a/Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~ b/Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~
new file mode 100644
index 0000000..d31867b
--- /dev/null
+++ b/Computer_Science/leetcode/17-letter_combinations_of_a_phone_number.c~
@@ -0,0 +1,11 @@
+/**
+ * Return an array of size *returnSize.
+ * Note: The returned array must be malloced, assume caller calls free().
+ */
+char** letterCombinations(char* digits, int* returnSize) {
+ while(*digits) {
+ if(*digits >= '2' && *digits <= '9') {
+ } else
+ return "";
+ }
+}