Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
9
Task/ABC-Problem/Julia/abc-problem.julia
Normal file
9
Task/ABC-Problem/Julia/abc-problem.julia
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function abc (str, list)
|
||||
isempty(str) && return true
|
||||
for i = 1:length(list)
|
||||
str[end] in list[i] &&
|
||||
any([abc(str[1:end-1], deleteat!(copy(list), i))]) &&
|
||||
return true
|
||||
end
|
||||
false
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue