Practice (/) : The Dice Problem C++ Data Types
Practice (/) : The Dice Problem C++ Data Types
(https://practice.geeksforgeeks.org/explore/)
Practice Courses
Login (https://auth.geeksforgeeks.org/?
to=https%3A%2F%2Fptop.only.wip.la%3A443%2Fhttps%2Fpractice.geeksforgeeks.org%2Fexplore%2F%3Fpro
(https://practice.geeksforgeeks.org/courses/)
(/) Get Hired
2%26amp%3Bpage%3D0)
(https://practice.geeksforgeeks.org/jobs/)
Full Problems
Difficulty
Sort By
c Company Tags
Amazon
Mic rosoft
Samsung
Adobe
Ac c olite
more>>
c Topic Tags
(https://practice.geeksforgeeks.org/problems/the-dice-problem/0)
(https://practice.geeksforgeeks.org/problems/c-data-types/0)
The dice problem C++ Data Types
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Topic Tags: CPP (https://practice.geeksforgeeks.org/explore?category[]=CPP) Data Type (https://practice.geeksforgeeks.org/explore?category[]=D
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/number-of-diagonals/0)
(https://practice.geeksforgeeks.org/problems/remainder-evaluation/0)
Number of Diagonals Remainder Evaluation
Topic Tags: Geometric (https://practice.geeksforgeeks.org/explore?category[]=Geometric)
Topic Tags: Modular Arithmetic (https://practice.geeksforgeeks.org/explore?category[]=Modular Arithmetic)
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/sum-of-digits/0)(https://practice.geeksforgeeks.org/problems/java-substring/0)
Sum Of Digits Java Substring
Topic Tags: number- theory (https://practice.geeksforgeeks.org/explore?category[]=number-
Topic Tags: Java
theory)
(https://practice.geeksforgeeks.org/explore?category[]=Java) Strings (https://practice.geeksforgeeks.org/explore?category[]=Stri
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
https://practice.geeksforgeeks.org/explore/?problemType=full&difficulty%5B%5D=-2&page=1&sortBy=accuracy 1/5
11/12/19 Practice | GeeksforGeeks | A computer science portal for geeks
(https://practice.geeksforgeeks.org/problems/find-the-camel/0)
(https://practice.geeksforgeeks.org/problems/c-hello-world/0)
Count of camel case characters C++ Hello World
Topic Tags: Strings (https://practice.geeksforgeeks.org/explore?category[]=Strings)
Topic Tags: CPP (https://practice.geeksforgeeks.org/explore?category[]=CPP)
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/java-hello-world/0)
(https://practice.geeksforgeeks.org/problems/java-convert-string-to-lowercase/0)
Java Hello World Java Convert String to LowerCase
Topic Tags: Java (https://practice.geeksforgeeks.org/explore?category[]=Java) Topic Tags: Java (https://practice.geeksforgeeks.org/explore?category[]=Java) Strings (https://practice.geeksforgeeks.org/explore?category[]=Stri
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/number-of-factors/0)
(https://practice.geeksforgeeks.org/problems/gcd-of-two-numbers/0)
Number of factors GCD of two numbers
Topic Tags: Misc (https://practice.geeksforgeeks.org/explore?category[]=Misc) Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/simple-interest/0)
(https://practice.geeksforgeeks.org/problems/java-if-else-decision-making/0)
Simple Interest Java if-else (Decision Making)
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Topic Tags: Java (https://practice.geeksforgeeks.org/explore?category[]=Java)
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/series-ap/0) (https://practice.geeksforgeeks.org/problems/sum-of-array-elements/0)
Series AP Sum of array elements
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Topic Tags: Arrays (https://practice.geeksforgeeks.org/explore?category[]=Arrays)
series (https://practice.geeksforgeeks.org/explore?category[]=series)
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/c-array-print-an-element-set-2/0)
(https://practice.geeksforgeeks.org/problems/check-if-a-number-is-perfect-square/0)
C++ Array (print an element) | Set 2 Check if a number is Perfect Square
Topic Tags: Arrays (https://practice.geeksforgeeks.org/explore?category[]=Arrays)
TopicCPP
Tags:
(https://practice.geeksforgeeks.org/explore?category[]=CPP)
Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Di f f i cu l ty O Y O R ooms ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =O Y O R ooms )
Su b mi ssi o n s
Di f f i cu l ty
Accu r acy
Su b mi ssi o n s
https://practice.geeksforgeeks.org/explore/?problemType=full&difficulty%5B%5D=-2&page=1&sortBy=accuracy 2/5
11/12/19 Practice | GeeksforGeeks | A computer science portal for geeks
Accu r acy
(https://practice.geeksforgeeks.org/problems/find-n-th-term-of-series-1-3-6-10-15-21/0)
Find n-th term of series 1, 3, 6, 10, 15, 21
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
(https://practice.geeksforgeeks.org/problems/cube-root-of-a-number/0)
Di f f i cu l ty
Cube root of a number
Su b mi ssi o n s Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Accu r acy Di f f i cu l ty
Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/pattern-printing/0)
Pattern Printing
(https://practice.geeksforgeeks.org/problems/floyds-triangle/0)
Topic Tags: pattern- printing (https://practice.geeksforgeeks.org/explore?category[]=pattern- printing)
Floyd's triangle
Di f f i cu l ty
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Su b mi ssi o n s
Di f f i cu l ty
Accu r acy
Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/pattern-of-strings/0)
Pattern of Strings
(https://practice.geeksforgeeks.org/problems/split-strings/0)
Topic Tags: pattern- printing (https://practice.geeksforgeeks.org/explore?category[]=pattern- printing) Strings (https://practice.geeksforgeeks.org/explore?category[]=Strings)
Split Strings
Di f f i cu l ty
Topic Tags: Strings (https://practice.geeksforgeeks.org/explore?category[]=Strings)
Su b mi ssi o n s
Di f f i cu l ty
Accu r acy
Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/reverse-the-string/0)
Reverse a String
(https://practice.geeksforgeeks.org/problems/binary-representation/0)
Topic Tags: Strings (https://practice.geeksforgeeks.org/explore?category[]=Strings)
Binary representation
Adobe ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =Adobe) Ama zon ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =Ama zon)
Topic Tags: Bit Magic (https://practice.geeksforgeeks.org/explore?category[]=Bit Magic)
G oldma n S a chs ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =G oldma n S a chs )
Mi cros oft ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =Mi cros oft )
MAQ S oft w a re ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =MAQ S oft w a re) VMWa re ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =VMWa re)
Di f f i cu l ty
Di f f i cu l ty
Su b mi ssi o n s
Su b mi ssi o n s
Accu r acy
Accu r acy
(https://practice.geeksforgeeks.org/problems/second-largest/0)
(https://practice.geeksforgeeks.org/problems/swap-two-numbers/0)
Second Largest
Swap two numbers
Topic Tags: Arrays (https://practice.geeksforgeeks.org/explore?category[]=Arrays) Searching (https://practice.geeksforgeeks.org/explore?category[]=Searching)
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
R ock s t a nd ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =R ock s t a nd) S AP L a bs ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =S AP L a bs )
S a ms ung ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =S a ms ung)
Di f f i cu l ty
Di f f i cu l ty
Su b mi ssi o n s
Su b mi ssi o n s
Accu r acy
Accu r acy
(https://practice.geeksforgeeks.org/problems/addition-of-two-numbers/0)
(https://practice.geeksforgeeks.org/problems/sum-of-series/0)
https://practice.geeksforgeeks.org/explore/?problemType=full&difficulty%5B%5D=-2&page=1&sortBy=accuracy 3/5
11/12/19 Practice | GeeksforGeeks | A computer science portal for geeks
Di f f i cu l ty Di f f i cu l ty
Su b mi ssi o n s Su b mi ssi o n s
(https://practice.geeksforgeeks.org/problems/reverse-digit/0)
(https://practice.geeksforgeeks.org/problems/palindrome/0)
Reverse digits
Palindrome
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
Topic Tags: palindrome (https://practice.geeksforgeeks.org/explore?category[]=palindrome)
MAQ S oft w a re ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =MAQ S oft w a re)
Adobe ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =Adobe) O ra cle ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plo
Di f f i cu l ty S a ms ung ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =S a ms ung) Zoho ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex
Su b mi ssi o n s
Di f f i cu l ty
Accu r acy
Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/maximum-and-minimum-of-array-elements/0)
(https://practice.geeksforgeeks.org/problems/largest-element-in-array/0)
Maximum and Minimum Of Array ElementsLargest Element in Array
Topic Tags: Arrays (https://practice.geeksforgeeks.org/explore?category[]=Arrays)
Topic Tags: Arrays (https://practice.geeksforgeeks.org/explore?category[]=Arrays)
VMWa re ( ht t ps : //pra ct i ce. geek s forgeek s . org/ex plore/? compa ny[ ] =VMWa re)
Di f f i cu l ty
Di f f i cu l ty Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/sum-of-an-ap/0)
Sum of an AP
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
(https://practice.geeksforgeeks.org/problems/greatest-of-three-numbers/0)
Greatest of three numbers Di f f i cu l ty
Di f f i cu l ty
Accu r acy
Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/display-longest-name/0)
Display longest name
Topic Tags: Arrays (https://practice.geeksforgeeks.org/explore?category[]=Arrays) Strings (https://practice.geeksforgeeks.org/explore?category[]=S
(https://practice.geeksforgeeks.org/problems/convert-a-list-of-characters-into-a-string/0)
Convert a list of characters into a String Di f f i cu l ty
Di f f i cu l ty
Accu r acy
Su b mi ssi o n s
Accu r acy
(https://practice.geeksforgeeks.org/problems/surface-area-and-volume-of-cuboid/0)
Surface Area and Volume of Cuboid
Topic Tags: Mathematical (https://practice.geeksforgeeks.org/explore?category[]=Mathematical)
(https://practice.geeksforgeeks.org/problems/sum-of-array/0) Di f f i cu l ty
https://practice.geeksforgeeks.org/explore/?problemType=full&difficulty%5B%5D=-2&page=1&sortBy=accuracy 4/5
11/12/19 Practice | GeeksforGeeks | A computer science portal for geeks
Su b mi ssi o n s
Accu r acy
GET PAID
WITH
PAYPAL
Sign up now
(https://www.geeksforgeeks.org/)
COMPANY LEARN
About Us (https://www.geeksforgeeks.org/about/) Algorithms (https://www.geeksforgeeks.org/fundamentals-of-algorithms/)
Careers (https://www.geeksforgeeks.org/careers/) Data Structures (https://www.geeksforgeeks.org/data-structures/)
Privacy Policy (https://www.geeksforgeeks.org/privacy-policy/) Languages (https://www.geeksforgeeks.org/category/program-output/)
Contact Us (https://www.geeksforgeeks.org/about/contact-us/) CS Subjects (https://www.geeksforgeeks.org/articles-on-computer-science-subjects-
gq/)
Video Tutorials (https://www.youtube.com/geeksforgeeksvideos/)
PRACTICE CONTRIBUTE
Courses (https://practice.geeksforgeeks.org/courses/) Write an Article (https://www.geeksforgeeks.org/contribute/)
Company-wise (https://practice.geeksforgeeks.org/company-tags/) Interview Experience (https://www.geeksforgeeks.org/write-interview-experience/)
Topic-wise (https://practice.geeksforgeeks.org/topic-tags/) Internships (https://www.geeksforgeeks.org/internship/)
How to begin? (https://practice.geeksforgeeks.org/faq.php) Videos (https://www.geeksforgeeks.org/how-to-contribute-videos-to-geeksforgeeks/)
https://practice.geeksforgeeks.org/explore/?problemType=full&difficulty%5B%5D=-2&page=1&sortBy=accuracy 5/5