Little problem(s) July 2022
|
07-05-2022, 03:31 AM
(This post was last modified: 07-05-2022 03:54 AM by Thomas Klemm.)
Post: #5
|
|||
|
|||
RE: Little problem(s) July 2022
Here's my solution of #2 for the HP-48:
Code: \<< OVER - \-> ns ms Example { 2 7 11 15 } 17 (4,1) (1,4) Add a final DROP if you are only interested in one solution. Addendum: Under the hood the implementation of POS is probably \(\mathcal{O}(n)\). This makes my solution \(\mathcal{O}(n^2)\) and thus rather a solution for #1. But we don't have to tell that the interviewer, do we? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)