lopogax
BAN USER- 0of 0 votes
AnswersCreate a SQL-like language parser that manipulates directories and files (The compiler/parser may be created in any other language).
To summarize, I want you to create a "file and directory manipulation language" with the following rules/syntax (you may create another commands):
CREATE DIR <path>
CREATE FILE <name> IN <path> [WITH <data>]
'WITH' insert the <data> in the file on the fly, but it's optional
GET DATA FROM <path/to/file>
Examples on how this language may be used:import FDML ex = "Hey guys" data = FDML.get('GET DATA FROM "./path/to/file"'); FDML.statement("""CREATE DIR "./imgs"; CREATE FILE "test.txt" IN "./path/to/dir""") FDML.statement('CREATE FILE "welcome.txt" IN "./path/to/dir" WITH "{}"'.format(ex)) print(data)
Or those commands can be run in a shell:
- lopogax in United States
> fdml "CREATE DIR './dir'"
> /dir was created!| Report Duplicate | Flag | PURGE
unknown Software Engineer parsing - 0of 0 votes
AnswersGiven a string S(a data structure) that contains only square brackets, convert it to an array that stores arrays in the following format: [positionOpeningBracket, positionClosingBracket, nestedDataStructure]. Example: https://i.imgur.com/vZhlZdr.png
- lopogax in United Statesdef parser(S): #whatever... print(r) parser("[[]][]") #output: [[0,3,[1,2,null]], [4, 5, null]]
| Report Duplicate | Flag | PURGE
unknown Software Engineer Problem Solving
RepEvieBBlack, AT&T Customer service email at ASAPInfosystemsPvtLtd
I am Evie from Santa Fe Springs USA, I am working as a manager in a worldwide company. I also ...
O(N*n*k)
- lopogax October 17, 2017