{"id":111362,"date":"2025-08-28T14:49:39","date_gmt":"2025-08-28T09:19:39","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/"},"modified":"2025-08-28T14:27:41","modified_gmt":"2025-08-28T08:57:41","slug":"accenture-coding-questions-solutions","status":"publish","type":"post","link":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/","title":{"rendered":"Accenture Coding Questions and Solutions (with code)"},"content":{"rendered":"\n<p>Want to prepare for the Accenture interview coding round? We've heard it's easy, we've heard it's hard. The truth is, it's straightforward if you prepare for the right things. This isn't about memorizing endless problems - it's about mastering the fundamentals they actually test on.<\/p>\n\n\n\n<p>Based on previous candidate experiences, the coding test at Accenture is almost always the same format: two coding questions in 45 minutes. Your goal is to get at least one completely correct and the other one partially correct.<\/p>\n\n\n\n<p>The questions are not designed to trick you; they are designed to see if you can write basic, functional code. The difficulty level is usually easy to medium, focusing on core logic, arrays, and strings.<\/p>\n\n\n\n<p>Forget complex algorithms like dynamic programming or graph traversals. You won't need them for the initial assessment. Focus on what matters. Let's start.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"core-concepts-you-absolutely-must-know\">Core Concepts You Absolutely Must Know<\/h2>\n\n\n\n<p>Don't waste time on obscure topics. Your entire preparation should revolve around these four areas.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Arrays (or <a href=\"https:\/\/www.mygreatlearning.com\/blog\/python-list-all-you-need-to-know-about-python-list\/\">Lists in Python<\/a>)<\/strong>: This is their favorite topic. You need to be able to iterate, access elements, modify them, and perform simple calculations. Think sums, averages, finding elements, and basic sorting.<\/li>\n\n\n\n<li><strong>Strings<\/strong>: The second most common topic. Know how to manipulate strings: check characters, count vowels\/consonants, reverse parts of a string, and validate patterns (like a password).<\/li>\n\n\n\n<li><strong>Basic Math and Logic<\/strong>: Many problems are just math problems disguised as coding questions. Prime numbers, greatest common divisor (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Greatest_common_divisor\" target=\"_blank\" rel=\"noopener\">GCD<\/a>), base conversions, and simple series are common.<\/li>\n\n\n\n<li><strong>Functions<\/strong>: The problems will be given to you as a function you need to complete. You must understand how to accept arguments and return a value. All your code will be inside this function.<\/li>\n<\/ul>\n\n\n\n<p>The languages you can use are typically C, C++, <a href=\"https:\/\/www.mygreatlearning.com\/blog\/java-tutorial-for-beginners\/\">Java<\/a>, <a href=\"https:\/\/www.mygreatlearning.com\/blog\/python-tutorial-for-beginners-a-complete-guide\/\">Python<\/a>, or .Net. We'll use Python for the examples here because its syntax is clean and lets us focus on the logic.<\/p>\n\n\n\n<p>Here are representative problems based on patterns that show up repeatedly. Master the logic here, and you'll be fine.<\/p>\n\n\n\n    <div class=\"courses-cta-container\">\n        <div class=\"courses-cta-card\">\n            <div class=\"courses-cta-header\">\n                <div class=\"courses-learn-icon\"><\/div>\n                <span class=\"courses-learn-text\">Academy Pro<\/span>\n            <\/div>\n            <p class=\"courses-cta-title\">\n                <a href=\"https:\/\/www.mygreatlearning.com\/academy\/premium\/applied-data-structures-algorithms-in-java\" class=\"courses-cta-title-link\">Java DSA Course<\/a>\n            <\/p>\n            <p class=\"courses-cta-description\">Learn Data Structures &amp; Algorithms (DSA) in Java to excel in coding interviews and software development. Master linked lists, trees, graphs, heaps, hashing, sorting, and more while building efficient, optimized solutions.<\/p>\n            <div class=\"courses-cta-stats\">\n                <div class=\"courses-stat-item\">\n                    <div class=\"courses-stat-icon courses-user-icon\"><\/div>\n                    <span>2 projects<\/span>\n                <\/div>\n                <div class=\"courses-stat-item\">\n                    <div class=\"courses-stat-icon courses-star-icon\"><\/div>\n                    <span>14 hrs<\/span>\n                <\/div>\n            <\/div>\n            <a href=\"https:\/\/www.mygreatlearning.com\/academy\/premium\/applied-data-structures-algorithms-in-java\" class=\"courses-cta-button\">\n                Data Structures Java Course\n                <div class=\"courses-arrow-icon\"><\/div>\n            <\/a>\n        <\/div>\n    <\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"question-1-the-classic-password-validator\">Question 1: The Classic Password Validator<\/h2>\n\n\n\n<p>This is a very common type of question you might encounter. It tests basic string manipulation and conditional logic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-problem\">The Problem:<\/h3>\n\n\n\n<p>You are given a function CheckPassword(str, n) which accepts a string str of length n. Implement the function to return 1 if the string is a valid password, otherwise return 0. A password is valid if it satisfies all the following conditions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>It must be at least 4 characters long.<\/li>\n\n\n\n<li>It must contain at least one numeric digit.<\/li>\n\n\n\n<li>It must contain at least one capital letter.<\/li>\n\n\n\n<li>It must not have any spaces or slashes (\/).<\/li>\n\n\n\n<li>The first character cannot be a number.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-solution-python\">The Solution (Python):<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPython\ndef CheckPassword(s, n):\n    # Condition 1: Length check\n    if n &amp;lt; 4:\n        return 0\n\n    # Condition 5: First character check\n    if s&#x5B;0].isdigit():\n        return 0\n\n    has_digit = False\n    has_capital = False\n\n    for char in s:\n        # Condition 4: Space or slash check\n        if char == &#039; &#039; or char == &#039;\/&#039;:\n            return 0\n        \n        # Condition 2: Digit check\n        if char.isdigit():\n            has_digit = True\n            \n        # Condition 3: Capital letter check\n        if char.isupper():\n            has_capital = True\n\n    if has_digit and has_capital:\n        return 1\n    else:\n        return 0\n\n# Example Usage\npassword = &quot;aB1_strong&quot;\nprint(CheckPassword(password, len(password)))  # Output: 1\n\npassword2 = &quot;aB 1&quot;\nprint(CheckPassword(password2, len(password2))) # Output: 0\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"the-breakdown\">The Breakdown:<\/h3>\n\n\n\n<p>There is no magic here. We just translate the rules into code.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Initial Checks<\/strong>: The first two conditions (n &lt; 4 and s[0].isdigit()) are easy to check upfront. If either fails, we return 0 immediately. This is efficient. No need to check the rest of the string if the basics are wrong.<\/li>\n\n\n\n<li><strong>Flags<\/strong>: We use boolean \"flags\" (has_digit, has_capital) to keep track of whether we've met certain conditions. They start as False.<\/li>\n\n\n\n<li><strong>The Loop<\/strong>: We loop through each character of the string once. This is important for performance.<\/li>\n\n\n\n<li><strong>Inside the Loop<\/strong>:\n<ul class=\"wp-block-list\">\n<li>We check for invalid characters (' ' or '\/'). If we find one, the password is bad, so we return 0 right away.<\/li>\n\n\n\n<li>We use built-in string methods <a href=\"https:\/\/docs.python.org\/3\/library\/stdtypes.html#str.isdigit\" target=\"_blank\" rel=\"noopener\">.isdigit()<\/a> and <a href=\"https:\/\/docs.python.org\/3\/library\/stdtypes.html#str.isupper\" target=\"_blank\" rel=\"noopener\">.isupper()<\/a>. If a character is a digit, we set has_digit = True. If it's a capital letter, we set has_capital = True. Once a flag is True, it stays True.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Final Check<\/strong>: After the loop finishes, we check our flags. If has_digit AND has_capital are both True, it means all conditions were met. So we return 1. Otherwise, one of them was missing, and we return 0.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"question-2-sum-of-numbers-divisible-by-x-and-y\">Question 2: Sum of Numbers Divisible by X and Y<\/h2>\n\n\n\n<p>This problem tests your understanding of loops and basic modulus arithmetic. It's a common \"filter and sum\" pattern.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-problem\">The Problem:<\/h3>\n\n\n\n<p>Implement the function Calculate(m, n), which takes two integers m and n. The function should calculate the sum of all numbers from 1 to m (inclusive) that are divisible by n.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-solution-python\">The Solution (Python):<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPython\ndef Calculate(m, n):\n    total_sum = 0\n    \n    # Handle edge case where n is zero to avoid division error\n    if n == 0:\n        return 0\n\n    for i in range(1, m + 1):\n        if i % n == 0:\n            total_sum += i\n            \n    return total_sum\n\n# Example Usage\nprint(Calculate(20, 5)) # Output: 50 (5 + 10 + 15 + 20)\nprint(Calculate(10, 3)) # Output: 18 (3 + 6 + 9)\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"the-breakdown\">The Breakdown:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Initialization<\/strong>: We start with a variable total_sum set to 0. This will store our result.<\/li>\n\n\n\n<li><strong>Edge Case<\/strong>: If n is 0, division is impossible. The problem doesn't specify what to do, but returning 0 is a safe and logical choice.<\/li>\n\n\n\n<li><strong>The Loop<\/strong>: We need to check every number from 1 up to m. The <a href=\"https:\/\/docs.python.org\/3\/library\/stdtypes.html#range\" target=\"_blank\" rel=\"noopener\">range(1, m + 1)<\/a> in Python does exactly this.<\/li>\n\n\n\n<li><strong>The Condition<\/strong>: The core of the problem is the divisibility check. The modulus operator (%) gives you the remainder of a division. If i % n is 0, it means i is perfectly divisible by n.<\/li>\n\n\n\n<li><strong>The Summation<\/strong>: When the condition is true, we add the number i to our total_sum using total_sum += i.<\/li>\n\n\n\n<li><strong>The Return<\/strong>: After the loop has checked all the numbers, total_sum holds the final answer, and we return it.<\/li>\n<\/ul>\n\n\n\n<p><strong>Also Read:<\/strong> <a href=\"https:\/\/www.mygreatlearning.com\/blog\/python-conditional-statements\/\">Conditional Statements in Python<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"question-3-second-largest-element-in-an-array\">Question 3: Second Largest Element in an Array<\/h2>\n\n\n\n<p>This is a frequently asked array manipulation question. It tests your ability to handle arrays and edge cases.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-problem\">The Problem:<\/h3>\n\n\n\n<p>Write a function secondLargest(arr, n) that takes an array of integers arr of size n and returns the second largest element in the array. If no second largest element exists, return -1.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-solution-python\">The Solution (Python):<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPython\ndef secondLargest(arr, n):\n    # Edge case: If array has less than 2 elements\n    if n &amp;lt; 2:\n        return -1\n\n    largest = -float(&#039;inf&#039;)\n    second_largest = -float(&#039;inf&#039;)\n\n    for number in arr:\n        if number &gt; largest:\n            second_largest = largest\n            largest = number\n        elif number &gt; second_largest and number != largest:\n            second_largest = number\n\n    # If second_largest was never updated, it means all elements were the same\n    if second_largest == -float(&#039;inf&#039;):\n        return -1\n    else:\n        return second_largest\n\n# Example Usage\nmy_arr = &#x5B;10, 5, 8, 20, 12]\nprint(secondLargest(my_arr, len(my_arr))) # Output: 12\n\nmy_arr2 = &#x5B;5, 5, 5, 5]\nprint(secondLargest(my_arr2, len(my_arr2))) # Output: -1\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"the-breakdown\">The Breakdown:<\/h3>\n\n\n\n<p>This is more efficient than sorting the whole array first. Sorting takes O(n log n) time. This solution takes O(n) time because it only iterates through the list once.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Edge Case<\/strong>: If the array has fewer than two elements, a second largest is impossible. So we return -1 immediately.<\/li>\n\n\n\n<li><strong>Initialization<\/strong>: We create two variables, largest and second_largest. We initialize them to negative infinity (<a href=\"https:\/\/docs.python.org\/3\/library\/functions.html#float\" target=\"_blank\" rel=\"noopener\">-float('inf')<\/a>) to ensure that the first element of any array with real numbers will be larger.<\/li>\n\n\n\n<li><strong>The Loop<\/strong>: We iterate through each number in the array.<\/li>\n\n\n\n<li><strong>Logic Branch 1 (number &gt; largest)<\/strong>: If the current number is greater than our current largest, it means we've found a new largest. The old largest now becomes the second_largest, and the current number becomes the new largest.<\/li>\n\n\n\n<li><strong>Logic Branch 2 (number &gt; second_largest and number != largest)<\/strong>: If the current number is not the new largest, we check if it's bigger than the current second_largest. The number != largest part is crucial to handle duplicate largest values correctly. For an array like [20, 5, 20], we don't want to set second_largest to 20.<\/li>\n\n\n\n<li><strong>Final Check<\/strong>: After the loop, if second_largest is still negative infinity, it means we never found a second largest element. This happens in an array like [5, 5, 5]. In this case, we return -1. Otherwise, we return the value we found.<\/li>\n<\/ul>\n\n\n\n<p><strong>Read:<\/strong> <a href=\"https:\/\/www.mygreatlearning.com\/blog\/data-types-in-python-programming\/\">Python Data Types with Examples<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"question-4-string-reversal-by-words\">Question 4: String Reversal by Words<\/h2>\n\n\n\n<p>Another common string manipulation task. This tests your ability to split, reverse, and join strings.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-problem\">The Problem:<\/h3>\n\n\n\n<p>Given an input string s, reverse the string word by word. For example, if the input is \"Accenture is great\", the output should be \"great is Accenture\".<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-solution-python\">The Solution (Python):<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nPython\ndef reverseWords(s):\n    # 1. Split the string into a list of words\n    words = s.split()\n    \n    # 2. Reverse the list\n    reversed_words = words&#x5B;::-1]\n    \n    # 3. Join the reversed list back into a string\n    output_string = &quot; &quot;.join(reversed_words)\n    \n    return output_string\n\n# Example Usage\ninput_str = &quot;Accenture is great&quot;\nprint(reverseWords(input_str)) # Output: &quot;great is Accenture&quot;\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"the-breakdown\">The Breakdown:<\/h3>\n\n\n\n<p>Python's built-in methods make this very simple. You just need to know they exist.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong><code>s.split()<\/code><\/strong>: This <a href=\"https:\/\/www.mygreatlearning.com\/blog\/python-string-split-method\/\">method splits a string<\/a> into a list of <a href=\"https:\/\/www.mygreatlearning.com\/blog\/python-substring\/\">substrings<\/a> based on a delimiter. By default, it splits by whitespace. So <code>\"Accenture is great\"<\/code> becomes <code>['Accenture', 'is', 'great']<\/code>.<\/li>\n\n\n\n<li><strong><code>words[::-1]<\/code><\/strong>: This is Python's slice notation for reversing a list. It's a clean and efficient way to create a reversed copy of the list. <code>['Accenture', 'is', 'great']<\/code> becomes <code>['great', 'is', 'Accenture']<\/code>.<\/li>\n\n\n\n<li><strong><code>\" \".join(reversed_words)<\/code><\/strong>: This is the opposite of <code>split<\/code>. The <a href=\"https:\/\/www.mygreatlearning.com\/blog\/join-in-python\/\">.join() method<\/a> takes a list of strings and concatenates them into a single string, using the string it was called on as a separator. Here, we use a space (<code>\" \"<\/code>) as the separator. This turns <code>['great', 'is', 'Accenture']<\/code> back into <code>\"great is Accenture\"<\/code>.<\/li>\n<\/ol>\n\n\n\n<p><strong>Suggested Read:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mygreatlearning.com\/blog\/python-string-manipulation\/\">String Manipulation in Python<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mygreatlearning.com\/blog\/string-manipulation-in-java\/\">String manipulation in Java<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"question-5-number-base-conversion\">Question 5: Number Base Conversion<\/h2>\n\n\n\n<p>This type of problem tests your understanding of mathematical logic and how to implement it in code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-problem\">The Problem:<\/h3>\n\n\n\n<p>Implement a function <code>dec_to_n(num, n)<\/code> that takes a decimal integer <code>num<\/code> and a base <code>n<\/code> (where 2 &lt;= n &lt;= 36) and returns its representation in base <code>n<\/code> as a string.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"the-solution-python\">The Solution (Python):<\/h3>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npython\ndef dec_to_n(num, n):\n    if num == 0:\n        return &quot;0&quot;\n        \n    # Characters for bases greater than 10\n    chars = &quot;0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;\n    result = &quot;&quot;\n\n    while num &gt; 0:\n        remainder = num % n\n        result = chars&#x5B;remainder] + result\n        num = num \/\/ n # Integer division\n\n    return result\n\n# Example Usage\nprint(dec_to_n(10, 2)) # Output: &quot;1010&quot; (Binary)\nprint(dec_to_n(255, 16)) # Output: &quot;FF&quot; (Hexadecimal)\n<\/pre><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"the-breakdown\">The Breakdown:<\/h3>\n\n\n\n<p>The logic is based on the standard algorithm for base conversion.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Base Cases<\/strong>: If the input <code>num<\/code> is 0, the answer is always \"0\". We handle this first.<\/li>\n\n\n\n<li><strong>Character Map<\/strong>: For bases above 10, we need characters (A, B, C...). We create a string <code>chars<\/code> that maps an index to its character. <code>chars[10]<\/code> is 'A', <code>chars[11]<\/code> is 'B', and so on.<\/li>\n\n\n\n<li><strong>The Loop<\/strong>: The conversion logic happens in a <code>while<\/code> loop that continues as long as <code>num<\/code> is greater than 0.<\/li>\n\n\n\n<li><strong><code>remainder = num % n<\/code><\/strong>: We find the remainder when <code>num<\/code> is divided by the base <code>n<\/code>. This remainder gives us the rightmost digit of our result.<\/li>\n\n\n\n<li><strong><code>result = chars[remainder] + result<\/code><\/strong>: We find the character corresponding to the <code>remainder<\/code> and prepend it to our <code>result<\/code> string. It's important to prepend, not append, because we are generating the digits from right to left.<\/li>\n\n\n\n<li><strong><code>num = num \/\/ n<\/code><\/strong>: We perform integer division to get the new <code>num<\/code> for the next iteration. This is like \"chopping off\" the last digit we just processed.<\/li>\n\n\n\n<li><strong>Return<\/strong>: Once the loop finishes (<code>num<\/code> becomes 0), the <code>result<\/code> string holds the complete converted number.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how-to-approach-the-test\">How to Approach the Test<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Read Both Questions First<\/strong>: Don't just start coding the first one you see. Spend one minute reading both questions. Identify the one you are more confident about.<\/li>\n\n\n\n<li><strong>Attack the Easiest One First<\/strong>: Start with the question you know you can solve. Your goal is to get one question 100% correct. Secure those points. This boosts your confidence and guarantees you meet the \"one complete\" criteria.<\/li>\n\n\n\n<li><strong>Time Management is Key<\/strong>: You have about 22 minutes per question. If you are stuck on a problem for more than 15 minutes, move on. It's better to have one complete and one partial solution than two incomplete ones.<\/li>\n\n\n\n<li><strong>Test With Your Own Cases<\/strong>: The online judge will have hidden test cases. Before you submit, run your code with your own examples. Think about edge cases: empty arrays, arrays with one element, zero, negative numbers. This will help you catch bugs.<\/li>\n\n\n\n<li><strong>Don't Overthink It<\/strong>: The problems are usually not as complex as they seem. Break them down into the simplest possible steps. If your solution seems overly complicated, you are probably missing a simpler approach. The answer is almost never a fancy algorithm. It's loops, <code>if<\/code> statements, and basic <a href=\"https:\/\/www.mygreatlearning.com\/blog\/data-structure-tutorial-for-beginners\/\">data structures<\/a>.<\/li>\n<\/ol>\n\n\n\n<p><strong>Also Read:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.mygreatlearning.com\/blog\/tcs-nqt-coding-questions-answers\/\">TCS NQT Coding Questions and Answers (with code)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mygreatlearning.com\/blog\/tcs-aptitude-questions-answers\/\">TCS Aptitude Questions and Answers<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.mygreatlearning.com\/blog\/infosys-interview-questions\/\">Infosys Interview Questions and Answers<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.<\/p>\n","protected":false},"author":41,"featured_media":111365,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25860],"tags":[36820,36800],"content_type":[],"class_list":["post-111362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-it-interview","tag-it-jobs"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Accenture Coding Questions and Solutions (with code)<\/title>\n<meta name=\"description\" content=\"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Accenture Coding Questions and Solutions (with code)\" \/>\n<meta property=\"og:description\" content=\"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-28T09:19:39+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1408\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Great Learning Editorial Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/Great_Learning\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Great Learning Editorial Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"Accenture Coding Questions and Solutions (with code)\",\"datePublished\":\"2025-08-28T09:19:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/\"},\"wordCount\":1753,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/accenture-coding-questions.webp\",\"keywords\":[\"IT Interview\",\"IT Jobs\"],\"articleSection\":[\"IT\\\/Software Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/\",\"name\":\"Accenture Coding Questions and Solutions (with code)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/accenture-coding-questions.webp\",\"datePublished\":\"2025-08-28T09:19:39+00:00\",\"description\":\"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/accenture-coding-questions.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/accenture-coding-questions.webp\",\"width\":1408,\"height\":768,\"caption\":\"Accenture Coding Questions and Solutions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/accenture-coding-questions-solutions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"IT\\\/Software Development\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/software\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Accenture Coding Questions and Solutions (with code)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Accenture Coding Questions and Solutions (with code)","description":"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/","og_locale":"en_US","og_type":"article","og_title":"Accenture Coding Questions and Solutions (with code)","og_description":"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","article_published_time":"2025-08-28T09:19:39+00:00","og_image":[{"width":1408,"height":768,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp","type":"image\/webp"}],"author":"Great Learning Editorial Team","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/Great_Learning","twitter_site":"@Great_Learning","twitter_misc":{"Written by":"Great Learning Editorial Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"Accenture Coding Questions and Solutions (with code)","datePublished":"2025-08-28T09:19:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/"},"wordCount":1753,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp","keywords":["IT Interview","IT Jobs"],"articleSection":["IT\/Software Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/","url":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/","name":"Accenture Coding Questions and Solutions (with code)","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp","datePublished":"2025-08-28T09:19:39+00:00","description":"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp","width":1408,"height":768,"caption":"Accenture Coding Questions and Solutions"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/accenture-coding-questions-solutions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"IT\/Software Development","item":"https:\/\/www.mygreatlearning.com\/blog\/software\/"},{"@type":"ListItem","position":3,"name":"Accenture Coding Questions and Solutions (with code)"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp",1408,768,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-150x150.webp",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-300x164.webp",300,164,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-768x419.webp",768,419,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-1024x559.webp",1024,559,true],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp",1408,768,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions.webp",1408,768,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-640x768.webp",640,768,true],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/08\/accenture-coding-questions-150x82.webp",150,82,true]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"Prepare for the Accenture interview coding round with key tips on mastering arrays, strings, logic, and math basics.","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/111362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=111362"}],"version-history":[{"count":5,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/111362\/revisions"}],"predecessor-version":[{"id":111367,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/posts\/111362\/revisions\/111367"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/111365"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=111362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=111362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=111362"},{"taxonomy":"content_type","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/content_type?post=111362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}