- What is a String?
A sequence of characters stored in contiguous memory. - Are strings mutable?
Depends on language (immutable in Java, Python). - How to reverse a string?
Use two-pointer approach or built-in functions. - Check palindrome string?
Compare characters from both ends. - What is substring?
Continuous part of a string. - What is subsequence?
Characters in order but not necessarily continuous. - Find length of string?
Using length function or loop. - Count vowels?
Traverse and check vowels. - Remove spaces?
Replace or filter characters. - Convert case?
Use built-in functions. - Check anagram?
Sort strings or use frequency array. - Find duplicate characters?
Use hashmap. - First non-repeating character?
Frequency count. - Remove duplicates?
Set or visited array. - String concatenation?
Join two strings. - Find frequency of characters?
Use hashmap. - Longest substring without repeating?
Sliding window. - Check rotation of string?
s1+s1 contains s2. - Find all substrings?
Nested loops. - Find longest palindrome substring?
Expand around center. - Implement strstr?
Pattern matching. - KMP algorithm?
Efficient pattern matching. - Rabin-Karp?
Hash-based pattern matching. - Z-algorithm?
Pattern matching technique. - Split string?
Use delimiter. - Trim string?
Remove leading/trailing spaces. - Replace character?
Use replace method. - Check substring?
Use contains method. - Reverse words in string?
Split and reverse. - Count words?
Split by space. - Check valid parentheses?
Use stack. - Minimum insertions palindrome?
DP approach. - Longest common prefix?
Compare strings. - String compression?
Count repeating chars. - Roman to integer?
Mapping values. - Integer to Roman?
Greedy approach. - Decode string?
Stack-based. - Check isomorphic strings?
Mapping characters. - Group anagrams?
Sort keys. - Word break problem?
DP. - Minimum window substring?
Sliding window. - Longest repeating character replacement?
Window technique. - Check balanced string?
Stack. - Remove adjacent duplicates?
Stack. - Find all permutations?
Backtracking. - Check subsequence?
Two-pointer. - Count palindromic substrings?
Expand center. - Edit distance?
Dynamic programming. - Longest common subsequence?
DP. - Shortest common supersequence?
DP.
🔹 PART 2: LINKED LIST (Q51–Q100)
- What is Linked List?
A linear data structure of nodes connected by pointers. - Types?
Singly, Doubly, Circular. - Advantages?
Dynamic size. - Disadvantages?
No random access. - What is node?
Contains data and pointer. - Insert at beginning?
Update head pointer. - Insert at end?
Traverse and add node. - Delete node?
Adjust pointers. - Search element?
Traverse list. - Reverse linked list?
Iterative or recursive. - Find middle?
Slow and fast pointer. - Detect cycle?
Floyd’s algorithm. - Remove cycle?
Find meeting point. - Merge two lists?
Compare nodes. - Sort linked list?
Merge sort. - Remove duplicates?
Use set or pointer. - Find nth node?
Traverse. - Find nth from end?
Two pointers. - Check palindrome?
Reverse second half. - Intersection point?
Two pointers. - Rotate list?
Adjust pointers. - Flatten list?
Merge lists. - Add two numbers?
Digit by digit sum. - Clone list?
Hashmap. - Segregate even odd?
Two lists. - Reverse in k-group?
Group reversal. - Remove nth node?
Two pointers. - Swap nodes?
Change pointers. - Partition list?
Based on pivot. - Merge k lists?
Heap. - Sort 0s,1s,2s?
Counting. - Delete middle?
Slow-fast pointer. - Odd-even list?
Rearrange nodes. - Split list?
Divide into halves. - Convert to BST?
Inorder method. - Detect loop start?
Floyd algorithm. - Remove duplicates sorted?
Skip duplicates. - Remove duplicates unsorted?
Hashset. - Reorder list?
Merge halves. - Find length?
Traverse. - Check circular?
Loop detection. - Split circular list?
Two pointers. - Insert in sorted list?
Find position. - Delete last node?
Traverse to second last. - Copy random pointer list?
Hashmap or O(1) method. - Reverse doubly list?
Swap next-prev. - Flatten multilevel list?
DFS approach. - Remove zero sum sublist?
Prefix sum. - Find pair sum?
Two-pointer (DLL). - LRU cache?
DLL + hashmap.
📢 Join Our WhatsApp Channel
💼 Get Daily IT Job Updates, Interview Preparation Tips & Instant Alerts directly on WhatsApp.
👉 Join WhatsApp Now📢 Join Our Telegram Channel
💼 Get Daily IT Job Updates, Interview Tips & Exclusive Alerts directly on Telegram!
👉 Join Telegram