Code Monkey home page Code Monkey logo

singlylinkedlist's Introduction

SinglyLinkedList

Singly Linked List class and Student class for exercise

Created: 29 September 2014

Class for implementation of Single LInked List.
NOTE: Student class is simple exercise

Task 1 (Student.java)

There are students with known sex, group and grade point average. Awards scholarships to students, with different rules for its purpose for guys and girls. Guys paid a fixed stipend if their GPA is above a predetermined threshold, and the girls are always paid scholarship and it is calculated by multiplying the average score on a fixed ratio. Need a code that describes the classes and their members to simulate this situation. Should be submitted to the signature of the method of calculating the scholarship (possible without implementation).

Task 2 (SinglyLinkedList.java)

Given two linked list of integers that contain the same unique number. The numbers in the list are various random. From the first list extract any single element. It is necessary to determine how many are now absent in the list, provided that the input will only do these lists. Welcomes the decision of complexity O (N).


>##### УСЛОВИЕ ЗАДАЧИ 1 >Имеются студенты, для которых известны пол, группа и средний балл. Студентам назначается стипендия, при этом правила >ее назначения различны для парней и девушек. Парням выплачивается фиксированная стипендия, если их средний балл выше >заданного порогового значения, а девушкам стипендия выплачивается всегда и рассчитывается она путем умножения >среднего балла на фиксированный коэффициент. Нужен код, описывающий классы и их члены для моделирования этой >ситуации. Должна быть представлена сигнатура метода расчета стипендии (можно без реализации). > >##### УСЛОВИЕ ЗАДАЧИ 2 >Даны два односвязных списка целых чисел, которые содержат одни и те же уникальные числа. Числа в списках расположены >различным случайным образом. Из первого списка извлекаем один любой элемент. Нужно определить, какое число теперь >отсутствует в этом списке, при условии, что на входе будут только сами эти списки. Приветствуется решение сложности >O(N).

singlylinkedlist's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.