If for a program I am creating a frequency array of the alphabets. int a[26]. What will be the space complexity? Will it be O(26)=O(1) ?
Space complexity doubt
Yes @nidhigupta847
It will be considered as O(1)
Any constant amount of men=mory which is much lower than input n is considered O(1)
I hope this resolves your query ,if it does then please mark it as resolved 