grindmapcompany-wise LeetCode
All companies

Cognizant LeetCode Questions

29 questions all-time · 18 easy · 10 medium · 1 hard
# Problem Difficulty Frequency Acceptance
1Palindrome Number
Math
Easy
100
59.2%
2Count Subarrays of Length Three With a Condition
Array
Easy
96
61.9%
3Smallest Value of the Rearranged Number
Math, Sorting
Medium
96
52.7%
4Two Sum
Array, Hash Table
Easy
83
55.8%
5Fibonacci Number
Math, Dynamic Programming, Recursion, Memoization
Easy
79
72.9%
6Longest Palindromic Substring
Two Pointers, String, Dynamic Programming
Medium
73
35.8%
7Valid Anagram
Hash Table, String, Sorting
Easy
73
66.7%
8Remove Duplicates from Sorted Array
Array, Two Pointers
Easy
67
60.4%
9Maximum Subarray
Array, Divide and Conquer, Dynamic Programming
Medium
67
52.1%
10Product Sales Analysis I
Database
Easy
67
84.6%
11Reverse Integer
Math
Medium
67
30.3%
12Second Highest Salary
Database
Medium
67
43.9%
13Managers with at Least 5 Direct Reports
Database
Medium
67
48.9%
14Valid Parentheses
String, Stack
Easy
67
42.3%
15Longest Common Prefix
String, Trie
Easy
67
45.5%
16Longest Substring Without Repeating Characters
Hash Table, String, Sliding Window
Medium
57
36.9%
17Fizz Buzz
Math, String, Simulation
Easy
57
74.4%
18Rising Temperature
Database
Easy
57
50.2%
19Median of Two Sorted Arrays
Array, Binary Search, Divide and Conquer
Hard
57
43.8%
20Add Two Numbers
Linked List, Math, Recursion
Medium
57
46.2%
21Merge Sorted Array
Array, Two Pointers, Sorting
Easy
57
52.9%
22Count Primes
Array, Math, Enumeration, Number Theory
Medium
57
34.8%
23Students and Examinations
Database
Easy
57
60.5%
243Sum
Array, Two Pointers, Sorting
Medium
57
37.1%
25Move Zeroes
Array, Two Pointers
Easy
57
62.8%
26Binary Search
Array, Binary Search
Easy
57
59.6%
27Happy Number
Hash Table, Math, Two Pointers
Easy
57
58.1%
28Merge Two Sorted Lists
Linked List, Recursion
Easy
57
66.8%
29Search 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.