Gfg courses -:
https://mega.nz/folder/ud5xgKaA#qgonl3ihVBgiWK-z9aSZRg
For gfg DSA -:
[Part 1 -> 3.Data Structures (Advanced)]
Or follow this link (works on pc)
https://mega.nz/folder/ud5xgKaA#qgonl3ihVBgiWK-z9aSZRg/folder/SNJwnCCI
https://mega.nz/folder/ud5xgKaA#qgonl3ihVBgiWK-z9aSZRg
For gfg DSA -:
[Part 1 -> 3.Data Structures (Advanced)]
Or follow this link (works on pc)
https://mega.nz/folder/ud5xgKaA#qgonl3ihVBgiWK-z9aSZRg/folder/SNJwnCCI
mega.nz
File folder on MEGA
import java.util.PriorityQueue;
public class Main
{
public static void main(String[] args) {
PriorityQueue<Integer> p=new PriorityQueue<Integer>();
p.add(1);
p.add(2);
p.add(3);
System.out.println(p.poll());
System.out.println(p.offer(4));
p.add(1);
p.remove(2);
System.out.println(p.peek());
System.out.println(p);
}
}
public class Main
{
public static void main(String[] args) {
PriorityQueue<Integer> p=new PriorityQueue<Integer>();
p.add(1);
p.add(2);
p.add(3);
System.out.println(p.poll());
System.out.println(p.offer(4));
p.add(1);
p.remove(2);
System.out.println(p.peek());
System.out.println(p);
}
}
Which allows the removal of elements from a collection?
Anonymous Quiz
27%
Enumeration
37%
Iterator
28%
Both
8%
None
The Comparator interface contains the method?
Anonymous Quiz
15%
compareWith()
61%
compareTo()
24%
compare()
Which is more offers best performance?
Anonymous Quiz
12%
TreeMap
27%
HashMap
30%
LinkedHashMap
30%
All are equal
Which of these class should be preferred to be used as a key in a HashMap?
Anonymous Quiz
21%
String
41%
Integer
8%
Double
29%
Any of these
How to Learn Something New Every Day as a Software Developer
https://www.freecodecamp.org/news/learn-something-new-every-day-as-a-software-developer/
https://www.freecodecamp.org/news/learn-something-new-every-day-as-a-software-developer/
freeCodeCamp.org
How to Learn Something New Every Day as a Software Developer
As software developers, we must be willing to learn continuously. While it helps us accomplish our day-to-day tasks at work, it is equally important to stay up to date with new technologies and innovations. After spending 12+ years in software devel...
What should we use when add and remove operations are more frequent than get operations?
Anonymous Quiz
37%
LinkedList
27%
ArrayList
10%
Vector
27%
All
Iterator returned by HashMap on key, value and entry is?
Anonymous Quiz
48%
Fail-fast
43%
Fail-safe
9%
none
Iterator returned by Hashtable on key, value and entry is?
Anonymous Quiz
63%
Fail-fast
29%
Fail-safe
8%
None
Iterator returned by ConcurrentHashMap on key, value and entry is?
Anonymous Quiz
39%
Fail-fast
57%
Fail-safe
4%
None
Iterator returned by LinkedHashMap on key, value and entry is?
Anonymous Quiz
46%
Fail-fast
40%
Fail-safe
14%
None
Iterator returned by TreeMap on key, value and entry is?
Anonymous Quiz
54%
Fail-fast
38%
Fail-safe
8%
None
Iterator returned by ConcurrentSkipListMap on key, value and entry is?
Anonymous Quiz
44%
Fail-fast
46%
Fail-safe
10%
None