# Accenture Coding Interview Questions

> 144 DSA problems asked in Accenture coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/accenture
Last updated: 2026-11-28

144 DSA problems tagged as asked in Accenture coding interviews and online assessments. Below are the first 100 of 144: 65 easy, 24 medium and 11 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Accenture DSA problems, easiest first

1. [Add Two Integers](https://www.internhack.in/learn/dsa/problem/add-two-integers) (Easy)
2. [Ant on the Boundary](https://www.internhack.in/learn/dsa/problem/ant-on-the-boundary) (Easy)
3. [Assign Cookies](https://www.internhack.in/learn/dsa/problem/assign-cookies) (Easy)
4. [Average Time of Process per Machine](https://www.internhack.in/learn/dsa/problem/average-time-of-process-per-machine) (Easy)
5. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
6. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
7. [Contains Duplicate](https://www.internhack.in/learn/dsa/problem/contains-duplicate) (Easy)
8. [Contains Duplicate II](https://www.internhack.in/learn/dsa/problem/contains-duplicate-ii) (Easy)
9. [Convert Sorted Array to Binary Search Tree](https://www.internhack.in/learn/dsa/problem/convert-sorted-array-to-binary-search-tree) (Easy)
10. [Count Partitions with Even Sum Difference](https://www.internhack.in/learn/dsa/problem/count-partitions-with-even-sum-difference) (Easy)
11. [Count Tested Devices After Test Operations](https://www.internhack.in/learn/dsa/problem/count-tested-devices-after-test-operations) (Easy)
12. [Employees Earning More Than Their Managers](https://www.internhack.in/learn/dsa/problem/employees-earning-more-than-their-managers) (Easy)
13. [Fibonacci Number](https://www.internhack.in/learn/dsa/problem/fibonacci-number) (Easy)
14. [Find Pivot Index](https://www.internhack.in/learn/dsa/problem/find-pivot-index) (Easy)
15. [Find Subsequence of Length K With the Largest Sum](https://www.internhack.in/learn/dsa/problem/find-subsequence-of-length-k-with-the-largest-sum) (Easy)
16. [Find the Difference](https://www.internhack.in/learn/dsa/problem/find-the-difference) (Easy)
17. [Find the Difference of Two Arrays](https://www.internhack.in/learn/dsa/problem/find-the-difference-of-two-arrays) (Easy)
18. [Find the Highest Altitude](https://www.internhack.in/learn/dsa/problem/find-the-highest-altitude) (Easy)
19. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
20. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
21. [Intersection of Two Arrays](https://www.internhack.in/learn/dsa/problem/intersection-of-two-arrays) (Easy)
22. [Intersection of Two Linked Lists](https://www.internhack.in/learn/dsa/problem/intersection-of-two-linked-lists) (Easy)
23. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
24. [Largest Odd Number in String](https://www.internhack.in/learn/dsa/problem/largest-odd-number-in-string) (Easy)
25. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
26. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
27. [Longest Palindrome](https://www.internhack.in/learn/dsa/problem/longest-palindrome) (Easy)
28. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
29. [Max Consecutive Ones](https://www.internhack.in/learn/dsa/problem/max-consecutive-ones) (Easy)
30. [Maximum Area of Longest Diagonal Rectangle](https://www.internhack.in/learn/dsa/problem/maximum-area-of-longest-diagonal-rectangle) (Easy)
31. [Maximum Depth of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-depth-of-binary-tree) (Easy)
32. [Maximum Number of Balls in a Box](https://www.internhack.in/learn/dsa/problem/maximum-number-of-balls-in-a-box) (Easy)
33. [Maximum Product of Three Numbers](https://www.internhack.in/learn/dsa/problem/maximum-product-of-three-numbers) (Easy)
34. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
35. [Middle of the Linked List](https://www.internhack.in/learn/dsa/problem/middle-of-the-linked-list) (Easy)
36. [Minimum Right Shifts to Sort the Array](https://www.internhack.in/learn/dsa/problem/minimum-right-shifts-to-sort-the-array) (Easy)
37. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
38. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
39. [Number of Good Pairs](https://www.internhack.in/learn/dsa/problem/number-of-good-pairs) (Easy)
40. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
41. [Pascal's Triangle](https://www.internhack.in/learn/dsa/problem/pascals-triangle) (Easy)
42. [Perfect Number](https://www.internhack.in/learn/dsa/problem/perfect-number) (Easy)
43. [Permutation Difference between Two Strings](https://www.internhack.in/learn/dsa/problem/permutation-difference-between-two-strings) (Easy)
44. [Plus One](https://www.internhack.in/learn/dsa/problem/plus-one) (Easy)
45. [Remove Duplicates from Sorted Array](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-array) (Easy)
46. [Reverse Bits](https://www.internhack.in/learn/dsa/problem/reverse-bits) (Easy)
47. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
48. [Reverse String](https://www.internhack.in/learn/dsa/problem/reverse-string) (Easy)
49. [Reverse String II](https://www.internhack.in/learn/dsa/problem/reverse-string-ii) (Easy)
50. [Reverse Vowels of a String](https://www.internhack.in/learn/dsa/problem/reverse-vowels-of-a-string) (Easy)
51. [Rising Temperature](https://www.internhack.in/learn/dsa/problem/rising-temperature) (Easy)
52. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
53. [Rotate String](https://www.internhack.in/learn/dsa/problem/rotate-string) (Easy)
54. [Search Insert Position](https://www.internhack.in/learn/dsa/problem/search-insert-position) (Easy)
55. [Single Number](https://www.internhack.in/learn/dsa/problem/single-number) (Easy)
56. [Smallest Divisible Digit Product I](https://www.internhack.in/learn/dsa/problem/smallest-divisible-digit-product-i) (Easy)
57. [Sort Array by Increasing Frequency](https://www.internhack.in/learn/dsa/problem/sort-array-by-increasing-frequency) (Easy)
58. [Squares of a Sorted Array](https://www.internhack.in/learn/dsa/problem/squares-of-a-sorted-array) (Easy)
59. [Students and Examinations](https://www.internhack.in/learn/dsa/problem/students-and-examinations) (Easy)
60. [Sum of Values at Indices With K Set Bits](https://www.internhack.in/learn/dsa/problem/sum-of-values-at-indices-with-k-set-bits) (Easy)
61. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
62. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
63. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
64. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
65. [Water Bottles](https://www.internhack.in/learn/dsa/problem/water-bottles) (Easy)
66. [3Sum](https://www.internhack.in/learn/dsa/problem/3sum) (Medium)
67. [4Sum](https://www.internhack.in/learn/dsa/problem/4sum) (Medium)
68. [Add Two Numbers](https://www.internhack.in/learn/dsa/problem/add-two-numbers) (Medium)
69. [Container With Most Water](https://www.internhack.in/learn/dsa/problem/container-with-most-water) (Medium)
70. [Edit Distance](https://www.internhack.in/learn/dsa/problem/edit-distance) (Medium)
71. [Find First and Last Position of Element in Sorted Array](https://www.internhack.in/learn/dsa/problem/find-first-and-last-position-of-element-in-sorted-array) (Medium)
72. [Generate Parentheses](https://www.internhack.in/learn/dsa/problem/generate-parentheses) (Medium)
73. [Integer to Roman](https://www.internhack.in/learn/dsa/problem/integer-to-roman) (Medium)
74. [Letter Combinations of a Phone Number](https://www.internhack.in/learn/dsa/problem/letter-combinations-of-a-phone-number) (Medium)
75. [Longest Palindromic Substring](https://www.internhack.in/learn/dsa/problem/longest-palindromic-substring) (Medium)
76. [Longest Substring Without Repeating Characters](https://www.internhack.in/learn/dsa/problem/longest-substring-without-repeating-characters) (Medium)
77. [Maximum Subarray](https://www.internhack.in/learn/dsa/problem/maximum-subarray) (Medium)
78. [Merge Intervals](https://www.internhack.in/learn/dsa/problem/merge-intervals) (Medium)
79. [Minimum Number of Operations to Have Distinct Elements](https://www.internhack.in/learn/dsa/problem/minimum-number-of-operations-to-have-distinct-elements) (Medium)
80. [Pow(x, n)](https://www.internhack.in/learn/dsa/problem/powx-n) (Medium)
81. [Remove Nth Node From End of List](https://www.internhack.in/learn/dsa/problem/remove-nth-node-from-end-of-list) (Medium)
82. [Reverse Integer](https://www.internhack.in/learn/dsa/problem/reverse-integer) (Medium)
83. [Rotate Image](https://www.internhack.in/learn/dsa/problem/rotate-image) (Medium)
84. [Search a 2D Matrix](https://www.internhack.in/learn/dsa/problem/search-a-2d-matrix) (Medium)
85. [Search in Rotated Sorted Array II](https://www.internhack.in/learn/dsa/problem/search-in-rotated-sorted-array-ii) (Medium)
86. [Spiral Matrix](https://www.internhack.in/learn/dsa/problem/spiral-matrix) (Medium)
87. [String to Integer (atoi)](https://www.internhack.in/learn/dsa/problem/string-to-integer-atoi) (Medium)
88. [Unique Paths](https://www.internhack.in/learn/dsa/problem/unique-paths) (Medium)
89. [Word Search](https://www.internhack.in/learn/dsa/problem/word-search) (Medium)
90. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
91. [Department Top Three Salaries](https://www.internhack.in/learn/dsa/problem/department-top-three-salaries) (Hard)
92. [Divide Nodes Into the Maximum Number of Groups](https://www.internhack.in/learn/dsa/problem/divide-nodes-into-the-maximum-number-of-groups) (Hard)
93. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
94. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
95. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
96. [Minimum Insertion Steps to Make a String Palindrome](https://www.internhack.in/learn/dsa/problem/minimum-insertion-steps-to-make-a-string-palindrome) (Hard)
97. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
98. [Shortest Palindrome](https://www.internhack.in/learn/dsa/problem/shortest-palindrome) (Hard)
99. [Smallest Divisible Digit Product II](https://www.internhack.in/learn/dsa/problem/smallest-divisible-digit-product-ii) (Hard)
100. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)

## Prepare for the rest of the Accenture process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Oracle](https://www.internhack.in/learn/dsa/companies/oracle) (340)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
