forked from MLSC-BSOITR/DSA_questions-solutions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDSA.json
682 lines (530 loc) · 20 KB
/
DSA.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
<-- DO NOT EDIT THIS SECTION -->
[
{"id"
"id" : "1",
"topic" : "DSA_array",
"question" : "Find pair with given sum in the array",
"answerLink" : "https://www.techiedelight.com/find-pair-with-given-sum-array/"
},
// You can contribute below as mentioned above
{
"id" : "2",
"topic" : "Data Structures",
"question" : " What are Data Structures?",
"answerLink" : "https://www.geeksforgeeks.org/data-structures/"
},
{
"id" : "3",
"topic" : "Data Structures",
"question" : "What are some applications of Data structures?",
"answerLink" : "https://www.interviewbit.com/data-structure-interview-questions/#applications-of-data-structures"
},
{
"id" : "4",
"topic" : "Data Structures",
"question" : "What is shell sort?",
"answerLink" : "https://www.tutorialspoint.com/data_structures_algorithms/data_structures_algorithms_interview_questions.htm"
},
{
"id" : "5",
"topic" : "DSA_array",
"question" : "Find the smallest window in an array sorting which will make the entire array sorted?",
"answerLink" : "https://www.techiedelight.com/smallest-window-sorting-which-make-array-sorted/"
},
{
"id" : "6",
"topic" : "Data Structures",
"question" : "What is the prefix and post fix notation of (a + b) * (c + d) ?",
"answerLink" : "https://www.tutorialspoint.com/data_structures_algorithms/data_structures_algorithms_interview_questions.htm"
},
{
"id" : "102",
"topic" : "DSA_LinkedList",
"question" : "Delete N nodes after M nodes of a linked list",
"answer" : "https://www.geeksforgeeks.org/delete-n-nodes-after-m-nodes-of-a-linked-list/"
},
{
"id" : "5",
"topic" : "DSA_array",
"question" : "Maximum Product Subarray Problem",
"answerLink" : "https://www.techiedelight.com/find-maximum-product-subarray-given-array"
"question" : "Maximum Product Subarray Problem",
"answerLink" : "https://www.techiedelight.com/find-maximum-product-subarray-given-array"
},
{
"id" : "6",
"topic" : "DSA_array",
"question" : "Move all negative elements to end in order with extra space allowed",
"answerLink" : "https://www.geeksforgeeks.org/move-ve-elements-end-order-extra-space-allowed/"
},
{
"id" : "150",
"topic" : "DSA_Linkedlist",
"question" : "Reverse alternate K nodes in a Singly Linked List",
"answer" : "https://www.geeksforgeeks.org/reverse-alternate-k-nodes-in-a-singly-linked-list/"
},
{
"id" : "9",
"topic" : "DSA_Linkedlist",
"question" : "Merge A Linked List Into Another Linked List At Alternate Positions",
"answerLink" : "https://www.geeksforgeeks.org/merge-a-linked-list-into-another-linked-list-at-alternate-positions/"
},
{
"id" : "19",
"topic" : "DSA_Array",
"question" : "An element is called a peak element if its value is not smaller than the value of its adjacent elements(exists). Given an array arr[] of size N, Return the index of any one of its peak elements",
"answerLink" : "https://practice.geeksforgeeks.org/problems/peak-element/1"
},
{
"id" : "10",
"topic" : "DSA Dynamic Programming",
"question" : "Longest Common Subsequence",
"answerLink" : "https://www.geeksforgeeks.org/longest-common-subsequence-dp-4/"
},
{
"id" : "11",
"topic" : "Data Structure",
"question" : "How are the elements of a 2D array stored in the memory?",
"answerLink" : "https://www.simplilearn.com/data-structure-interview-questions-and-answers-article"
},
{
"id" : "110",
"topic" : "DSA",
"question" : "Can Make Arithmetic Progression From Sequence.",
"answerLink" : "https://twitter.com/Ranrovel8368/status/1574858074870857728"
},
{
"id" : "12",
"topic": "DSA - Subarray",
"question" : "Find maximum Product Subarray",
"answer_link" : "https://www.techiedelight.com/?problem=MaximumProductSubarray"
},
{
"id" : "13",
"topic" : "DSA Dynamic Programming",
"question" : "Longest Common Subsequence",
"answerLink" : "https://www.geeksforgeeks.org/longest-common-subsequence-dp-4/"
},
{
"id" : "14",
"topic" : "c++",
"question" : "what is concept of c++ (Polymorphism, inheritance, etc.",
"answerLink" : "https://www.tutorialspoint.com/cplusplus/cpp_object_oriented.htm"
},
{
"id" : "100",
"topic" : "DSA",
"question" : "Lets review",
"answerLink" : "https://twitter.com/Ranrovel8368/status/1575824974740213760"
},
{
"id" : "15",
"topic" : "DSA Array",
"question" : "Sort array of 0s,1s and 2s in a single scan (Visiting each element once).",
"answerLink" : "https://www.geeksforgeeks.org/sort-an-array-of-0s-1s-and-2s/"
},
{
"id" : "16",
"topic" : "Data structure",
"question" : "what are 2 main types of data structure",
"answerLink" : "https://www.integralist.co.uk/posts/data-types-and-data-structures/"
},
{
"id" : "15",
"topic" : "DSA Linear Data Structur",
"question" : "What is linear data structure?",
"answerLink" : "https://www.tutorialspoint.com/data_structures_algorithms/data_structures_algorithms_interview_questions.htm"
}
{
"id" : "99",
"topic" : "DSA_advantages and disadvantages",
"question" : "what are the advantages and Disadvantages of DSA",
"answerLink" : "https://cdnpractice.geeksforgeeks.org/problems/what-are-advantage-and-disadvantage-of-data-structure-and-its-practical-use"
},
{
"id" : "98",
"topic" : "SQL",
"question" : "what is SQL",
"answerLink" : "https://www.w3schools.com/sql/"
},
{
"id" : "2406",
"topic" : "Data Structure-sorting techniques",
"question" : "What are the differnt sorting algorithms in DSA",
"answerLink" : "https://www.tutorialspoint.com/data_structures_algorithms/sorting_algorithms.htm"
},
{
"id" : "48",
"topic" : "DSA_Linkedlist",
"question" : "Merge A Linked List Into Another Linked List At Alternate Positions",
"answerLink" : "https://www.geeksforgeeks.org/merge-a-linked-list-into-another-linked-list-at-alternate-positions/"
},
{
"id" : "4245",
"topic" : "DSA interview",
"question" : "What are some examples of dynamic programming algorithms?",
"answerLink" : "The below given problems find their solution using divide and conquer algorithm approach -Fibonacci number series,Knapsack problem,Tower of Hanoi'All pair shortest path by Floyd-Warshall"
},
{
"id" : "39",
"topic" : "Cumulative Sum",
"question" : "The cumulative sum of an array at index i is defined as the sum of all elements of the array from index 0 to index i",
"answerLink" : "https://workat.tech/problem-solving/practice/cumulative-sum"
{
"id" : "49",
"topic" : "Merge k Sorted Lists",
"question" : "https://leetcode.com/problems/merge-k-sorted-lists/",
"answerLink" : "https://www.geeksforgeeks.org/merge-k-sorted-linked-lists/"
},
{
"id":"07",
"topic":"DSA - Array",
"question":"How linked list diffrent from array",
"answer_link":"hhttps://prepinsta.com/interview-preparation/technical-interview-questions/dsa-interview-questions-and-answers-for-freshers/"
}
},
{
"topic" : "Data Structure",
"question" : "How is Data Structure helpful",
"answerLink" : "http://www.mygreatlearning.com"
{
"id" : "123",
"topic" : "DSA",
"question" : "What is doubly linked list",
"answerLink" : "https://www.tutorialspoint.com/data_structures_algorithms/doubly_linked_list_algorithm.htm"
},
}
{
"id" : "1236",
"topic" : "sorting in DSA",
"question" : "what is sorting in data structures and algorithms",
"answerLink" : "https://www.geeksforgeeks.org/sorting-algorithms/"
},
{
"id" : "57",
"topic" : "Data Structure",
"question" : "What is Data Strucure?",
"answerLink" : "https://www.geeksforgeeks.org/data-structures/"
},
{
"id" : "118",
"topic" : "sorting in DSA",
"question" : "Merge sort ",
"answerLink" : "https://www.geeksforgeeks.org/merge-sort-for-linked-list/"
}
{
"id": "119",
"topic": "DSA",
"question": "why dsa is important",
"answerLink": "https://www.programiz.com/dsa/why-algorithms#:~:text=Data%20structures%20and%20algorithms%20(DSA,the%20best%20of%20various%20choices.",
},
{
"id" : "3241",
"topic" : "DSA_array",
"question" : "Find pair with given sum in the array",
"answerLink" : "https://www.techiedelight.com/find-pair-with-given-sum-array/"
},
{
"id" : "34",
"topic" : "linked list",
"question" : "https://practice.geeksforgeeks.org/problems/reverse-a-linked-list/1?page=1&category[]=Linked%20List&sortBy=submissions",
"answerLink" : "https://www.youtube.com/watch?v=iRtLEoL-r-g"
},
{
"id" : "652",
"topic" : "DSA linked list",
"question" : "what is singly linked list in data structure algorithm",
"answerLink" : "https://www.javatpoint.com/insertion-in-singly-linked-list-at-beginning"
},
{
"id" : "70",
"topic" : "DSA",
"question" : "Find all distinct combinations of a given length ",
"answerLink" : "https://www.techiedelight.com/find-distinct-combinations-of-given-length/"
},
{
"id" : "71",
"topic" : "DSA - Binary Tree",
"question" : "Find the Maximum Depth or Height of given Binary Tree",
"answerLink" : "https://www.geeksforgeeks.org/write-a-c-program-to-find-the-maximum-depth-or-height-of-a-tree/amp/"
},
{
"id" : "12003",
"topic" : "DSA",
"question" : "What is singly linked list",
"answerLink" : "https://www.educative.io/answers/what-is-a-singly-linked-list"
},
{
"id" : "72",
"topic" : "DSA - Binary search",
"question" : "coins and triangle",
"answerLink" : "https://www.codechef.com/submit/TRICOIN?tab=solution/"
},
{
"id" : "123",
"topic" : "DSA_Binary Tree",
"question" : "Find the Minimum Depth or Height of given Binary Tree",
"answerLink" : "https://leetcode.com/problems/minimum-depth-of-binary-tree/"
},
{
"id" : "508",
"topic" : "DSA_array",
"question" : "Minimum Product Subarray Problem",
"answerLink" : "https://www.geeksforgeeks.org/maximum-product-subarray/"
},
{
"id" : "7896",
"topic" : "DSA - Binary Tree",
"question" : "Find the Maximum Depth or Height of given Binary Tree",
"answerLink" : "https://www.geeksforgeeks.org/write-a-c-program-to-find-the-maximum-depth-or-height-of-a-tree/amp/"
},
{
"id" : "1250",
"topic" : "DSA_Linkedlist",
"question" : "Reverse alternate K nodes in a Linked List",
"answer" : "https://www.techiedelight.com/reverse-alternate-group-k-nodes-linked-list/"
},
{
"id" : "77",
"topic" : "DSA - Binary Tree",
"question" : "inorder traversal of binary tree",
"answerLink" : "https://www.geeksforgeeks.org/tree-traversals-inorder-preorder-and-postorder/amp/"
},
{
"id" : "1731",
"topic" : "DSA",
"question" : "What is linked list",
"answerLink" :"https://www.tutorialspoint.com/data_structures_algorithms/linked_lists_algorithm.htm"
},
{
"id" : "2540",
"topic" : "DSA-Queue",
"question" : "What is queue structure in DSA with their types",
"answer" : "tutorialspoint.com/data_structures_algorithms/Queue_structure.htm"
},
{
"id" : "2000",
"topic" : "DSA-Stack",
"question" : "Why stack is called LIFO",
"answer" : "https://www.quora.com/Why-is-the-stack-data-structure-known-as-LIFO"
},
{"id" : "2001",
"id" : "2001",
"topic" : "DSA- Graph",
"question" : "What is Graph",
"answer" : "https://www.geeksforgeeks.org/graph-data-structure-and-algorithms/"
},
{
"id" : "2002",
"topic" : "DSA_STRING",
"question" : "Find reverse of a string",
"answerLink" : "https://www.javatpoint.com/program-to-find-reverse-of-a-string/"
},
{ "id" : "2802",
"topic" : "DSA_SORTING",
"question" : "sorting using merge sort",
"answerLink" : "https://www.geeksforgeeks.org/merge-sort/"
},
{
"id ":" 2803",
" topic ":" DSA_Algorithm",
"question":"When is a binary search best applied?",
" answerlink ":" https://www.google.com/amp/s/career.guru99.com/top-50-data-structure-interview-questions/amp/"
},
{
"id" : "17",
"topic" : "Data structures",
"question" : "How different from the array is the Linked List?",
"answerLink" : "https://www.monsterindia.com/"
},
{
"id" : "2004",
"topic" : "DSA-Array",
"question" : "What is Prefix Sum Array",
"answerLink" :"https://www.geeksforgeeks.org/prefix-sum-array-implementation-applications-competitive-programming/"
},
{
"id" : "324",
"topic" : "DSA-Queue",
"question" : "Reversing a queue using recursion",
"answerLink" :"https://www.geeksforgeeks.org/reversing-queue-using-recursion/"
},
{
"id" : "2005",
"topic" : "Sorting Algorithms",
"question" : "Time Complexities of all Sorting Algorithms",
"answerLink" :"https://www.geeksforgeeks.org/time-complexities-of-all-sorting-algorithms/"
},
{
"id" : "2005",
"topic" : "DSA-Stack",
"question" : "Check for Balanced Brackets in an expression",
"answerLink" :"https://www.geeksforgeeks.org/check-for-balanced-parentheses-in-an-expression/"
},
{
"id" : "101",
"topic" : "DSA-Interview",
"question" : "Rain water trapping problem",
"answerLink" :"https://leetcode.com/submissions/detail/769324619/"
},
{
"id" : "150",
"topic" : "DSA-Strings",
"question" : "Check whether two Strings are anagram of each other",
"answerLink" :"https://www.geeksforgeeks.org/check-whether-two-strings-are-anagram-of-each-other/"
},
{
"id" : "911",
"topic" : "DSA-Trees",
"question" : "Construct a complete binary tree from its linked list representation",
"answerLink" :"https://www.codingninjas.com/codestudio/library/construct-a-complete-binary-tree-from-its-linked-list-representation"
},
{
"id":"200",
"topic":"DSA - Array",
"question":"Missing number in array",
"answer_link":"https://practice.geeksforgeeks.org/problems/missing-number-in-array/0"
},
{
"id":"1",
"topic":"DSA - Array",
"question":"Count the triplets",
"answer_link":"https://practice.geeksforgeeks.org/problems/count-the-triplets4615/1"
},
{
"id":"30",
"topic":"DSA - Array",
"question":"https://leetcode.com/problems/two-sum/",
"answer_link":"https://leetcode.com/problems/two-sum/"
},
{
"id":"329",
"topic":"DSA - Dynamic Programming ",
"question":"Rod Cutting Problem",
"answer_link":"https://www.techiedelight.com/rod-cutting/"
},
{
"id":"9999",
"topic":"DSA - Dynamic Programming ",
"question":"Number of dice rolls with target sum",
"answer_link":"https://leetcode.com/problems/number-of-dice-rolls-with-target-sum/discuss/2651427/Java-Memoization-(Top-down)-or-Tabulation-(Bottom-Down)-Accepted!"
},
{
"id": "4477",
"topic": "DSA - LinkedList",
"question": "Palindrome LinkedList",
"answer_link": "https://rajritik200177.medium.com/palindrome-linkedlist-f4ada0733032"
},
{
"id": "203",
"topic": "DSA - Strings",
"question": "Minimum characters to be added at front to make string palindrome",
"answer_link": "https://www.geeksforgeeks.org/minimum-characters-added-front-make-string-palindrome/"
{
"id": "201",
"topic": "DSA - Red Black Trees",
"question": "Complete Explanation and Implementation of RBT",
"answer_link": "https://www.happycoders.eu/algorithms/red-black-tree-java/"
{
"id":"4478",
"topic":"DSA - Stack using SLL",
"question":"Implement stack operations using singly linkedlist in C",
"answer_link":"https://dev.to/suman373_30/stack-using-sll-for-beginners-400g"
},
{
"id":"4479",
"topic":"DSA - Inserting a node",
"question":"Inserting a node",
"answer_link":"https://www.geeksforgeeks.org/linked-list-set-2-inserting-a-node/"
},
{
"id": "1578",
"topic": "DSA - Greedy",
"question": "Minimum Time to Make Rope Colorful",
"answer_link": "https://leetcode.com/problems/minimum-time-to-make-rope-colorful/solution/"
},
{
"id": "97",
"topic": "DSA - Strings",
"question": "Interleaving String",
"answer_link": "https://dev.to/seanpgallivan/solution-interleaving-string-1497"
},
{
"id":"919",
"topic":"DSA - Depth first search",
"question":"Recover Binary Search Tree",
"answer_link":"https://leetcode.com/problems/recover-binary-search-tree/discuss/1962281/C%2B%2B-oror-Easy-to-understand"
},
{
"id":"133",
"topic":"DSA - Graph",
"question":"Clone Graph",
"answer_link":"https://www.geeksforgeeks.org/clone-an-undirected-graph/"
},
{
"id":"385",
"topic":"DSA - Graph",
"question":"Mini Parser",
"answer_link":"https://hjweds.gitbooks.io/leetcode/content/mini-parser.html"
},
{
"id":"386",
"topic":"DSA - Array",
"question":"SubArray Sum",
"answer_link":"https://www.geeksforgeeks.org/sum-of-all-subarrays/"
},
{
"id":"387",
"topic":"DSA - Sorting Array",
"question":"Merge Sort",
"answer_link":"https://simplesnippets.tech/merge-sort-algorithm-with-example-with-c-code-sorting-algorithms-data-structures/"
},
{
"id":"388",
"topic":"DSA - Iterative DFS",
"question":"Iterative Depth First Traversal of Graph",
"answer_link":"https://www.geeksforgeeks.org/iterative-depth-first-traversal/"
}
{
"id":"389",
"topic":"DSA - Array",
"question":"3Sum",
"answer_link":"https://www.techiedelight.com/?id=87v3"
},
{
"id" : "390"
"topic" : "DSA - Tree"
"question" : "Add One Row to Tree"
"answer_link" : "https://leetcode.com/problems/add-one-row-to-tree/submissions/815879905/"
},
{
"id":"391",
"topic":"DSA- Two Pointer",
"question":"3Sum Closest",
"answer_link":"https://leetcode.com/Luv_4929//"
},
{
"id":"392",
"topic":"DSA- Array",
"question":"Reverse the array",
"answer_link":"https://www.geeksforgeeks.org/write-a-program-to-reverse-an-array-or-string/"
} ,
{
"id":"393",
"topic":"DSA - Graph",
"question":"Is Graph Bipartite",
"answer_link":"https://leetcode.com/submissions/detail/772398686/"
},
{
"id" : "394"
"topic" : "DSA - Sliding Window"
"question" : "Longest Substring Without Repeating Characters"
"answer_link" : "https://leetcode.com/problems/longest-substring-without-repeating-characters/submissions/805368555/"
},
{
"id" : "392"
"topic" : "DSA - Array"
"question" : "Subset sum equal to k"
"answer_link" : " https://www.geeksforgeeks.org/subset-sum-problem-dp-25/ "
}
]