If you live near Santa Monica I would say to enroll in their two year degree program. They have the highest transfer rate to the 4 year schools state wide. The Transfer Alliance Program at UCLA is designed especially for those students that qualify for the honors program at the community college level, making the transfer process easier for them all round. The article below explains the TAP in more detail. https://www.admission.ucla.edu/prospect/adm_tr/ADM_CCO/tap.htm
And for information on a transfer from community college to Berkeley, see the additional article below: http://students.berkeley.edu/files/admissions/12626_5.info_transadm.pdf
The community college experience is a good one both for financial reasons as well as for helping students improve their academic foundation. In California, it would be wise for you to check the specifics of both UCLA and Berkeley to see what their major feeder schools (community colleges) have been. If you are going to attend a two year school, you want to be enrolled in one that gives you the best chance of transferring to either school. You will need to do some research but it will pay off by giving you the information that you need. Please keep in mind that both schools, admit many, many transfer students so that attending one, will not hurt your chances of acceptance. Just as it is with high school seniors, available space and your credentials will dictate how the admissions rep. will see you and in the end, decide if you are a good fit or not. Good Luck!