zoukankan      html  css  js  c++  java
  • FizzBuzz

    should return orginal input when number cannt be divisible by three or five
    当数字不能被3或5整除时,应返回原始输入。  
    
    should return "Fizz" when number can be divisible by three
    当数字能被3整除时,应返回 "Fizz"。  
    
    should return "Fizz" when number contains 3
    当数字包含3时,应返回 "Fizz"。  
    
    should return "Buzz" when number can be divisible by Five
    当数字能被5整除时,应返回 "Buzz"  
    
    should return "Buzz" when number contains 5
    当数字包含5时,应返回 "Buzz"。
    
    should return "FizzBuzz" when number can be divisible by bothThree and Five
    当数字能被3和5整除时,应返回 "FizzBuzz"。  
    
    should return "FizzBuzz" when number contains both 3 and 5
    当数字同时包含3和5时,应返回 "FizzBuzz"。  
    
    should return "FizzBuzz" when number contains 5 and can be divisible by 3
    当数字包含5且能被3整除时,应返回 "FizzBuzz"  
    
    should return "FizzBuzz" when number contains 5 and can be divisible by 5
    当数字包含5且能被5整除时,应返回 "FizzBuzz"。
    
  • 相关阅读:
    数组中的逆序对
    第一个只出现一次的字符
    丑数
    把数组排成最小的数
    整数中出现1的个数
    连续子数组最大和
    JS之window对象
    JS之递归(例题:猴子吃桃)
    JS中函数的基础知识
    JS数组2(冒泡排列、数组里面查找数据)
  • 原文地址:https://www.cnblogs.com/markLogZhu/p/15714925.html
Copyright © 2011-2022 走看看