Category: data types
Two strings are both lowercase letters. Write a function to determine if one string can be constructed using the letters from the other string. For example: canConstruct("aa", "ab") = …
In Delphi (Object Pascal), you can use the record keyword to define a C-like structure. For example, type data = record key: string; value: integer; end; It is interesting …
Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list’s nodes. Only nodes itself may be changed. …
Delphi is based on Object Pascal, which is a great programming language. Delphi is also a RAD (Rapid Application Development) tool for Windows, Android, iOS. It can be compiled …
Given a string that consists of words (non-space characters count as part of a word), you are required to output the new sentence that reverses the words. For example, …