flower when they get to desired height. take into account that your plant will double or triple in size during the flowering. so if you only have 5ft of space i would flower at 1-1.5 feet.
they will show their sex once you put them onto a 12/12 light cycle. can take anywhere from a few days to a few weeks for them to show their sex.