Started with blinking LEDs, ended inside a database query engine. Embedded C++, IoT firmware, and Native Iceberg OTF in Teradata Vantage. Currently automating myself using RAG + AI agents.
ans vector contains each number only up to occ times. So, occ can never be negative. If user passed a negative number as occ, then ans vector will be empty.
If given numbers are negative, still there should not be any problem. Example,
What if given numbers are not positive ?
ansvector contains each number only up toocctimes. So,occcan never be negative. If user passed a negative number asocc, thenansvector will be empty.If given numbers are negative, still there should not be any problem. Example,