The Sacramento Kings have signed forward Troy Williams to a two-way contract, according to a press release from the team.

The 6-foot-7, 218-pound Williams was waived by the New Orleans Pelicans this week. The 23-year-old went undrafted in 2016 out of Indiana University and has played for Grizzlies, Rockets and Knicks.

Williams, 23, averaged 7.5 points, 3.5 rebounds and 1.1 steals in 17.1 minutes in 17 games (1 start) for the Knicks last season, shooting 49.0 percent from the field, 33.3 percent from long distance and 70.4 percent from the free-throw line.

He carries career averages of 6.2 points and 2.6 rebounds in 16.9 minutes in 51 games (17 starts), with a shooting line of 44.9/29.0/66.1.