South Korean stocks reversed course to end higher on Friday as heavyweight chipmakers rebounded, underscoring investors’ continued conviction in the AI trade.