Is it harder to make the top UCs (UCLA and UCB) as an international student?

@DadTwoGirls Is it more difficult for an international student to get in than an OOS student? Additionally, would it have been a better idea for me to apply undeclared or to Letters and Science and transfer to a CS major when I’m there?