Web Development Bootcamp
EvilNaah we want to take input from userUnlimited input lene k liye forloop toh lagaoge na usme bhi size define kroge
ReplyUnlimited input lene k liye forloop toh lagaoge na usme bhi size define kroge
If you want loop with the dynamic size of array you can use array.length () arr.size() na ?
Web Development Bootcamp
TLD / MOD | red team / MOD | red teamIf you want loop with the dynamic size of array you can use array.length () arr.size() na ?Bhai array ko bharne k liye hum use krte hai for loop
Loop jitni baar chalega utni baar input le sakte ho or utni hi values array me ayengi....
ReplyUnlimited input lene k liye forloop toh lagaoge na usme bhi size define kroge
But without array banaye input kese lenge
Web Development Bootcamp
EvilActually question is like we have to remove duplicate elements
Before A[1,2,2,3,4,5,5]
After A[1,2,3,4,5]Use map and create new array.
EvilActually question is like we have to remove duplicate elements
Before A[1,2,2,3,4,5,5]
After A[1,2,3,4,5]
Lekin ye abhi sorted hai toh ye ese hi ho jayega Bina map k...