Cognizant LeetCode Questions
29 questions all-time · 18 easy · 10 medium · 1 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Palindrome Number Math | Easy | 100 | 59.2% |
| 2 | Count Subarrays of Length Three With a Condition Array | Easy | 96 | 61.9% |
| 3 | Smallest Value of the Rearranged Number Math, Sorting | Medium | 96 | 52.7% |
| 4 | Two Sum Array, Hash Table | Easy | 83 | 55.8% |
| 5 | Fibonacci Number Math, Dynamic Programming, Recursion, Memoization | Easy | 79 | 72.9% |
| 6 | Longest Palindromic Substring Two Pointers, String, Dynamic Programming | Medium | 73 | 35.8% |
| 7 | Valid Anagram Hash Table, String, Sorting | Easy | 73 | 66.7% |
| 8 | Remove Duplicates from Sorted Array Array, Two Pointers | Easy | 67 | 60.4% |
| 9 | Maximum Subarray Array, Divide and Conquer, Dynamic Programming | Medium | 67 | 52.1% |
| 10 | Product Sales Analysis I Database | Easy | 67 | 84.6% |
| 11 | Reverse Integer Math | Medium | 67 | 30.3% |
| 12 | Second Highest Salary Database | Medium | 67 | 43.9% |
| 13 | Managers with at Least 5 Direct Reports Database | Medium | 67 | 48.9% |
| 14 | Valid Parentheses String, Stack | Easy | 67 | 42.3% |
| 15 | Longest Common Prefix String, Trie | Easy | 67 | 45.5% |
| 16 | Longest Substring Without Repeating Characters Hash Table, String, Sliding Window | Medium | 57 | 36.9% |
| 17 | Fizz Buzz Math, String, Simulation | Easy | 57 | 74.4% |
| 18 | Rising Temperature Database | Easy | 57 | 50.2% |
| 19 | Median of Two Sorted Arrays Array, Binary Search, Divide and Conquer | Hard | 57 | 43.8% |
| 20 | Add Two Numbers Linked List, Math, Recursion | Medium | 57 | 46.2% |
| 21 | Merge Sorted Array Array, Two Pointers, Sorting | Easy | 57 | 52.9% |
| 22 | Count Primes Array, Math, Enumeration, Number Theory | Medium | 57 | 34.8% |
| 23 | Students and Examinations Database | Easy | 57 | 60.5% |
| 24 | 3Sum Array, Two Pointers, Sorting | Medium | 57 | 37.1% |
| 25 | Move Zeroes Array, Two Pointers | Easy | 57 | 62.8% |
| 26 | Binary Search Array, Binary Search | Easy | 57 | 59.6% |
| 27 | Happy Number Hash Table, Math, Two Pointers | Easy | 57 | 58.1% |
| 28 | Merge Two Sorted Lists Linked List, Recursion | Easy | 57 | 66.8% |
| 29 | Search Insert Position Array, Binary Search | Easy | 57 | 49.0% |
How to read this list
The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.
Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.