The Germans would of had detailed blueprints of the ship. Still would of went down.
That Commander would of been salivating reading of accounts of the unsinkable Titanic and all their amenities leaving on it's maiden voyage.
As far as "range" goes uboat could easily of been towed into position, and scuttled for a fast getaway. They probably would of used one of their older boats. Do believe a Uboat was discovered not to far from the sinking of Titanic a few years ago, But identified as a WWII uboat?
Course was already preset and published before they set sail, one through the bow, and one midship. Direct hits.
A U-Boat captain tried to sink the Olympic. It didn't go well. Olympic was more famous than Titanic would be if she hadn't sank too. The only reason people remember her as unsinkable is cause she sank, most people would generally apply that statement to all the big ships of the day and they weren't really wrong to do so. The whole class was hyped as unsinkable, nothing particularly special about Titanic in that regard. The unsinkable line was actually coined in relation to the Adriatic I believe or it might have been a similar quote? Britannic only was given more protections because Titanic sank and the reason Britannic sank is literally cause they left the portholes open for ventilation, so that didn't really prove the ships weak either. But the unsinkable quote was based on peacetime, clearly they aren't battleships. The notion that the Olympic class was virtually unsinkable is mocked as arrogant but on paper the Titanic sinking was an incredible fluke that required the accident to play out exactly the way it did and no efforts to save the ship whatsoever just a shocked acceptance by an inexperienced joy ride captain.
No one plans for what happens if you almost get out of the way of an object, usually it's assumed you're either going to crash or you;re going to get away, the grey area in between is what doomed Titanic. That's just such a bizzare way for a ship to get damaged though. Before or since when has a ship been damaged by a powerful force scratching it along the side? What happened to the Titanic was virtually impossible especially when factoring in the unusually calm night, the missing binoculars and Murdoch's decision to waste valuable seconds reversing the engines rather than just swinging the wheel. That's honestly an obvious mistake that NEVER gets mentioned for some reason. Titanic was also one of the first victims of man made climate change given that the greenhouse effect from the industrialization of the 19th century was likely the cause for the ice being in an area where it shouldn't have been. Captain Smith's course change in any previous year is being overly cautious.
Here's the Arizona's wikipeda page. The page includes a picture of her after hitting an iceberg head on. She was less than 10,000 tons and was barely over half the length of the Titanic. If Arizona could tank an iceberg Titanic could, ships were designed more than anything else to protect against collision. Olympic almost sank an armoured ship designed to sink whatever it hit, destroyed a U Boat and split the Nantucket Lightship in two. She might have sank more ships than any vessel without guns in the modern era. If not for her connection to Titanic she might be most famous as the most durable civilian vessel of all time.