We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • Hackerrank Home
  • Prepare
    NEW
  • Certify
  • Compete
  • Career Fair
  • Hiring developers?
  1. Prepare
  2. SQL
  3. Alternative Queries
  4. Draw The Triangle 1

Draw The Triangle 1

Problem
Submissions
Leaderboard
Discussions
  1. Prepare
  2. SQL
  3. Alternative Queries
  4. Draw The Triangle 1
Exit Full Screen View
  • Problem
  • Submissions
  • Leaderboard
  • Discussions

P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5):

* * * * * 
* * * * 
* * * 
* * 
*

Write a query to print the pattern P(20).

  • Contest Calendar
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy
  • Request a Feature