python3
dssky_2008
我还是我自己...吗?
展开
-
【hackerrank】-Day 1: Data Types
30-data-types Objective Today, we’re discussing data types. Check out the Tutorial tab for learning materials and an instructional video! Task Complete the code in the editor below. The variable...原创 2018-07-23 22:05:32 · 394 阅读 · 0 评论 -
【hackerrank】-Day 13: Abstract Classes
30-abstract-classes Objective Today, we’re taking what we learned yesterday about Inheritance and extending it to Abstract Classes. Because this is a very specific Object-Oriented concept, submissi...原创 2018-07-30 21:20:12 · 174 阅读 · 0 评论 -
【转载】Python3 中字符串拼接的 N 种方法
来源:木头释然 原文链接 Python拼接字符串一般有以下几种方法: 1、直接通过(+)操作符拼接 s = ‘Hello’+’ ‘+’World’+’!’ print(s) 输出结果:Hello World! 使用这种方式进行字符串连接的操作效率低下,因为python中使用 + 拼接两个字符串时会生成一个新的字符串,生成新的字符串就需要重新申请内存,当拼接字符串较多时自然...转载 2018-08-09 10:39:55 · 585 阅读 · 0 评论 -
【hackerrank】-Day 10: Binary Numbers
30-binary-numbers Objective Today, we’re working with binary numbers. Check out the Tutorial tab for learning materials and an instructional video! Task Given a base- integer, , convert it to bi...原创 2018-07-27 22:46:23 · 267 阅读 · 0 评论 -
【hackerrank】-Day 18: Queues and Stacks
30-queues-stacks Welcome to Day 18! Today we’re learning about Stacks and Queues. Check out the Tutorial tab for learning materials and an instructional video! A palindrome is a word, phrase, number...原创 2018-08-10 00:06:29 · 267 阅读 · 0 评论 -
【hackerrank】-Day 19: Interfaces
30-interfaces Objective Today, we’re learning about Interfaces. Check out the Tutorial tab for learning materials and an instructional video! Task The AdvancedArithmetic interface and the method...原创 2018-08-10 00:17:19 · 204 阅读 · 0 评论 -
【hackerrank】-Day 20: Sorting
30-sorting Objective Today, we’re discussing a simple sorting algorithm called Bubble Sort. Check out the Tutorial tab for learning materials and an instructional video! Consider the following ver...原创 2018-08-10 00:34:24 · 187 阅读 · 0 评论 -
【hackerrank】-Day 14: Scope
30-scope Objective Today we’re discussing scope. Check out the Tutorial tab for learning materials and an instructional video! The absolute difference between two integers, and , is written as . ...原创 2018-08-01 22:16:47 · 157 阅读 · 0 评论 -
【hackerrank】-Day 25: Running Time and Complexity
30-running-time-and-complexity Objective Today we’re learning about running time! Check out the Tutorial tab for learning materials and an instructional video! Task A prime is a natural number g...原创 2018-08-14 23:08:40 · 414 阅读 · 0 评论 -
【hackerrank】-Day 26: Nested Logic
30-nested-logic Objective Today’s challenge puts your understanding of nested conditional statements to the test. You already have the knowledge to complete this challenge, but check out the Tutori...原创 2018-08-14 23:23:06 · 176 阅读 · 0 评论 -
【hackerrank】-Day 11: 2D Arrays----之表格打印
二维数组的表格格式化打印。 比如:给定表格(即list中的每一个list元素的个数相同,不然没法打印了,如下共3个list,每个list都有4个字符串): tableData = [ [‘apple’, ‘oranges’, ‘cherries’, ‘banana’], [‘Alice’, ‘Bob’, ‘Carol’, ‘D...原创 2018-08-19 14:53:04 · 261 阅读 · 0 评论 -
【hackerrank】-Day 12: Inheritance
30-inheritance Objective Today, we’re delving into Inheritance. Check out the attached tutorial for learning materials and an instructional video! Task You are given two classes, Person and Stud...原创 2018-07-30 21:12:09 · 482 阅读 · 0 评论 -
【hackerrank】-Day 15: Linked List
30-linked-list Objective Today we’re working with Linked Lists. Check out the Tutorial tab for learning materials and an instructional video! A Node class is provided for you in the editor. A Node...原创 2018-08-03 23:49:13 · 328 阅读 · 0 评论 -
【hackerrank】-Day 17: More Exceptions
30-more-exceptions Objective Yesterday’s challenge taught you to manage exceptional situations by using try and catch blocks. In today’s challenge, you’re going to practice throwing and propagating...原创 2018-08-03 23:00:55 · 195 阅读 · 0 评论 -
【hackerrank】-Day 2: Operators
Objective In this challenge, you’ll work with arithmetic operators. Check out the Tutorial tab for learning materials and an instructional video! Task Given the meal price (base cost of a meal), ...原创 2018-07-23 22:21:26 · 217 阅读 · 0 评论 -
【hackerrank】-Day 3: Intro to Conditional Statements
30-conditional-statements Objective In this challenge, we’re getting started with conditional statements. Check out the Tutorial tab for learning materials and an instructional video! Task Given...原创 2018-07-23 22:30:48 · 438 阅读 · 0 评论 -
【hackerrank】-Day 4: Class vs. Instance
30-class-vs-instance Objective In this challenge, we’re going to learn about the difference between a class and an instance; because this is an Object Oriented concept, it’s only enabled in certain...原创 2018-07-23 23:10:19 · 275 阅读 · 1 评论 -
【hackerrank】-Day 5: Loops
30-loops Objective In this challenge, we’re going to use loops to help us do some simple math. Check out the Tutorial tab to learn more. Task Given an integer, , print its first multiples. Each...原创 2018-07-23 23:21:29 · 267 阅读 · 0 评论 -
【hackerrank】-Day 6: Let's Review
30-review-loop Objective Today we’re expanding our knowledge of Strings and combining it with what we’ve already learned about loops. Check out the Tutorial tab for learning materials and an instru...原创 2018-07-23 23:41:24 · 303 阅读 · 0 评论 -
【hackerrank】-Day 11: 2D Arrays
30-2d-arrays Objective Today, we’re building on our knowledge of Arrays by adding another dimension. Check out the Tutorial tab for learning materials and an instructional video! Context Given a...原创 2018-07-28 15:37:15 · 331 阅读 · 0 评论 -
【hackerrank】-Day 7: Arrays
30-arrays Objective Today, we’re learning about the Array data structure. Check out the Tutorial tab for learning materials and an instructional video! Task Given an array, , of integers, print...原创 2018-07-25 21:48:33 · 417 阅读 · 0 评论 -
【hackerrank】-Day 8: Dictionaries and Maps
30-dictionaries-and-maps Objective Today, we’re learning about Key-Value pair mappings using a Map or Dictionary data structure. Check out the Tutorial tab for learning materials and an instruction...原创 2018-07-25 22:34:10 · 370 阅读 · 2 评论 -
【hackerrank】-Day 9: Recursion 3
30-recursion Objective Today, we’re learning and practicing an algorithmic concept called Recursion. Check out the Tutorial tab for learning materials and an instructional video! Recursive Method ...原创 2018-07-26 22:42:55 · 158 阅读 · 0 评论 -
【hackerrank】-Day 16: Exceptions - String to Integer
尴尬,为什么我的解法不过?报错:Error reading result file.You should use exception handling concepts. 看着解法没问题啊?啥子情况? 30-exceptions-string-to-integer Objective Today, we’re getting started with Exceptions b...原创 2018-08-03 22:48:26 · 402 阅读 · 0 评论 -
【hackerrank】-Day 29: Bitwise AND--not finished!
30-bitwise-and Objective Welcome to the last day! Today, we’re discussing bitwise operations. Check out the Tutorial tab for learning materials and an instructional video! Task Given set . Find ...原创 2018-08-17 01:39:05 · 245 阅读 · 0 评论