Given input string which represents path (foo/bar/$id), how would you write a function which returns $id?
Anonymous
Split by "/" and return last element or find index of last "/" and then substring everything afterwards. It was a slight challenge to explain how I'd write an actual method over the phone.
Check out your Company Bowl for anonymous work chats.