Logo
Home >Subjects >Coding

Coding

Covers all the coding and programming questions

Questions

Write a class to represent an NSet. An NSet is a kind of set that allows a maximum of N instances of every value. A traditional set is an NSet where N = 1.

class should support the following operations. | Description | Method | |------------------------------...

guideOfSATguideOfSAT asked a year ago
1 answer · 3 votes
Write a Python program to create a class named Book with the following specifications:

- The class should have two instance variables: title and author. - Define a constructor method that initializes both variables to a default value of...

mentalmavensmentalmavens asked a year ago
1 answer · 2 votes
Write a Python program that iterates through a list of numbers. Use a loop to print each number, but skip any number that is divisible by 3..

full question is Write a Python program that iterates through a list of numbers. Use a loop to print each number, but skip any number that is divisib...

davidmacagodavidmacago asked a year ago
1 answer · 2 votes
Write a Python code to read a file data.txt and print its contents line by line.

please help. `data.txt` don't need to exist. just assume it is there

davidmacagodavidmacago asked a year ago
1 answer · 1 vote
Write a Python function named 'Concat' that takes two strings 'str_a' and 'str_b', concatenates/joins the strings with ':' in between them, and returns the joined string.

Below is the link to the IDE you can use to write and test your code. Once done there, copy the code and paste it here to answer the question. Link: ...

davidmacagodavidmacago asked a year ago
1 answer · 2 votes
Leetcode help

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in num...

davidmacagodavidmacago asked a year ago
1 answer · 1 vote

Recommended Books

Reading books is a great way to learn. Here are some of the books we recommend.