10. Sliding Window
🚀 Top 10 DSA Questions in C#
With Output
1. Reverse String
Input: "hello" Output: "olleh"
Output: olleh
2. Palindrome
Input: "madam"
Output: Palindrome
3. Max in Array
Input: [1,5,3,9,2]
Output: 9
4. Fibonacci
n = 5
Output: 0 1 1 2 3
5. Two Sum
nums = [2,7,11,15], target = 9
Output: index 0,1
6. Remove Duplicates
Input: [1,2,2,3]
Output: 1 2 3
7. Missing Number
Input: [1,2,4,5]
Output: 3
8. Binary Search
Target = 4
Output: Found
9. Valid Parentheses
Input: "()[]{}"
Output: Valid
10. Sliding Window
Input: [2,1,5,1,3,2], k=3
Output: 9
Comments
Post a Comment