Consider the Palindrom class discussed in class. Which of the following is true? It uses one stack and one queue to find out if a given string is palindrom It uses a glass queue to find out if a string is a palindrome It uses a recursive method to find out if a string is a palindrome It uses 2 stacks to find out of a string is a palindrome

Answers

Answer 1

Answer:

It uses a recursive method to find out if a string is a palindrome

Explanation:

Palindrome is a word or a sequence which is read same as backward as forwards. There are various method to find a palindrome. Palindrome can be determined recursively by identifying the first and last letters of the word. These first and last letter should be same. If they are same then the word or sequence is palindrome.


Related Questions

Other Questions
A football field is a rectangle 48m wide and 91m long. The coach asks players to run diagonally across the field. How far did the players run? characteristic of society Which fact best supports the city planner's opinion? Designated bike lanes have reduced traffic-related accidents by 43 percent in other cities. A nearby city's business district has bike lanes and a much higher population of commuters. The cost of roadwork in the region has reduced the cost of similar projects by more than 12 percent. Research has proven that bike commuters are healthier and happier than car commuters. Not sure of how to solve this A rectangle has an area of 524.4m2. One of the sides is 6.9m in length. Work out the perimeter of the rectangle. PLEASE ANSWER!!! SOON ASAP Consider a skateboarder who starts from rest at the top of ramp that is inclined at an angle of 18.0 to the horizontal. Assuming that the skateboarder's acceleration is gsin 18.0 , find his speed when he reaches the bottom of the ramp in 3.50 s . Find the circumference of a circle with a radius of 15 centimeters. Round your answer to the nearest centimeter The comparative financial statements of Marshall Inc. are as follows. The market price of Marshall common stock was $82.80 on December 31, 20Y2.Marshall Inc.Comparative Retained Earnings StatementFor the Years Ended December 31, 20Y2 and 20Y11 20Y2 20Y12 Retained earnings, January 1 $3,704,000.00 $3,264,000.003 Net income 600,000.00 550,000.004 Total $4,304,000.00 $3,814,000.005 Dividends: 6 On preferred stock $10,000.00 $10,000.007 On common stock 100,000.00 100,000.008 Total dividends $110,000.00 $110,000.009 Retained earnings, December 31 $4,194,000.00 $3,704,000.00Marshall Inc.Comparative Income StatementFor the Years Ended December 31, 20Y2 and 20Y11 20Y2 20Y12 Sales $10,850,000.00 $10,000,000.003 Cost of goods sold 6,000,000.00 5,450,000.004 Gross profit $4,850,000.00 $4,550,000.005 Selling expenses $2,170,000.00 $2,000,000.006 Administrative expenses 1,627,500.00 1,500,000.007 Total operating expenses $3,797,500.00 $3,500,000.008 Income from operations $1,052,500.00 $1,050,000.009 Other revenue 99,500.00 20,000.0010 $1,152,000.00 $1,070,000.0011 Other expense (interest) 132,000.00 120,000.0012 Income before income tax $1,020,000.00 $950,000.0013 Income tax expense 420,000.00 400,000.0014 Net income $600,000.00 $550,000.00Marshall Inc.Comparative Balance Sheet December 31, 20Y2 and 20Y11 20Y2 20Y12 Assets 3 Current assets: 4 Cash $1,050,000.00 $950,000.005 Marketable securities 301,000.00 420,000.006 Accounts receivable (net) 585,000.00 500,000.007 Inventories 420,000.00 380,000.008 Prepaid expenses 108,000.00 20,000.009 Total current assets $2,464,000.00 $2,270,000.0010 Long-term investments 800,000.00 800,000.0011 Property, plant, and equipment (net) 5,760,000.00 5,184,000.0012 Total assets $9,024,000.00 $8,254,000.0013 Liabilities 14 Current liabilities $880,000.00 $800,000.0015 Long-term liabilities: 16 Mortgage note payable, 6% $200,000.00 $0.0017 Bonds payable, 4% 3,000,000.00 3,000,000.0018 Total long-term liabilities $3,200,000.00 $3,000,000.0019 Total liabilities $4,080,000.00 $3,800,000.0020 Stockholders' Equity 21 Preferred 4% stock, $5 par $250,000.00 $250,000.0022 Common stock, $5 par 500,000.00 500,000.0023 Retained earnings 4,194,000.00 3,704,000.0024 Total stockholders' equity $4,944,000.00 $4,454,000.0025 Total liabilities and stockholders' equity $9,024,000.00 $8,254,000.00Determine the following measures for 20Y2 round to one decimal place, including percentages, except for pre-share amounts):1. Working Capital2. Current ratio3. Quick ratio4. Accounts receivable turnover5. Number of days' sales in receivables6. Inventory turnover7. Number of days' sales in inventory8. Ratio of fixed assets to long-term liabilities9. Ratio of liabilities to stockholders' equity10. Times interest earned11. Asset turnover12. Return on total assets13. Return on stockholders' equity14. Return on common stockholders' equity15. Earnings per share on common stock16. Price-earnings ratio17. Dividends per share of common stock18. Dividend yield find the value of k for which the given pair of vectors are not equal2ki +3j and 8i + 4kj The compressor of an air conditioner draws an electric current of 16.2 A when it starts up. If the start-up time is 1.45 s long, then how much electric charge passes through the circuit during this period The difference between actual hours times the actual pay rate and actual hours times the standard pay rate is the labor _________________ variance. What is the equation of the graphed line written instandard form?O 2x - y = -4O 2x - y = 4O y = 2x 4O y=x-4 Uncellular eukaryotic organisms belong to? which bear is best? Beets. Bears. Battlestar galactica. How many rounds of division are there when one cell in the testis becomes four sperm cells? Look at the Pope Manufacturing Co. advertisement. An ad for Columbia Bicycles. Which detail from Chapter 1 of Wheels of Change does this image enhance? Concerning the climate change, why do soe nations think wealthier nations should pay reparations to poorer nations? A waiter fills your water glass with ice water (containing many ice cubes) such that the liquid water is perfectly level with the rim of the glass. As the ice melts, Binary fission occurs in which of the following type of organsim? If 200,000 machinehours are budgeted for variable overhead at a standard rate of $5/machinehour, but 220,000 machinehours were actually used at an actual rate of $6/machinehour, what is the variable overhead efficiency variance?